GetWindowTextEx when the target crosses monitors

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
shoyer
Newbie
Posts: 5
Joined: Wed Nov 14, 2012 5:22 pm
Location: Howell, MI, USA

GetWindowTextEx when the target crosses monitors

Post by shoyer » Thu Nov 15, 2012 7:13 pm

I was debugging a script I'm working on and would get unexpected results sometimes. The script could use either of two programs and needs to recognize when one or the other or both are open. What I found was that as I was working, I'd open and close these programs, and sometimes the windows would cross the center-line of my dual-monitor setup. When this happens, it looks like any text on one monitor doesn't come through the GetWindowTextEx event to be processed.

I can, I suppose, move the window to assure it's on one monitor, but I'd rather not rearrange the users desktop every time they use the macro.

tia,

Steve

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Dec 12, 2012 4:18 pm

Hi,

Thanks for this. I have added this to our bug tracker and we will investigate.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

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