Update example

This commit is contained in:
vCaesar 2017-01-05 20:29:13 +08:00
parent d5c553b760
commit d6663e8641
2 changed files with 5 additions and 9 deletions

View File

@ -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

View File

@ -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