| View previous topic :: View next topic |
| Author |
Message |
Whinub Guest
|
Posted: Tue Apr 24, 2007 7:57 pm Post subject: Easy question but I'm a newbie.... |
|
|
| I'm currently working on a script where a variable needs to be increased by one after every loop and needs to be typed somewhere on screen...if someone could quickly type this up so that i could added to my script it would be greatly appreciated. Thanks in advance |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6856 Location: Pacific Northwest, US
|
Posted: Tue Apr 24, 2007 8:06 pm Post subject: |
|
|
You should post in the ask for help section. This section is for completed scripts. [Moderator's note: Moved]
as far as a variable increasing inside a loop, the built in variable A_index will probably do what you need. otherwise, you can increment the variable with ++ _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
MsgBox
Joined: 17 Nov 2005 Posts: 179 Location: Leicester, UK
|
Posted: Tue Apr 24, 2007 9:08 pm Post subject: |
|
|
ie.
| Code: | Loop 10
{
c := A_Index
MsgBox % c
}
or
Loop 10
{
c++
MsgBox % c
}
and
Loop
{
c++
MsgBox Number - %c%
IfGreater c, 9, Break
} |
...etc.
Hope that helps.  |
|
| Back to top |
|
 |
|