Sign in to follow this  
Followers 0
Rawox

Check minimizing windows

11 posts in this topic

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?

Share this post


Link to post
Share on other sites



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...

Share this post


Link to post
Share on other sites

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...

Then use WinList()

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Thankyou,, I'll get it to work now...

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0