Rawox Posted September 6, 2009 Share Posted September 6, 2009 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? Link to comment Share on other sites More sharing options...
Zedna Posted September 6, 2009 Share Posted September 6, 2009 (edited) Simple (but not elegant) method is to call WinGetState() in loop and test minimized state of desired window. Edited September 6, 2009 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Rawox Posted September 6, 2009 Author Share Posted September 6, 2009 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... Link to comment Share on other sites More sharing options...
Zedna Posted September 6, 2009 Share Posted September 6, 2009 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() Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 6, 2009 Moderators Share Posted September 6, 2009 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. Link to comment Share on other sites More sharing options...
Zedna Posted September 6, 2009 Share Posted September 6, 2009 Also look at example for DllCallbackRegister() in helpfile. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Rawox Posted September 6, 2009 Author Share Posted September 6, 2009 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... Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 6, 2009 Moderators Share Posted September 6, 2009 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. Link to comment Share on other sites More sharing options...
Rawox Posted September 6, 2009 Author Share Posted September 6, 2009 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 Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 6, 2009 Moderators Share Posted September 6, 2009 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. Link to comment Share on other sites More sharing options...
Rawox Posted September 6, 2009 Author Share Posted September 6, 2009 Thankyou,, I'll get it to work now... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now