Update test

This commit is contained in:
vCaesar 2016-11-07 22:36:28 +08:00
parent fb3e0f1eaf
commit f354b32945
7 changed files with 19 additions and 5 deletions

View File

@ -175,7 +175,7 @@ import (
)
func main() {
Println("test")
//Println("test")
abool := robotgo.ShowAlert("test", "robotgo")
if abool == 0 {
Println("ok@@@", "ok")

View File

@ -171,7 +171,7 @@ import (
)
func main() {
Println("test")
//Println("test")
abool := robotgo.ShowAlert("test", "robotgo")
if abool == 0 {
Println("ok@@@", "ok")

3
doc.md
View File

@ -388,4 +388,5 @@ func main() {
####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.

View File

@ -7,6 +7,11 @@ import (
)
func aRobotgo() {
abool := robotgo.ShowAlert("test", "robotgo")
if abool == 0 {
Println("ok@@@", "ok")
}
x, y := robotgo.GetMousePos()
Println("pos:", x, y)

View File

@ -6,4 +6,4 @@ int aShowAlert(const char *title, const char *msg, const char *defaultButton,
int alert=showAlert(title,msg,defaultButton,cancelButton);
return alert;
}
}

View File

@ -0,0 +1,7 @@
#if defined(IS_MACOSX)
//
#elif defined(USE_X11)
//
#elif defined(IS_WINDOWS)
//
#endif

View File

@ -402,4 +402,5 @@ func main() {
####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.