[go-nuts] Re: find hwnd on win 10

2022-06-27 Thread Robert Solomon
Howard, based on your advice, my basic code now works as I wanted. I got it working without needing xpzed/win32. Thank you again. --rob solomon On Sunday, June 26, 2022 at 3:44:01 PM UTC-4 Howard C. Shaw III wrote: > > > https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setf

[go-nuts] Re: find hwnd on win 10

2022-06-26 Thread Howard C. Shaw III
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setforegroundwindow "The system restricts which processes can set the foreground window. A process can set the foreground window only if one of the following conditions is true: - The process is the foreground process.

[go-nuts] Re: find hwnd on win 10

2022-06-26 Thread Robert Solomon
The following code will flash the found window on the task bar, but will not show it so I can see it. I'm looking for something that is similar to takecommand by JPSoft, which has an activate command that will make the desired window pop up and be active. package main import ( "flag" "f

[go-nuts] Re: find hwnd on win 10

2022-06-21 Thread Howard C. Shaw III
On what basis are you using globs ("*lient*", etc) in FindWindow? If I understand correctly, the w32 and w32a packages are just wrapping Windows APIs, so the semantics of the use should match the equivalent use of the windows API. The documentation for FindWindow says "Retrieves a handle to the