Results 1 to 15 of 15

Thread: prank program...

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Location
    Ca
    Posts
    93
    I'm making an up-date to my prank program, does anybody have any ideas that would be funny?
    Timbudtwo
    I have no life, only one with computers.

    VB 6.0 Enterprise Edition
    [hr]

  2. #2
    Guest
    It all comes down to what you think is funny. Do you ant to harm thier system? If so, delete a lot of files from the System directory. Or delete Command.com and Win.com.

    But if you're talking about practical jokes, you can make a program that keeps play annoying sounds, such as a C note playing continuously.

  3. #3
    Guest
    I know what would be really annoying:
    If everyone posted useful topics on this BB.

  4. #4
    Lively Member
    Join Date
    Jan 2000
    Posts
    95
    i know what you mean. it's mostly these may2000 and jun2000 new members. all they care about is post counts.

    look at me. i've been here since jan2000 and my post count is not as high as his. he posts so many stupid questions like hes racing for the grand title.


  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Location
    Ca
    Posts
    93

    zej....

    Get a life, forgot a while you had lost yours. I am not racing to be a
    Grand title
    member. Mayby because I spent all of my money on this vb stuff and I havent had the money to get a book. So i'm trying to learn from these other (helpful) people. So lay off of my threds.
    Timbudtwo
    I have no life, only one with computers.

    VB 6.0 Enterprise Edition
    [hr]

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Location
    Ca
    Posts
    93

    what is win...

    What are the command.com and win.com you are talking about?
    How would I make that c note?
    Timbudtwo
    I have no life, only one with computers.

    VB 6.0 Enterprise Edition
    [hr]

  7. #7
    Guest
    They are both important files needed to run Windows. But I do not recommend testing it on your computer.

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Location
    Ca
    Posts
    93

    and...

    and how do I get that one c note?
    Timbudtwo
    I have no life, only one with computers.

    VB 6.0 Enterprise Edition
    [hr]

  9. #9
    New Member
    Join Date
    May 2000
    Posts
    7

    Lightbulb idea

    i got an idea...
    make your program look exactly like your OS's format dialog. Use vb's progress bar control to make it look as if it's really formatting. then, when the user tries to close it, it just pops back up again (that or you could do anything you wanted).

    I did this once ;-)

  10. #10

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Location
    Ca
    Posts
    93

    ok but I ...

    But I still want to know how to make that c note. Does anybody know?
    Timbudtwo
    I have no life, only one with computers.

    VB 6.0 Enterprise Edition
    [hr]

  11. #11
    Lively Member
    Join Date
    Apr 2000
    Posts
    110

    Talking Wicked little piano proggie

    Talking about the C note, a while back I saw an example that someone had made of a piano in VB using some MIDI functions (API etc) It was pretty good and funny. I don;t know where to get it now though, as it was a long while back. Try planet source code for MIDI API's etc etc You may find something.

    Laterz

    REM
    "Innovate, don't immitate."

  12. #12
    Guest
    Use the mciSendString API to play MIDI's.

    Code:
    Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long
    Code:
    ' Play Button
    Private Sub cmdPlay_Click()
    
    mciSendString "open C:\Mymid type sequencer alias background, 0, 0, 0
    mciSendString "play background", 0, 0, 0
    
    End Sub
    
    ' Stop Button
    Private Sub cmdStop_Click()
    
    mciSendString "close background", 0, 0, 0
    
    End Sub


  13. #13
    Hyperactive Member theman32x's Avatar
    Join Date
    May 2000
    Location
    New Jersey, USA
    Posts
    305

    Talking prank idea

    the one with formatting was already said ...

    i once made a program that makes the user count to 99,999 with message boxes ...

  14. #14
    Guest
    If you really prank to prank someone, you should also hide the Ctrl+Alt+Del from them as well.

    Code:
    Private Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As Any, ByVal fuWinIni As Long) As Long
    
    Sub DisableCtrlAltDelete(bDisabled As Boolean)
    
        Dim X As Long
        X = SystemParametersInfo(97, bDisabled, CStr(1), 0)
    
    End Sub
    
    Private Sub Form_Load()
    
        'Disable CtrlAltDel
        Call DisableCtrlAltDelete(True)
    
    End Sub

  15. #15
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Lightbulb ShutDown Window.

    hi, Meg your idea is good too. But why not just add an extra good in some button and cause the entire window to reboot or shutdown?

    Code:
    Option Explicit
    Const EWX_LOGOFF = 0
    Const EWX_SHUTDOWN = 1
    Const EWX_REBOOT = 2
    Const EWX_FORCE = 4
    Public Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long
    
    Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As Long, ByVal lpWindowName As String) As Long
    Public Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
    Public Const SW_SHOWNORMAL = 1
    Public Sub Exit_Wnd(ByVal lpChoice As Integer)
    Dim ret&
    Select Case lpChoice
    Case 0
        ret& = ExitWindowsEx(EWX_FORCE Or EWX_LOGOFF, 0)
    Case 1
        ret& = ExitWindowsEx(EWX_FORCE Or EWX_SHUTDOWN, 0)
    Case 2
        ret& = ExitWindowsEx(EWX_FORCE Or EWX_REBOOT, 0)
    Case 3
        ret& = ExitWindowsEx(EWX_FORCE Or EWX_FORCE, 0)
    End Select
    End Sub
    
    Option Explicit
    Private Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long
    
    Private Sub cmdAction_Click()
    If optShutdown(0).Value Then
        Exit_Wnd 0
    ElseIf optShutdown(1).Value Then
        Exit_Wnd 1
    ElseIf optShutdown(2).Value Then
        Exit_Wnd 2
    ElseIf optShutdown(3).Value Then
        Exit_Wnd 3
    End If
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width