How do I acquire a Pegasus mail child window name?

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

How do I acquire a Pegasus mail child window name?

Post by JRL » Mon Jan 08, 2007 4:44 pm

Hi All,

Trying to automate a task in Pegasus mail and I can't seem to acquire the name of the visible child window. If I use GetActiveWindow with GAW_TYPE=1, I always get a window named "Press for help". When I use Macro Scheduler's View System Windows tool to look at the list of window names, there are 86 child windows open under the main Pegasus mail window. "Press for help" is third on the list.

If I hard code the window name, (as I see it on the screen) my script works. The problem is the window name will vary so I need to somehow acquire the name.

Anyone have any ideas on how I can acquire the name of the visibly current active window in Pegasus mail?

Thank you,
Dick

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Mon Jan 08, 2007 11:27 pm

Hi Dick....

This is a long shot.......

I can't test this right now, but I seem to recall earlier version of Macro Scheduler that showed the windows could also "flash" the window, or make it visible and bring it to the front. That was before the Window ID was built it. Does the current version still have that little used feature? It might be tedious but you could step through the 80+ windows, trying to flash/make visible?

I think that I still have the old utility available if you think you might need that. But Marcus will probably have an easier solutions.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Tue Jan 09, 2007 3:41 am

Thanks Bob,

I'd need a lot of instruction. I don't know how I could identify those other windows in a script. The odd thing about Pegasus is that when the child window is active, the parent window still appears to be active as well

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Tue Jan 09, 2007 4:27 am

My suggestion was based on you doing a one time process to get the name to put into a script. I did not envision doing that in a script.

I think I have access to a system that has Pegasus installed, will see if I can jump in there in next few days. Hopefully you'll have an answer before then.... What version of Pegasus should I be looking for?
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Tue Jan 09, 2007 6:00 am

What version of Pegasus should I be looking for?
The latest version is 4.41. I think any version will behave the same way.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts