Before I respond....look at this meme.
It describes my face atm.
Now:
You don't add the & 8000 unless you're planning to hold the second key down for 8 seconds for it to execute once.Code:if((GetAsyncKeyState(VK_XXX)&8000) && (GetAsyncKeyState(VK_YYY)&8000)) //If you're planning on holding both simultaneously for 8 seconds. { }
GetAsyncKeyState(KeyCode) returns an unsigned integer in milliseconds of how long ago the key specified was LAST pressed. The "&" code performs a bitwise AND operation with the return value. Basically it's used to say "If XXX Is Pressed For X Milliseconds"
You should never use "& 8000" as execution time will wait till it's held down for 8 seconds. (I generally used &1 for 1 millisecond.)
Also, pointing out "&&" and "&" have different meanings.
& -> Bitwise Operator AND
&& -> Conditional Operator AND
inb4readabove