Launch two script

6 posts / 0 new
Last post
Ahmed
Offline
Joined: 09/20/2017 - 05:45
Launch two script

Hi,
I would like to know if there a script who can help me to launch two script eg : Start with the scond after ending with the first script,
Thank you.

Brian Element's picture
Brian Element
Offline
Joined: 07/11/2012 - 19:57

Hi Admed,

You can use the Client.RunIDEAScript function.  Each script will run after it is completed.

 


Sub Main

' Start another IDEAScript macro.

Client.RunIDEAScript "MyScript1.ISS"
Client.RunIDEAScript "MyScript2.ISS"
End Sub 

Ahmed
Offline
Joined: 09/20/2017 - 05:45

Hi Brian,
Thank you brian for your answer first of all, I rename Myscript1.ISS and after running the script ; i get error message "error line 5, name of the macro file wrong".
 

Brian Element's picture
Brian Element
Offline
Joined: 07/11/2012 - 19:57

I think it is looking for a script called MyScript2.iss, so you name to update the script for the name of your second script.  Also if it is located in your Macros folder you need to add Marcros.ILB\ before the macro name.

Ahmed
Offline
Joined: 09/20/2017 - 05:45

Hi Brian,
Yes it works ! (I just add the correcte location of my script before eg : c://ideaFile/MyScript.iss)
Thank you very much.

Brian Element's picture
Brian Element
Offline
Joined: 07/11/2012 - 19:57

No problem, glad you got it working.