Re: Need help creating a loop for a script.
Let me give you an example as to how the while command works. Below is a quick little script to count from 1 to 20. Script MyTest () var int count ;defines the variable used to count the itterations through the loop. let count=1 ;initializes the variable. ; here is where you would do your home up etc. to get to the top of your list. While(count<=20) ;this is the beginning of the loop. SayInteger (count) ;put anything here you want to do repeatedly. let count=count+1 ;very important: increments the counter to avoid a endless loop. EndWhile ; end of loop. EndScript ;end of script. Hope this helps, Bob -Original Message- From: K. Washington <[EMAIL PROTECTED]> To: BOB <[EMAIL PROTECTED]> Date: Wednesday, May 26, 1999 2:17 PM Subject: Re: Need help creating a loop for a script. >Hi Bob. I just posted an extensive explanation on how I could do the >below. The script works well. If possible, could you edit it so it can >use the below method you speak of? Thanks. > > At 11:56 AM 5/26/99 -0500, you wrote: >>You could set a variable to 1 when you move to the top of the screen and use >>the "while" command to activate every other selection. >>I wonder, though, how are you going to get the control key held down? >>Let us know what you come up with. >>Bob >>-Original Message- >>From: K. Washington <[EMAIL PROTECTED]> >>To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> >>Date: Wednesday, May 26, 1999 10:59 AM >>Subject: Need help creating a loop for a script. >> >> >> >Hello listeners. I'm in need of some assistance with an advance >> >script. I'm creating it for Go!Zilla. In particular the "Leech" utility >> >of the program. I want the script to do the below in this order. >> > >> >1. Move to the top of the current listbox. >> >2. Select the choice it lands on using the [Spacebar] >> >3. Move down twice in the listbox, excluding the first choice it >> >passes. In other words like holding down the [Control] key, while pressing >> >the [Down arrow] key twice. Then use the [Spacebar] key to select the >> >choice it lands on. >> > >> >Want the script to be attached to a key combination. I know how to make a >> >basic script for doing the above, but what if I wanted the script to do the >> >above procedures a specific number of times. Say... 20 times, without any >> >intervention from me. After the script is ran, I should have a listbox of >> >options in which every other choice is selected (It should be 20 in >> >total). I know there is some way of doing this, but don't know how. Don't >> >want to create a script with the same sequence of commands in it 20 times >> >(It will basically be a mess). Can someone give me some help with this >> >one? I'm sure there is some sort of "Loop" function that can be used >> >here. Thanks in advance. >> >- >> >Visit the jfw ml web page: http://jfw.cjb.net >> > >> >>- >>Visit the jfw ml web page: http://jfw.cjb.net > - Visit the jfw ml web page: http://jfw.cjb.net
Re: Need help creating a loop for a script.
You could set a variable to 1 when you move to the top of the screen and use the "while" command to activate every other selection. I wonder, though, how are you going to get the control key held down? Let us know what you come up with. Bob -Original Message- From: K. Washington <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Wednesday, May 26, 1999 10:59 AM Subject: Need help creating a loop for a script. >Hello listeners. I'm in need of some assistance with an advance >script. I'm creating it for Go!Zilla. In particular the "Leech" utility >of the program. I want the script to do the below in this order. > >1. Move to the top of the current listbox. >2. Select the choice it lands on using the [Spacebar] >3. Move down twice in the listbox, excluding the first choice it >passes. In other words like holding down the [Control] key, while pressing >the [Down arrow] key twice. Then use the [Spacebar] key to select the >choice it lands on. > >Want the script to be attached to a key combination. I know how to make a >basic script for doing the above, but what if I wanted the script to do the >above procedures a specific number of times. Say... 20 times, without any >intervention from me. After the script is ran, I should have a listbox of >options in which every other choice is selected (It should be 20 in >total). I know there is some way of doing this, but don't know how. Don't >want to create a script with the same sequence of commands in it 20 times >(It will basically be a mess). Can someone give me some help with this >one? I'm sure there is some sort of "Loop" function that can be used >here. Thanks in advance. >- >Visit the jfw ml web page: http://jfw.cjb.net > - Visit the jfw ml web page: http://jfw.cjb.net
Re: Need help creating a loop for a script.
Let count=20 while (count) Let count = count - 1 do the stuff EndWhile -Original Message- From: K. Washington <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Wednesday, May 26, 1999 12:10 PM Subject: Need help creating a loop for a script. >Hello listeners. I'm in need of some assistance with an advance >script. I'm creating it for Go!Zilla. In particular the "Leech" utility >of the program. I want the script to do the below in this order. > >1. Move to the top of the current listbox. >2. Select the choice it lands on using the [Spacebar] >3. Move down twice in the listbox, excluding the first choice it >passes. In other words like holding down the [Control] key, while pressing >the [Down arrow] key twice. Then use the [Spacebar] key to select the >choice it lands on. > >Want the script to be attached to a key combination. I know how to make a >basic script for doing the above, but what if I wanted the script to do the >above procedures a specific number of times. Say... 20 times, without any >intervention from me. After the script is ran, I should have a listbox of >options in which every other choice is selected (It should be 20 in >total). I know there is some way of doing this, but don't know how. Don't >want to create a script with the same sequence of commands in it 20 times >(It will basically be a mess). Can someone give me some help with this >one? I'm sure there is some sort of "Loop" function that can be used >here. Thanks in advance. >- >Visit the jfw ml web page: http://jfw.cjb.net - Visit the jfw ml web page: http://jfw.cjb.net
RE: Need help creating a loop for a script.
use the while or for constructs, described in chapter 7 of the script manual. Cheers, Tim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of K. Washington Sent: Wednesday, May 26, 1999 3:52 PM To: [EMAIL PROTECTED] Subject: Need help creating a loop for a script. Hello listeners. I'm in need of some assistance with an advance script. I'm creating it for Go!Zilla. In particular the "Leech" utility of the program. I want the script to do the below in this order. 1. Move to the top of the current listbox. 2. Select the choice it lands on using the [Spacebar] 3. Move down twice in the listbox, excluding the first choice it passes. In other words like holding down the [Control] key, while pressing the [Down arrow] key twice. Then use the [Spacebar] key to select the choice it lands on. Want the script to be attached to a key combination. I know how to make a basic script for doing the above, but what if I wanted the script to do the above procedures a specific number of times. Say... 20 times, without any intervention from me. After the script is ran, I should have a listbox of options in which every other choice is selected (It should be 20 in total). I know there is some way of doing this, but don't know how. Don't want to create a script with the same sequence of commands in it 20 times (It will basically be a mess). Can someone give me some help with this one? I'm sure there is some sort of "Loop" function that can be used here. Thanks in advance. - Visit the jfw ml web page: http://jfw.cjb.net - Visit the jfw ml web page: http://jfw.cjb.net