mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-24 10:19:01 +00:00
add GetForegroundWindow func support
This commit is contained in:
parent
b13ad7986e
commit
2a461274b6
1 changed files with 7 additions and 0 deletions
|
|
@ -14,3 +14,10 @@ func FindWindow(str string) win.HWND {
|
|||
|
||||
return hwnd
|
||||
}
|
||||
|
||||
// GetHWND get foreground window hwnd
|
||||
func GetHWND() win.HWND {
|
||||
hwnd := win.GetForegroundWindow()
|
||||
|
||||
return hwnd
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue