2018-02-01 16:07:44 +00:00
|
|
|
// Copyright 2016 The go-vgo Project Developers. See the COPYRIGHT
|
2017-01-02 11:07:45 +00:00
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
|
// https://github.com/go-vgo/robotgo/blob/master/LICENSE
|
|
|
|
|
//
|
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
|
// except according to those terms.
|
|
|
|
|
|
2016-11-24 10:55:21 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import (
|
2016-12-10 15:31:47 +00:00
|
|
|
"fmt"
|
2016-12-09 15:07:18 +00:00
|
|
|
|
2016-11-24 10:55:21 +00:00
|
|
|
"github.com/go-vgo/robotgo"
|
|
|
|
|
// "go-vgo/robotgo"
|
|
|
|
|
)
|
|
|
|
|
|
2018-07-13 11:23:09 +00:00
|
|
|
func main() {
|
|
|
|
|
ver := robotgo.GetVersion()
|
|
|
|
|
fmt.Println("robotgo version is: ", ver)
|
2016-11-24 10:55:21 +00:00
|
|
|
|
2018-07-13 11:23:09 +00:00
|
|
|
// Control the keyboard
|
|
|
|
|
// key()
|
2017-07-02 03:52:37 +00:00
|
|
|
|
2017-01-24 15:16:12 +00:00
|
|
|
// Control the mouse
|
2018-07-13 11:23:09 +00:00
|
|
|
// mouse()
|
2017-07-02 04:18:41 +00:00
|
|
|
|
2017-01-24 15:16:12 +00:00
|
|
|
// Read the screen
|
2018-07-13 11:23:09 +00:00
|
|
|
// screen()
|
2016-11-24 10:55:21 +00:00
|
|
|
|
2018-07-13 11:23:09 +00:00
|
|
|
// Bitmap and image processing
|
|
|
|
|
// bitmap()
|
2016-11-24 10:55:21 +00:00
|
|
|
|
2017-01-24 15:16:12 +00:00
|
|
|
// Global event listener
|
2018-07-13 11:23:09 +00:00
|
|
|
// event()
|
2017-03-24 15:31:17 +00:00
|
|
|
|
2017-07-17 13:45:50 +00:00
|
|
|
// Window Handle and progress
|
2018-07-13 11:23:09 +00:00
|
|
|
// window()
|
2017-07-02 04:18:41 +00:00
|
|
|
}
|