I am having a problem and I was wondering if you can help me. I have this script that toggles between h and l with every press. It's almost perfect, but I would like to know if there's a way to make is start at h every time. instead of pressing the opposite of what was pressed last, I would like to make is so that if it wasn't pressed in the last, I don't know 10 seconds, then i restarts and goes back to h no matter what was sent last.
Do you know what I mean?
Code: Select all
x::
Send, % (Toggle := !Toggle) ? "l" : "h"
return