acana007 Posted February 9, 2010 Share Posted February 9, 2010 i need some help with how to uniquely identify a window. I can't use the class(would be nice though) but i was wondering if handle is always different window to window and if so if a can use that. Link to comment Share on other sites More sharing options...
martin Posted February 9, 2010 Share Posted February 9, 2010 i need some help with how to uniquely identify a window. I can't use the class(would be nice though) but i was wondering if handle is always different window to window and if so if a can use that.There is only ever one window with a given handle. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
acana007 Posted February 9, 2010 Author Share Posted February 9, 2010 (edited) There is only ever one window with a given handle. so for example would something like this work if WinExists("[HANDLE:0x0029028B]") Then Wexit EndIf Edited February 9, 2010 by acana007 Link to comment Share on other sites More sharing options...
acana007 Posted February 9, 2010 Author Share Posted February 9, 2010 if i open for example my computer on my desktop and my computer on my laptop will the handle still be the same Link to comment Share on other sites More sharing options...
acana007 Posted February 9, 2010 Author Share Posted February 9, 2010 fixed salved Link to comment Share on other sites More sharing options...
martin Posted February 9, 2010 Share Posted February 9, 2010 if i open for example my computer on my desktop and my computer on my laptop will the handle still be the sameNo. Windows allocates handles to windows as they are created and they won't be the same each time the application is run on a given PC let alone on a different PC. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. 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