Basic question
Posted: 21 Jan 2018, 11:13
Hey,
I've just started using AHK, so this question is basic. Nevertheless, I need help with debugging something I made.
Essentially, I am saying that when I press y, the program will check if I am holding shift. If I am holding shift, the program will stop. Otherwise, if I am not holding shift, then g will be typed. I have looked at a few tutorials, and I can't find my error.
I've just started using AHK, so this question is basic. Nevertheless, I need help with debugging something I made.
Code: Select all
*y::
If(!GetKeyState("Shift"))
{
; do nothing
} else {
; send, g
}
return