Can Macro Scheduler detect window state?

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
Rain
Automation Wizard
Posts: 550
Joined: Tue Aug 09, 2005 5:02 pm
Contact:

Can Macro Scheduler detect window state?

Post by Rain » Wed Aug 09, 2006 2:42 pm

Can Macro Scheduler detect if a specific window is minimized or maximized?

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 Aug 09, 2006 3:48 pm

Yes, start Notepad and then run this script:

Code: Select all

GetWindowHandle>Notepad*,hwnd
LibFunc>User32,IsIconic,rI,hwnd
LibFunc>User32,IsZoomed,rZ,hwnd
If>rI=1
  MessageModal>Minimized
Else
  If>rZ=1
    MessageModal>Maximized
  Else
    MessageModal>Regular
  Endif
Endif
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

User avatar
Rain
Automation Wizard
Posts: 550
Joined: Tue Aug 09, 2005 5:02 pm
Contact:

Post by Rain » Thu Aug 10, 2006 10:08 am

Thank you for your quick reply and help, Marcus.
That's exactly what I was looking for.

~Rain

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