Basic question

Ask gaming related questions (AHK v1.1 and older)
JkrAbram
Posts: 3
Joined: 21 Jan 2018, 07:54

Basic question

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.

Code: Select all

*y::
If(!GetKeyState("Shift"))
{
; do nothing
} else {
; send, g
}

return
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. :(
icuurd12b42
Posts: 202
Joined: 14 Aug 2016, 04:08

Re: Basic question

21 Jan 2018, 14:57

If(GetKeyState("Shift","P") == "D") //if "P"hysical state of "Shift" is "D"own

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 76 guests