Problem:
Cannot figure out how to Send a text string that contains X, where X is an expression containing n+1, with n being a number from 0 to infinity. Also loop said function for a predetermined amount of times.
Further clarification of query:
Let n= 0-infinity
Let x= n+1
Let y= "Count "
Loop # {Send %y%%x% {Enter}, Notepad}
So it results in:
Count 1
Count 2
Count 3
Count 4...
etc
My attempt that yielded undesired results:
Winactivate Untitled - Notepad
sleep 3000
x:=1++; I believe this is how you express 1+n? Not sure what this type of variable is called. My script vocab is very limited.
Loop 100{
send Count %x% {enter}
}
Thanks for any assistance.