Search found 4 matches

by YaBoi011011
30 Jan 2019, 21:08
Forum: Ask For Help
Topic: I am baffled... How do you make it so while you hold down a key it presses itself until you let go? Topic is solved
Replies: 10
Views: 803

Re: I am baffled... How do you make it so while you hold down a key it presses itself until you let go? Topic is solved

I did some testing and put in a few inputs to test. Is there a better way to do it than this? #SingleInstance force SetKeyDelay, 20 qState := 0 ; Used to store current state of Q, so we can filter out repeats when you hold it wState := 0 ; Used to store current state of W, so we can filter out repea...
by YaBoi011011
30 Jan 2019, 20:52
Forum: Ask For Help
Topic: I am baffled... How do you make it so while you hold down a key it presses itself until you let go? Topic is solved
Replies: 10
Views: 803

Re: I am baffled... How do you make it so while you hold down a key it presses itself until you let go? Topic is solved

So timers do not interfere with each other? There is only one timer in this example, but the point is that a while(GetKeyState()) loop locks up the current thread. If, for example, you have a loop running, and you hit a hotkey with a GetKeyState loop in it, the loop in your main thread is suspended...

Go to advanced search