G
Guest
I'm trying to get (or set) the focus on an external window but to no avail. I've imported the "GetActiveWindow" and "GetFocus" from the user32.dll but those 2 functions seem to only work for windows my application owns... I can get the hWnd of the process I want to check/set focus on. Any help would be greatly appresated.
Just to be a little more clear, say NotePad is up; I'm trying to make my program set focus to the opened Notepad Process (though its hWnd if possible?), or check when the opened NotePad process gets focus. Thanks
Just to be a little more clear, say NotePad is up; I'm trying to make my program set focus to the opened Notepad Process (though its hWnd if possible?), or check when the opened NotePad process gets focus. Thanks