| || |
QTP can\'t see Attachmate macro button with TE addi
We have an Attachmate macro that makes a screenprint of the TE screen and saves it as a .txt. I need to run this macro from my script many times (each page script scrolls through). The macro can be run from the menu, a button or hotkey. I can't find a way to make any of them work.
I recorded a script with TE addin turned off and it clicks the button just fine. But when it is called from an action that has TE addin turned on it can no longer find the button, as the TE addin makes it so QTP only sees the tewindow object.
When I've tried to do it with TE addin turned on, it can't see the buttons at all. When I ran the macro from the menu, QTP can see the drop down context menu once it's dropped. But it can't see the main menu from which the context menu drops. I've tried setting up a hotkey for the macro and using TE...sendkey (different than sendkeys, which seems like would be better, but can't figure out an object to use that has the sendkeys method) which results in qtp typing the key sequence into the cics screen (tescreen).
I'm at a loss here. My next attempt will be to programmatically turn off the TEaddin stuff, click the button, turn TE stuff back on. These seems like it will be a horrible, clunky, and very slow approach.
So, please, qtp TE gurus... save me from myself. There must be a more straightforward way to do this.
Re: QTP can\'t see Attachmate macro button with TE addi
Well, if anyone ever looks at this thread. The answer is to use wshshell to run ebrun.exe (the extra macro engine) with the desired macro name instead of trying to use the gui.