Page 1 of 1

Step containing variable does not execute

Posted: 14 Jul 2019, 15:48
by WeThotUWasAToad
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

Re: Step containing variable does not execute

Posted: 14 Jul 2019, 15:54
by wolf_II
try Send {Down %var%}