Sign in to follow this  
Followers 0
acana007

help with using a unique identifier

6 posts in this topic

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.

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by acana007

Share this post


Link to post
Share on other sites

if i open for example my computer on my desktop and my computer on my laptop will the handle still be the same

Share this post


Link to post
Share on other sites

fixed salved

Share this post


Link to post
Share on other sites

if i open for example my computer on my desktop and my computer on my laptop will the handle still be the same

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

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