Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


vb6 code

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
torpin005
Master Cheater
Reputation: 0

Joined: 19 Nov 2007
Posts: 255

PostPosted: Mon Dec 24, 2007 4:58 pm    Post subject: vb6 code Reply with quote

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
View user's profile Send private message AIM Address
NothingToShow
Grandmaster Cheater Supreme
Reputation: 0

Joined: 11 Jul 2007
Posts: 1579

PostPosted: Mon Dec 24, 2007 5:03 pm    Post subject: Reply with quote

Use google...
Back to top
View user's profile Send private message
killar456
Master Cheater
Reputation: 0

Joined: 30 Mar 2007
Posts: 415

PostPosted: Mon Dec 24, 2007 5:50 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Mon Dec 24, 2007 7:27 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites