mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
Update test
This commit is contained in:
parent
fb3e0f1eaf
commit
f354b32945
@ -175,7 +175,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
Println("test")
|
//Println("test")
|
||||||
abool := robotgo.ShowAlert("test", "robotgo")
|
abool := robotgo.ShowAlert("test", "robotgo")
|
||||||
if abool == 0 {
|
if abool == 0 {
|
||||||
Println("ok@@@", "ok")
|
Println("ok@@@", "ok")
|
||||||
|
@ -171,7 +171,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
Println("test")
|
//Println("test")
|
||||||
abool := robotgo.ShowAlert("test", "robotgo")
|
abool := robotgo.ShowAlert("test", "robotgo")
|
||||||
if abool == 0 {
|
if abool == 0 {
|
||||||
Println("ok@@@", "ok")
|
Println("ok@@@", "ok")
|
||||||
|
3
doc.md
3
doc.md
@ -388,4 +388,5 @@ func main() {
|
|||||||
|
|
||||||
####Return:
|
####Return:
|
||||||
|
|
||||||
Returns 0(True) if the default button was pressed, or 1(False) if cancelled.
|
Returns 0(True) if the default button was pressed, or 1(False) if cancelled.
|
||||||
|
|
||||||
|
@ -7,6 +7,11 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func aRobotgo() {
|
func aRobotgo() {
|
||||||
|
abool := robotgo.ShowAlert("test", "robotgo")
|
||||||
|
if abool == 0 {
|
||||||
|
Println("ok@@@", "ok")
|
||||||
|
}
|
||||||
|
|
||||||
x, y := robotgo.GetMousePos()
|
x, y := robotgo.GetMousePos()
|
||||||
Println("pos:", x, y)
|
Println("pos:", x, y)
|
||||||
|
|
||||||
|
@ -6,4 +6,4 @@ int aShowAlert(const char *title, const char *msg, const char *defaultButton,
|
|||||||
int alert=showAlert(title,msg,defaultButton,cancelButton);
|
int alert=showAlert(title,msg,defaultButton,cancelButton);
|
||||||
|
|
||||||
return alert;
|
return alert;
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
#if defined(IS_MACOSX)
|
||||||
|
//
|
||||||
|
#elif defined(USE_X11)
|
||||||
|
//
|
||||||
|
#elif defined(IS_WINDOWS)
|
||||||
|
//
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user