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