Jump to content
Sign in to follow this  
tradertt

Loop - On end run Macro 2

Recommended Posts

PsaltyDS

Guys if I have this loop, and I will on it looping finish, run Macro2.au3

How can I code it?

Since it's an uncompiled script (.au3) you have to run the interpreter and pass it the script to execute:

For $x = 1 to 20 step 1
   If $x = 15 then ContinueLoop
   Send("!{TAB}^{PGDN}",0)
   Send("pagesetup {ENTER}")
Next
ShellExecute(@AutoItExe, "/ErrorStdOut /AutoIt3ExecuteScript Macro2.au3", "Open")

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.