mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 23:23:55 +00:00
Update example
This commit is contained in:
parent
85377986eb
commit
de60d4d88b
@ -151,7 +151,8 @@ func main() {
|
|||||||
fmt.Println("ok@@@", "ok")
|
fmt.Println("ok@@@", "ok")
|
||||||
}
|
}
|
||||||
robotgo.ShowAlert("hello", "robotgo", "Ok", "Cancel")
|
robotgo.ShowAlert("hello", "robotgo", "Ok", "Cancel")
|
||||||
// robotgo.GetPID()
|
pid := robotgo.GetPID() //Get the current process id
|
||||||
|
fmt.Println("pid----", pid)
|
||||||
mdata := robotgo.GetActive() //Get current Window Active
|
mdata := robotgo.GetActive() //Get current Window Active
|
||||||
hwnd := robotgo.GetHandle() //Get current Window Handle
|
hwnd := robotgo.GetHandle() //Get current Window Handle
|
||||||
fmt.Println("hwnd---", hwnd)
|
fmt.Println("hwnd---", hwnd)
|
||||||
|
@ -39,7 +39,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
version string = "v0.42.0.221,Mount Ngauruhoe!"
|
version string = "v0.42.0.222,Mount Ngauruhoe!"
|
||||||
)
|
)
|
||||||
|
|
||||||
//GetVersion get version
|
//GetVersion get version
|
||||||
|
Loading…
Reference in New Issue
Block a user