Why doesnt this script work? Topic is solved

Ask gaming related questions (AHK v1.1 and older)
Paldurtr

Why doesnt this script work?  Topic is solved

24 May 2018, 15:36

I found this code from a forum and its supposed to do the following: when I press the x key on my keyboard every other time it registers it as x and every other time as 3. However, its just binds the key x into 3 and doesnt toggle between the two.

count = 1


x::
If count = 1
{
Send x
count = 2
Return
}
Else If count = 2
{
Send 3
count = 1
Return
}
Return
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: Why doesnt this script work?

24 May 2018, 17:26

Code: Select all

$x::Send % (toggle := !toggle) ? "x" : 3

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 48 guests