2 Macro Component in 1 app
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
2 Macro Component in 1 app
Hi, I'm doing an app that requires 2 imacro browser in a single form (Seperated by tab pages). My issue is that the component doesn't seem to recognize the difference between two browser component, when ever I try to play a script on browser 1 it plays in on browser 2 or the recently added component, browser 1 was working fine before I added the 2nd browser. Any thoughts on this please? Thanks!
.NET Developer
<---Using IMacro since version 4 - See Date Joined on Forum
***For Quotes and Estimates please feel free to contact me.
YM: Rguez_18 <at> y a hoo <that> com
Skype: Rguez_18
<---Using IMacro since version 4 - See Date Joined on Forum
***For Quotes and Estimates please feel free to contact me.
YM: Rguez_18 <at> y a hoo <that> com
Skype: Rguez_18
Re: 2 Macro Component in 1 app
Hello,
Unfortunately, it is not possible at this time to control two iMacrosControl instances in a single application. I am afraid a quick fix now might compromise iMacros stability. There were some design decisions we made where we chose - for performance reasons - to have a few static classes and properties. Two iMacrosControl instances will, of course, share those static objects.
Unfortunately, it is not possible at this time to control two iMacrosControl instances in a single application. I am afraid a quick fix now might compromise iMacros stability. There were some design decisions we made where we chose - for performance reasons - to have a few static classes and properties. Two iMacrosControl instances will, of course, share those static objects.
Re: 2 Macro Component in 1 app
From Marcia's answer I conclude that you cannot have 2 instances of the component in a single class, but the title of the OP is confusing. Can you have multiple iMacros components in a single application when the two components are in different classes/forms? What about if they are not simultaneously activated? Thanks.
Re: 2 Macro Component in 1 app
Hi,
However, if you dispose of iMacrosControl, these static fields are reset, and you can create a new iMacrosControl instance, which will not be influenced by the disposed one.
No, static fields are shared by all instances in the same application.BGood wrote: Can you have multiple iMacros components in a single application when the two components are in different classes/forms?
However, if you dispose of iMacrosControl, these static fields are reset, and you can create a new iMacrosControl instance, which will not be influenced by the disposed one.
Re: 2 Macro Component in 1 app
Marcia,
So then I assume that it would not be a good idea to use the iMacros control browser for online help access, or other functions that might be activated simultaneously with another browser instance?
So then I assume that it would not be a good idea to use the iMacros control browser for online help access, or other functions that might be activated simultaneously with another browser instance?
Re: 2 Macro Component in 1 app
Hello,
For simple online help access, I suggest you use an instance of .NET WebBrowser Control, since for that you don't need iMacros' engine.
Would that work for you?
For simple online help access, I suggest you use an instance of .NET WebBrowser Control, since for that you don't need iMacros' engine.
Would that work for you?
Re: 2 Macro Component in 1 app
Hi Marcia,
That is the approach I was using before integrating the iMacros Component, but scripting with the component is so much easier than programatically traversing the DOM in .net. Given the restrictions imposed by the single static instance, I will have to go back to the .net webbrowser control for help scripting (which is minimally difficult relative to data extraction). Thanks.
That is the approach I was using before integrating the iMacros Component, but scripting with the component is so much easier than programatically traversing the DOM in .net. Given the restrictions imposed by the single static instance, I will have to go back to the .net webbrowser control for help scripting (which is minimally difficult relative to data extraction). Thanks.