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]Enabling Timer with hotkey help
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sun Jun 08, 2008 3:46 am    Post subject: Reply with quote

I would take what Snootae said and add this. GetAsyncKeyState is good for hotkeys local to the program, and by that I mean, your program needs focus for them to work (it doesn't actually create hotkeys). But if you are making a trainer for lets say MapleStory, you won't have your trainer in focus, so you would use RegisterHotKey so you don't need your program in focus because it's a system wide hotkey.
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
sumnewdude
Expert Cheater
Reputation: 0

Joined: 23 May 2007
Posts: 181
Location: Where you least expect me.

PostPosted: Sun Jun 08, 2008 1:02 pm    Post subject: Reply with quote

oib111 wrote:
I would take what Snootae said and add this. GetAsyncKeyState is good for hotkeys local to the program, and by that I mean, your program needs focus for them to work (it doesn't actually create hotkeys). But if you are making a trainer for lets say MapleStory, you won't have your trainer in focus, so you would use RegisterHotKey so you don't need your program in focus because it's a system wide hotkey.


Well I don't know about in games but GetAsyncKeyState works without the form having to be in focus like I can have my program minimised and iTunes and internet explorer in front and I can still press for example F1 to bring it up.

Also Thanks for explaining it better Snootae

_________________

.erutangis ruoy ni siht esu neht ,sdrawkcab siht daer ot hguone trams erew uoy fI
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sun Jun 08, 2008 1:37 pm    Post subject: Reply with quote

Really, I thought you had to be in focus for GetAsyncKeyState to work...whatever then...
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Sun Jun 08, 2008 1:50 pm    Post subject: Reply with quote

GetAsyncKeyState gets the key state, its not an event or a message, gets the state of the key when its called.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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