Jump to content

Recommended Posts

Posted

Hi there,

Is it possible to check whenever a windows is being minimized?

For example, I have 10 different windows open. When I minimize one the script needs to see that and get the title of the window.

Anyone?

Posted

I don't want to check the state, I need the information at the moment that a window is being minimized.

And I don't have a desired window, I need the information from every window open on the PC...

  • Moderators
Posted

http://www.autoitscript.com/forum/index.php?showtopic=56536

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Posted

I don't get the link provided by Smoke...

How can I use this for checking all windows on minimizing??

Can u post an example please...

  • Moderators
Posted

Run his example he's provided. Then follow the code and see what it does. Then use that information to see how to catch your titles (with WinGetTitle() using the handle).

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Posted

His example gives me errors...

$hGui = GUICreate($sTitle, $iGuiW, $iGuiH, -1, 0, $WS_POPUP+$WS_BORDER, $WS_EX_TOPMOST)

After adding #include <WindowsConstants.au3> this error:

==> Can not redeclare a constant.:
Global Const $WM_SYSCOMMAND = 0x0112
Global Const ^ ERROR
  • Moderators
Posted

His example gives me errors...

$hGui = GUICreate($sTitle, $iGuiW, $iGuiH, -1, 0, $WS_POPUP+$WS_BORDER, $WS_EX_TOPMOST)

After adding #include <WindowsConstants.au3> this error:

==> Can not redeclare a constant.:
Global Const $WM_SYSCOMMAND = 0x0112
Global Const ^ ERROR

C'mon ... just comment it out.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...