FindWindowWithText and WinXP Home Edition

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
jtgalkowski
Newbie
Posts: 5
Joined: Wed Nov 26, 2003 7:49 pm
Location: Endicott, NY, USA
Contact:

FindWindowWithText and WinXP Home Edition

Post by jtgalkowski » Wed Nov 26, 2003 8:01 pm

I'm evaluating Macro Scheduler and like it very much, and am seriously interested in buying in. I just downloaded it yesterday. I am upgrading from WinBatch.

However, I am trying to build a script on my WinXP Home Edition system. The draft script looks like:

FindWindowWithText>Trilly,1,trillExists
If>trillExists=NOT FOUND,NoTrillian
WindowAction>0,trillExists
SetFocus>trillExists
MouseMoveRel>66,360
LClick
MouseMoveRel>96,333
LClick
FindWindowWithText>Connection Manager*,1,connectionMgrExists
If>connectionMgrExists=NOT FOUND,NoConnectionMgr
SetFocus>connectionMgrExists
MouseMoveRel>371,270
LClick
MouseMoveRel>746,213
LClick
MessageModal>Done
Goto>ExitBringUpIRC
Label>NoConnectionMgr
MessageModal>Connection Manager is apparently not available
Goto>ExitBringUpIRC
Label>NoTrillian
MessageModal>Trillian is apparently not running
Goto>ExitBringUpIRC
Label>ExitBringUpIRC

where I am trying to restore Trillian Pro from my System Tray and navigate to start IRC.


The problem I am seeing is that FindWindowWithText somehow manages to find Macro Scheduler's own "Open Windows" window, the one that is restored or created when the Tools>>View System Windows is elected. Now, I have had that up previously in the session but AFAIK it's closed.


Moreover, there is something hokey going on, as the window that the script finds and sets focus to is not one I can close. If I click on the "X" in the upper right nothing happens. Indeed, in order to close it I must elect Tools>>View System Windows and then click on the new windows "X".

Suggestions here?

It's kind of important I be able to run this on my WinXP system, as that's my primary development environment.

I am also evaluating it on Win95.

Thanks. I'd appreciate a quick answer as if Macro Scheduler proves out, I need to buy it and get on with doing a job with it.

jtgalkowski
Newbie
Posts: 5
Joined: Wed Nov 26, 2003 7:49 pm
Location: Endicott, NY, USA
Contact:

re: FindWindowWithText and WinXP

Post by jtgalkowski » Wed Nov 26, 2003 8:19 pm

Apparently the problem is something I'm not understanding about how the trailing asterisk in the name of Window to match works, combined with something funny about Trillian Pro's Connection Manager window.

Anyway, I juggled things around and got it to work.

I am also evaluating on Win95 where I am trying to drive the Palm Desktop with Macro Scheduler. There I could not match "Palm Desktop" with

FindWindowWithText>Palm Desktop,1,palmDesktopExists
MessageModal>palmDesktopExists

but

FindWindowWithText>Palm,1,palmDesktopExists
MessageModal>palmDesktopExists

worked.

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Thu Nov 27, 2003 12:38 am

Hi jtgalkowski,

Please try:
IfwindowOpen>Palm*,Msg,Skip
Label>Msg
Msg>Palm Desktop Exists
Label>Skip
....

Hope it helps. Happy scripting.

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