mIRC Home    About    Download    Register    News    Help

Print Thread
#64101 15/12/03 04:50 PM
Joined: Dec 2003
Posts: 1
T
Mostly harmless
OP Offline
Mostly harmless
T
Joined: Dec 2003
Posts: 1
Can anybody explain me a possible use for the identifier $wid?

I already know that it returns the window's id, but what's the use of that? Is it possible to return the name of the window using this id?

Your help is appreciated

#64102 15/12/03 06:00 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
From a programming perspective, every window an an associated ID that goes with it. By passing this id to the program, you cna than modify properties of the window, such as titlebar, postiion, size, etc. I can really only see it being used for DLLs, such as the ones that modify dialog like MDX, or kTools.


-KingTomato
#64103 17/12/03 01:05 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
I don't think $window(<window>).wid can be of any use to a dll because I don't think it represents anything, fex a handle. The handle of the window is returned by $window(<window>).hwnd

Most probably, WID is just a way to uniquely identify a window in scripts. Window names aren't suitable for that because you can have two or more windows of the same name.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Link Copied to Clipboard