mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2003
Posts: 413
A
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 413
Anyone know ?

J
Julie2
Julie2
J
each window has an hwnd, and all of mirc various window type $identifiers have a .hwnd property; like $chan(1).hwnd , $get(1).hwnd , $window(name).hwnd , etc

Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
I think Adrenaline means the MDI Parent Window.

Joined: Apr 2003
Posts: 413
A
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 413
You Right.. I mean that..

Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
I don't know of an identifier with the information, but I do know that with a dll call, mirc passes its hWnd Id through the function. if you're planning on modifying mirc, just use a dll call to say, save it and export it to a file, then reference it. it's a cheap way of doing it, but could be done. Additionally, you could take the harder approach and loop through the active applications being run. You should be able to identify mirc by its titlebar text..

I haven't gotten much into fooling with other windows other than my own, butI've seen it done before.

Joined: Apr 2003
Posts: 413
A
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 413
Just find the answer in the mIRC-help file smile
Note: You can also get the .w and .h properties by specifying: -1 for the width and height of the screen, -2 for the main mIRC window, and -3 for the MDI window where all other windows inside mIRC are displayed.

Joined: Apr 2003
Posts: 413
A
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 413
KingTomato,Julie2 thanks for help.


Link Copied to Clipboard