Step containing variable does not execute

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

Step containing variable does not execute

14 Jul 2019, 15:48

Hello,

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

Code: Select all

F2::
;variables
	prev := 3		; starting number for Send {Down}
Loop, 6
{
...several steps...
var:=prev+A_Index		; 
Send {Down var}
...several steps...
}
Return
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}
...etc...

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

Thanks
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: Peter2, Rohwedder, RubbeH, Xtra and 52 guests