[Tut] Hotkeys

Posts 1–15 of 17 · Page 1 of 2
[Tut] Hotkeys
Im just going to list some of the various hotkeys and how to use them.

Code:
VK_F1
VK_F2
VK_F3
VK_F4
VK_F5
VK_F6
VK_F7
VK_F8
VK_F9
VK_F10
VK_F11
VK_F12
VK_INSERT
VK_HOME
VK_PGUP
VK_PGDOWN
VK_END
VK_DELETE
VK_UP
VK_DOWN
VK_LEFT
VK_RIGHT
VK_NUMPAD0
VK_NUMPAD1
VK_NUMPAD2
VK_NUMPAD3
VK_NUMPAD4
VK_NUMPAD5
VK_NUMPAD6
VK_NUMPAD7
VK_NUMPAD8
VK_NUMPAD9
All alphabet keys (A, B, C, etc.)
^Correct me if any of those are wrong^

There are more of course but honestly who needs that many.

So to use these you would do this:
Code:
if(GetAsyncKeyState(Hotkey of your choice)<0){
     // do hack
}
or
Code:
if(GetAsyncKeyState(Hotkey of your choice)&1){
     // do hack
}
So an example:
Code:
if(GetAsyncKeyState(VK_NUMPAD1)&1){
     crosshair = !crosshair;
     if(crosshair)
          xhair(pDevice);
}
Now if you want to use an alphabet char you wouldn't use VK (Virtual Key) you would just use a char, so for example:
Code:
if(GetAsyncKeyState('Q')&1){
     wireframe = !wireframe;
}
Hope that helps some noobs.


Wow why release this?
Omg Your Fucking No0b...
Well duh.. stating the obvious
Quote Originally Posted by LightzOut View Post
Well duh.. stating the obvious
Actually you are a choob
No, Noobs are better than choobs >_>
I give him credit for coming here and making a tut and not leeching. Even if its known by almost everyone.
come on guys give him some respect. his tryna help and u guys are just complaining...
Arent the keys like a,b,c,d,e ox45 or something like that?
Quote Originally Posted by markoj View Post
Arent the keys like a,b,c,d,e ox45 or something like that?
Yes technically you can use them like that its just easier to do it this way.

And yes i know this is known by pretty much everyone, thats why i made the tutorial in the first place - for the noobs (or choobs?) that don't know how to use hotkeys and actually want to learn.

And it's not like im spoonfeeding.. Im not the one giving the addys away for all the noobs in the world to c/p.
i think just because of this topic we need a spam button that acts like the thanks button but it's bad thing not good
Everyone chill... He's just showing how to use hot keys, nothing more...

You guys get so worked up every time someone releases source, even when it's useless...
Quote Originally Posted by Void View Post
Everyone chill... He's just showing how to use hot keys, nothing more...

You guys get so worked up every time someone releases source, even when it's useless...
They feel the need to be rude to people with less than 100 posts because they think it makes their e-dick bigger.
Posts 1–15 of 17 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us