Re: Get ID/hWnd for active window
- Posted by Martin Stachon <martin.stachon at worldonline.cz> Feb 14, 2002
- 486 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