mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
add GetForegroundWindow func support
This commit is contained in:
parent
b13ad7986e
commit
2a461274b6
@ -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 New Issue
Block a user