Step containing variable does not execute

Get help with using AutoHotkey and its commands and hotkeys
Posts: 302
Joined: 19 Nov 2013, 08:44

Step containing variable does not execute

14 Jul 2019, 15:48


Can someone help me understand why the step containing the variable in the following script is not functioning?

Code: Select all

	prev := 3		; starting number for Send {Down}
Loop, 6
...several steps...
var:=prev+A_Index		; 
Send {Down var}
...several steps...
The intent is to send an increasing number of Down arrows as the looping continues, ie:

Send {Down 4}
Send {Down 5}
Send {Down 6}

The initial portion of the script progresses without a problem but the Send {Down var} step does not execute.

A ------------------------------ [A LOT OF SPACE] ------------------------------ LOT

"ALOT" is not a word. It never has been a word and it never will be a word.
"A LOT" is 2 words. Remember it as though there's [A LOT OF SPACE] between them.

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], boiler, cheatH12, mikeyww, PuzzledGreatly, thebat and 60 guests