I am new to autohotkey and I have been trying to find a way to detect double key presses.
I know this had been asked before but my question is a bit different!
When I press an "a" once it should write "a" but when I press it twice it should write "Hello World!". That sounds easy but there where two Problems with all approaches I found:
- The Problem with the fist solution I found was that when I define a hotkey for a double pressed a the single pressed a will be delayed. So if I want to write "as" very fast it will write "sa", because the a is delayed.
- The second solution I found always sent an a before sending "Hello World" so a double pressed a will lead to "aHelloWorld" but it should just Send "Hello Word"
So is there a different solution?
I spend already 12 hours to fix it! Please help me!
PS:(I tried to just send a backspace when the a is hit the second time, but that does not work for keys like Escape because the Escape will always been send to the program and close the window)
Fast way to detect double key presses