| View previous topic :: View next topic |
| Author |
Message |
I'm C.H. Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Dec 2006 Posts: 1000 Location: Sweden
|
Posted: Wed Dec 03, 2008 12:51 pm Post subject: [Help] AsyncKeyState |
|
|
GetAsyncKeyState(112) for example, the 112 is for F1.
So how do you find the other values for other buttons?
_________________
|
|
| Back to top |
|
 |
ElectroFusion Grandmaster Cheater
Reputation: 0
Joined: 17 Dec 2006 Posts: 786
|
|
| Back to top |
|
 |
I'm C.H. Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Dec 2006 Posts: 1000 Location: Sweden
|
Posted: Wed Dec 03, 2008 12:55 pm Post subject: |
|
|
Thanks alot!
Edit: F1 was 112 in the code I had, but 70 here? O.o
_________________
Last edited by I'm C.H. on Wed Dec 03, 2008 12:55 pm; edited 1 time in total |
|
| Back to top |
|
 |
ElectroFusion Grandmaster Cheater
Reputation: 0
Joined: 17 Dec 2006 Posts: 786
|
Posted: Wed Dec 03, 2008 12:55 pm Post subject: |
|
|
Oh wait, that was the wrong list
Correct list:
http://msdn.microsoft.com/en-us/library/ms645540(VS.85).aspx
_________________
| qwerty147 wrote: |
| ghostonline wrote: |
what world are you in?
|
bera
but i live in NZ
|
|
|
| Back to top |
|
 |
I'm C.H. Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Dec 2006 Posts: 1000 Location: Sweden
|
Posted: Wed Dec 03, 2008 12:57 pm Post subject: |
|
|
Well, here it says 0x70 and in the code I got 112 lol. (For F1)
Is it still correct?
_________________
|
|
| Back to top |
|
 |
kb3z0n Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 542
|
Posted: Wed Dec 03, 2008 12:58 pm Post subject: |
|
|
you could do
GetAsnycKeyState(VK_F1) which would be F1.
|
|
| Back to top |
|
 |
I'm C.H. Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Dec 2006 Posts: 1000 Location: Sweden
|
Posted: Wed Dec 03, 2008 1:00 pm Post subject: |
|
|
Gives me:
Name VK_F1 is not Declared.
_________________
|
|
| Back to top |
|
 |
ElectroFusion Grandmaster Cheater
Reputation: 0
Joined: 17 Dec 2006 Posts: 786
|
Posted: Wed Dec 03, 2008 1:00 pm Post subject: |
|
|
I'm pretty sure in VB you would have to define all of them, so just make a list like this:
| Code: | #define VK_KEY 0x394
#define VK_KEY 0x183
|
if VB supports includes, you could include windows.h and it already has all virtual key codes.
_________________
| qwerty147 wrote: |
| ghostonline wrote: |
what world are you in?
|
bera
but i live in NZ
|
|
|
| Back to top |
|
 |
I'm C.H. Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Dec 2006 Posts: 1000 Location: Sweden
|
Posted: Wed Dec 03, 2008 1:02 pm Post subject: |
|
|
Lol. It doesn't get define. It says: 'If', 'ElseIf', 'Else', 'End If', 'Const', or 'Region' expected.
_________________
|
|
| Back to top |
|
 |
ElectroFusion Grandmaster Cheater
Reputation: 0
Joined: 17 Dec 2006 Posts: 786
|
Posted: Wed Dec 03, 2008 1:07 pm Post subject: |
|
|
| Code: | if(GetAsyncKeyState(VK_F1)){
// do stuff
}
|
_________________
| qwerty147 wrote: |
| ghostonline wrote: |
what world are you in?
|
bera
but i live in NZ
|
|
|
| Back to top |
|
 |
I'm C.H. Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Dec 2006 Posts: 1000 Location: Sweden
|
Posted: Wed Dec 03, 2008 1:09 pm Post subject: |
|
|
Vb doesn't use } and {'s. I get like everything errors lol
_________________
|
|
| Back to top |
|
 |
ElectroFusion Grandmaster Cheater
Reputation: 0
Joined: 17 Dec 2006 Posts: 786
|
Posted: Wed Dec 03, 2008 1:13 pm Post subject: |
|
|
Eh, I don't know VB, I guess it would be
| Code: | if GetAsyncKeyState(VK_F1)
do stuff
endif |
_________________
| qwerty147 wrote: |
| ghostonline wrote: |
what world are you in?
|
bera
but i live in NZ
|
|
|
| Back to top |
|
 |
I'm C.H. Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Dec 2006 Posts: 1000 Location: Sweden
|
Posted: Wed Dec 03, 2008 1:13 pm Post subject: |
|
|
Nvm. I found the keycodes I was looking for now .
Thx anyways.
_________________
|
|
| Back to top |
|
 |
tombana Master Cheater
Reputation: 2
Joined: 14 Jun 2007 Posts: 456 Location: The Netherlands
|
Posted: Wed Dec 03, 2008 1:39 pm Post subject: |
|
|
| CheatingHacker wrote: | Well, here it says 0x70 and in the code I got 112 lol. (For F1)
Is it still correct? |
112 = 0x70 (decimal and hexadecimal)
|
|
| Back to top |
|
 |
kb3z0n Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 542
|
Posted: Wed Dec 03, 2008 1:49 pm Post subject: |
|
|
| CheatingHacker wrote: | Gives me:
Name VK_F1 is not Declared. |
if(GetAsyncKeyState(VK_F1))
{
}
|
|
| Back to top |
|
 |
|