Search found 4 matches
- 30 Jan 2019, 21:08
- Forum: Ask for Help (v1)
- 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: 2764
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...
- 30 Jan 2019, 20:52
- Forum: Ask for Help (v1)
- 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: 2764
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...
- 21 Jan 2019, 13:51
- Forum: Ask for Help (v1)
- 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: 2764
I would also find it useful if there was a way to make a onscreen keyboard you can click on to use letters. Topic is solved
Can someone give me the knowledge?
- 20 Jan 2019, 20:31
- Forum: Ask for Help (v1)
- 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: 2764
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
This is what I got so far:
Code: Select all
'::Suspend
+w::
While GetKeyState(w) = 1
{
Send w
SetKeyDelay 30
}