Vladi243 Posted April 27, 2008 Share Posted April 27, 2008 I wrote this script $i=0 Do $i=$i+1 Send ("{ENTER}") Sleep (2000) Send ("{ENTER}") Sleep (5000) Send ("{TAB}") Send ("{ENTER}") Send ("{TAB 2}") Send ("{ENTER}") Send ("{ALTDOWN}") Send ("{F4}") Send ("{ALTUP}") ; Here I want to write a code that runs a programme when $i=4,8,12... Until $i=10000 How can I write here? Link to comment Share on other sites More sharing options...
herewasplato Posted April 27, 2008 Share Posted April 27, 2008 You might want to take a look at Select/Case statements:http://www.autoitscript.com/forum/index.ph...st&p=511243 [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Achilles Posted April 27, 2008 Share Posted April 27, 2008 If Mod($i, 4) = 0 then Run("program.exe") EndIfJust put this in where you're code has the "; Here I want..." part... My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
Vladi243 Posted April 27, 2008 Author Share Posted April 27, 2008 Thanks, I'm checking the both options. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now