multi macro run via single call
Forum rules
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
multi macro run via single call
[Sorry. Posting got lost. Here's a summary. (Admin)]
How to call several instances of iMacros that shall run different macros?
How to call several instances of iMacros that shall run different macros?
These two lines create and initialize an iMacros instance:
All other lines then control this instance (called "iim1"):
This means: just add lines like the first two , but with new names for the instances, e.g.
You may now control them by calling the Macros methods on them (and not on "iim1") : e.g. iim2.Set(), iim3.Play(), etc.
Best,
Hannes
Code: Select all
Set iim1 = CreateObject ("InternetMacros.iim")
i = iim1.iimInit()
Code: Select all
' setting variables
i = iim1.iimSet("-var1", "user")
i = iim1.iimSet("-tray", "")
' play macro
i = iim1.iimPlay("macro1")
' exit iMacros
i = iim1.iimExit()
Code: Select all
Set iim2 = CreateObject ("InternetMacros.iim")
i = iim2.iimInit()
Set iim3 = CreateObject ("InternetMacros.iim")
i = iim3.iimInit()
Best,
Hannes
I tried that and it runs them chronologically basically when macro1 finishes it goes on to macro2 and so on.
Is there a way to set the commands that they all run at the same time in parallel, maybe I am missing something here, if so can you give me an example if an additional command is needed?
thanks
Is there a way to set the commands that they all run at the same time in parallel, maybe I am missing something here, if so can you give me an example if an additional command is needed?
thanks
With the new scripting interface (beta/testing release) this also works for FF. Please cf. http://forum.imacros.net/viewtopic.php?p=6894
Here's a minimal VBS script. To run several macros in sequence, simply add more iimPlay() commands:
Code: Select all
Dim iret
set iim1 = CreateObject ("InternetMacros.iim")
iret = iim1.iimInit ("-fx") '-fx for FF, empty for iMacros Browser
iret = iim1.iimPlay("mymacro")
'iret = iim1.iimExit() 'uncomment to close browser at end of script