| 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?
|
Posted: Sun Jun 08, 2008 3:46 am Post subject: |
|
|
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 |
|
 |
sumnewdude Expert Cheater
Reputation: 0
Joined: 23 May 2007 Posts: 181 Location: Where you least expect me.
|
Posted: Sun Jun 08, 2008 1:02 pm Post subject: |
|
|
| 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 |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Sun Jun 08, 2008 1:37 pm Post subject: |
|
|
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 |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Sun Jun 08, 2008 1:50 pm Post subject: |
|
|
| GetAsyncKeyState gets the key state, its not an event or a message, gets the state of the key when its called. |
|
| Back to top |
|
 |
|