Help with if statements and variables Topic is solved

Ask gaming related questions (AHK v1.1 and older)
ry3ks3u_m4dd0ns
Posts: 18
Joined: 29 Mar 2017, 09:23

Help with if statements and variables

10 Aug 2017, 02:06

I've been bored recently; downloaded a few games here and there, and forgot I had a game similar to DDR (DanceDance Revolution)

And I remembered that the controls were locked to arrow keys

Here's the script:

Code: Select all

#CommentFlag
dancefilter := False


DanceRight()
{
	if dancefilter {
		Send, {Right}
		Return
	} else {
		Return
	}
}

~j::DanceRight()
+F1::dancefilter := !dancefilter

The problem here is that the dancefilter gets toggled to true, but only the main key gets sent and not the intended controls.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 46 guests