CoolHack - 2 Questions :3

Posts 16–22 of 22 · Page 2 of 2
Quote Originally Posted by xTremist View Post
= defines
== checks

for example

Code:
int derp = 1
if(derp == 1)
{
    code.. woo
}
where is this for?
if you just void NoSpread () it will work to
Found my problem! Its the key press!
I want it that when the key is pressed not when the key is down :S
Therefore I want it to happen once. I think I can either put sleep(not recommanded) Or remove the &1? Hmm
Quote Originally Posted by Skatebone1 View Post
Found my problem! Its the key press!
I want it that when the key is pressed not when the key is down :S
Therefore I want it to happen once. I think I can either put sleep(not recommanded) Or remove the &1? Hmm
Goodjob
Closed
Hmm my problem remains :/ I dont want to use sleep because there are more hacks running on the same thread. You think I should start a separate thread for detecting keystrokes? Thanks
Quote Originally Posted by Skatebone1 View Post
Hmm my problem remains :/ I dont want to use sleep because there are more hacks running on the same thread. You think I should start a separate thread for detecting keystrokes? Thanks
Try
But sleep is importand because it prevents from overunning cpu
When you say

if(GetAsyncKeyState(VK_NUMPAD8)&1)

What is the &1 representing?

Edit: If im not mistaken the GetAsyncKeyState returns a value if a button is up or down.

Hmm
Quote Originally Posted by Skatebone1 View Post
When you say

if(GetAsyncKeyState(VK_NUMPAD8)&1)

What is the &1 representing?

Edit: If im not mistaken the GetAsyncKeyState returns a value if a button is up or down.

Hmm
its just a statement dont mind it
Posts 16–22 of 22 · Page 2 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us