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
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.
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
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