|
-
Jun 21st, 2000, 10:43 PM
#1
Thread Starter
Lively Member
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]
-
Jun 21st, 2000, 10:53 PM
#2
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.
-
Jun 22nd, 2000, 12:23 AM
#3
I know what would be really annoying:
If everyone posted useful topics on this BB.
-
Jun 22nd, 2000, 12:42 AM
#4
Lively Member
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.
-
Jun 22nd, 2000, 12:47 AM
#5
Thread Starter
Lively Member
zej....
Get a life, forgot a while you had lost yours. I am not racing to be a
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]
-
Jun 22nd, 2000, 12:49 AM
#6
Thread Starter
Lively Member
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]
-
Jun 22nd, 2000, 01:14 AM
#7
They are both important files needed to run Windows. But I do not recommend testing it on your computer.
-
Jun 22nd, 2000, 01:31 AM
#8
Thread Starter
Lively Member
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]
-
Jun 22nd, 2000, 01:36 AM
#9
New Member
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 ;-)
-
Jun 22nd, 2000, 01:40 AM
#10
Thread Starter
Lively Member
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]
-
Jun 22nd, 2000, 04:46 AM
#11
Lively Member
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."
-
Jun 22nd, 2000, 05:03 AM
#12
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
-
Jun 22nd, 2000, 05:15 AM
#13
Hyperactive Member
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 ...
-
Jun 22nd, 2000, 07:28 AM
#14
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
-
Jun 22nd, 2000, 07:58 AM
#15
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|