mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 06:33:56 +00:00
Update example
This commit is contained in:
parent
d5c553b760
commit
d6663e8641
@ -65,11 +65,6 @@ func main() {
|
||||
}
|
||||
|
||||
//read the screen
|
||||
// robotgo.CaptureScreen()
|
||||
// bit_map := robotgo.CaptureScreen()
|
||||
// Println("CaptureScreen...", bit_map)
|
||||
// gbit_map := robotgo.Capture_Screen()
|
||||
// gbitMap := robotgo.Capture_Screen()
|
||||
gbitMap := robotgo.BCaptureScreen()
|
||||
fmt.Println("Capture_Screen...", gbitMap.Width)
|
||||
|
||||
@ -107,8 +102,8 @@ func main() {
|
||||
//Creates bitmap from string by bit_map
|
||||
fmt.Println("bit_str...", bitstr)
|
||||
|
||||
// sbit_map := robotgo.BitmapFromstring(bit_str, 2)
|
||||
// Println("...", sbit_map)
|
||||
// sbitmap := robotgo.BitmapFromstring(bit_str, 2)
|
||||
// Println("...", sbitmap)
|
||||
|
||||
robotgo.SaveBitmap(bitmap, "test.png")
|
||||
//Saves image to absolute filepath in the given format
|
||||
@ -152,7 +147,8 @@ func main() {
|
||||
// Println("---you press right mouse button---", "mright")
|
||||
// }
|
||||
|
||||
// robotgo.LStop()
|
||||
//Stop AddEvent
|
||||
// robotgo.StopEvent()
|
||||
|
||||
//Window Handle
|
||||
abool := robotgo.ShowAlert("hello", "robotgo") //Show Alert Window
|
||||
|
@ -39,7 +39,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
version string = "v0.41.1.183,Happy new year!"
|
||||
version string = "v0.41.1.193,Happy new year!"
|
||||
)
|
||||
|
||||
//GetVersion get version
|
||||
|
Loading…
Reference in New Issue
Block a user