1. Get ID/hWnd for active window
- Posted by akusaya at gmx.net Feb 14, 2002
- 496 views
How can I get win32lib ID or hWnd of the current active Window (real Window: create(Window, ...)) ¯¯¯¯¯¯ Because it is needed for some API functions like OpenClipboard(hWnd) In VB we can use Me.hWnd variable. Thanks!
2. Re: Get ID/hWnd for active window
- Posted by Martin Stachon <martin.stachon at worldonline.cz> Feb 14, 2002
- 488 views
> How can I get win32lib ID or hWnd of the current active > Window (real Window: create(Window, ...)) ¯¯¯¯¯¯ > Because it is needed for some API functions like > OpenClipboard(hWnd) If you don't know which window is active : constant xGetForegroundWindow = registerw32Function(user32, "GetForegroundWindow", {}, C_INT ) global function getForegroundWindow () return getId(w32Func(xGetForegroundWindow, {}) ) end function -- Martin