| View previous topic :: View next topic |
| Author |
Message |
torpin005 Master Cheater
Reputation: 0
Joined: 19 Nov 2007 Posts: 255
|
Posted: Mon Dec 24, 2007 4:58 pm Post subject: vb6 code |
|
|
what the vb6 code to make it so if you hit like ctrl + q it would turn on the hack etc and ctrl + e to turn it off?
_________________
Go check it out. Good Hacks |
|
| Back to top |
|
 |
NothingToShow Grandmaster Cheater Supreme
Reputation: 0
Joined: 11 Jul 2007 Posts: 1579
|
|
| Back to top |
|
 |
killar456 Master Cheater
Reputation: 0
Joined: 30 Mar 2007 Posts: 415
|
Posted: Mon Dec 24, 2007 5:50 pm Post subject: |
|
|
this came from sythe.org, its not mine | Code: | useless....
this is an example of CTRL + T:
Add this to your form:
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vbKey As Long) As Integer
Add this to a timer with an interval of at most 1000:
if GetAsyncKeyState(vbKeyCtrl) And GetAsyncKeyState(vbKeyT) then
msgbox "yay"
end if |
| Code: | also you can use a user control called mclhotkey, its a control you drag onto a form, you can set the properties just like any other control (example, you can set ctrl, shift, alt, and windows logo to true or false and then change the main hotkey). This is the one i use for all of my projects.
link is here: http://home.wanadoo.nl/dynamiel/mclhotkey/MCLHotkey.ocx
Once you download the file, paste it into C:\WINDOWS\system32. Press Windows Logo Key + R and type "regsvr32 mclhotkey.ocx" into the box, then click ok.
To use it, open up your VB project, right click on the toolbox and click components, then click "System Wide Hotkey". |
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Mon Dec 24, 2007 7:27 pm Post subject: |
|
|
Don't use ocx's when you don't need to. Having to distribute them with everything you release isn't worth it. Make use of GetAsyncKeyState to monitor for key presses and have code happen when they are found.
Look at AllApi's site for an example of GetAsyncKeyState here:
http://allapi.mentalis.org/apilist/GetAsyncKeyState.shtml
_________________
- Retired. |
|
| Back to top |
|
 |
|