mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
Update doc
This commit is contained in:
parent
36bf29f1a2
commit
fd4a82093b
23
doc.md
23
doc.md
@ -42,6 +42,11 @@
|
||||
|
||||
#####[LEvent](#LEvent)
|
||||
|
||||
##[Window](#Window)
|
||||
This is a work in progress.
|
||||
|
||||
#####[ShowAlert(support linux as soon as possible)](#ShowAlert)
|
||||
|
||||
|
||||
##<h2 id="Keyboard">Keyboard</h2>
|
||||
|
||||
@ -366,3 +371,21 @@ func main() {
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
##<h2 id="Window">Window</h2>
|
||||
|
||||
###<h3 id="ShowAlert">.ShowAlert(title, msg,defaultButton,cancelButton string)</h3>
|
||||
|
||||
Displays alert with the given attributes. If cancelButton is not given, only the defaultButton is displayed
|
||||
|
||||
####Arguments:
|
||||
|
||||
title(string),
|
||||
msg(string),
|
||||
defaultButton(optional string),
|
||||
cancelButton(optional string)
|
||||
|
||||
|
||||
####Return:
|
||||
|
||||
Returns True if the default button was pressed, or False if cancelled.
|
||||
|
25
zh_doc.md
25
zh_doc.md
@ -42,6 +42,11 @@
|
||||
|
||||
#####[LEvent](#LEvent)
|
||||
|
||||
##[Window](#Window)
|
||||
This is a work in progress.
|
||||
|
||||
#####[ShowAlert(support linux as soon as possible)](#ShowAlert)
|
||||
|
||||
|
||||
##<h2 id="Keyboard">键盘</h2>
|
||||
###<h3 id="SetKeyboardDelay">.SetKeyboardDelay(ms)</h3>
|
||||
@ -379,4 +384,22 @@ func main() {
|
||||
Println("you press...", "mouse left button")
|
||||
}
|
||||
}
|
||||
```
|
||||
```
|
||||
|
||||
##<h2 id="Window">Window</h2>
|
||||
|
||||
###<h3 id="ShowAlert">.ShowAlert(title, msg,defaultButton,cancelButton string)</h3>
|
||||
|
||||
Displays alert with the given attributes. If cancelButton is not given, only the defaultButton is displayed
|
||||
|
||||
####Arguments:
|
||||
|
||||
title(string),
|
||||
msg(string),
|
||||
defaultButton(optional string),
|
||||
cancelButton(optional string)
|
||||
|
||||
|
||||
####Return:
|
||||
|
||||
Returns True if the default button was pressed, or False if cancelled.
|
Loading…
Reference in New Issue
Block a user