mIRC Home    About    Download    Register    News    Help

Print Thread
Window Handle #63797 12/12/03 01:28 PM
Joined: Dec 2003
Posts: 33
M
Man Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Dec 2003
Posts: 33
It should be possible to get the handle of the static window on all custom windows. When Mr. K decided to add static windows ontop of the custom window he never made it possible to find its handle, makeing some dlls not work properly.

Also getting the handle of each dialog id would be nice. (eg the buttons,edit boxes, etc)

Re: Window Handle #63798 12/12/03 01:30 PM
Joined: Dec 2003
Posts: 33
M
Man Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Dec 2003
Posts: 33
Oh and also be able to create a window without this static window, or be able to adjust its size.

Re: Window Handle #63799 12/12/03 01:33 PM
Joined: Apr 2003
Posts: 210
S
saxon Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Apr 2003
Posts: 210
Ok, your talking about DLL's here, And you can easily get the handle of the static with a DLL.

Re: Window Handle #63800 12/12/03 01:40 PM
Joined: Dec 2003
Posts: 33
M
Man Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Dec 2003
Posts: 33
which dll?? I have been unable to find one, other than zwnd.dll but its got enough problems for me not to concider using it, and means I have to use lots of while loops.

Anyway I still this its a good addition even if it can be done with dlls

edit: Obviously the handle isn't of much use to pure mIRC scripting and would be used with dlls or possibly com objects, but that didnt stop $window(blabla).hwnd did it (And a dll can find this info out too :P)

Last edited by Man; 12/12/03 01:42 PM.
Re: Window Handle #63801 12/12/03 01:56 PM
Joined: Apr 2003
Posts: 210
S
saxon Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Apr 2003
Posts: 210
I mean that a DLL which needs to manipulate the static should be finding the handle itself, based on the @window handle.

What DLL are you having trouble with?


(And no, I dont think It would be any harm if $window had .static property).

Re: Window Handle #63802 12/12/03 02:22 PM
Joined: Jun 2003
Posts: 195
N
Narusegawa_Naru Offline
Vogon poet
Offline
Vogon poet
N
Joined: Jun 2003
Posts: 195
im curious wich dll is having the problem. the static face has been around for many builds. I think the last 3 or so dll's ive written the static is understood.

I can see no harm in adding maybe an .swnd property but i think any dll that requires the scripter to pass a window handle is poorly coded. theres a plethera of means to get any handle to any control on any window just by using its @name (or name for dialogs).


Have Fun smile
Re: Window Handle #63803 12/12/03 03:06 PM
Joined: Dec 2003
Posts: 33
M
Man Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Dec 2003
Posts: 33
This problem doesn't lie in for dlls made for mIRC, but for dlls that pass information to something else. Like mci.dll which is a link to the Media Control Interface of windows. Now windows isn't required to find the static windows handle by itself. This is just an example, nHTMLn has its own problems with it, being with the mouse scroll doesn't work (If I remember removeing the static fixed this, cant remember though)

Re: Window Handle #63804 12/12/03 03:32 PM
Joined: Jun 2003
Posts: 195
N
Narusegawa_Naru Offline
Vogon poet
Offline
Vogon poet
N
Joined: Jun 2003
Posts: 195
yes im familiar with both dll's. both of wich were written prior to the static window. in the case of mci it wasnt meant for any window persay. indeed the video properties require it. I dont think either dll is being updated anymore so perhaps an swnd property is just what the dr ordered.


Have Fun smile