mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-03 07:33:55 +00:00
Update doc
This commit is contained in:
parent
322d0d0c46
commit
8e46bc00fe
56
doc.md
56
doc.md
@ -46,6 +46,11 @@
|
|||||||
This is a work in progress.
|
This is a work in progress.
|
||||||
|
|
||||||
#####[ShowAlert(support linux as soon as possible)](#ShowAlert)
|
#####[ShowAlert(support linux as soon as possible)](#ShowAlert)
|
||||||
|
#####[CloseWindow](#CloseWindow)
|
||||||
|
#####[IsValid](#IsValid)
|
||||||
|
#####[GetActive](#GetActive)
|
||||||
|
#####[GetHandle](#GetHandle)
|
||||||
|
#####[GetTitle](#GetTitle)
|
||||||
|
|
||||||
|
|
||||||
##<h2 id="Keyboard">Keyboard</h2>
|
##<h2 id="Keyboard">Keyboard</h2>
|
||||||
@ -389,4 +394,55 @@ 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.
|
||||||
|
|
||||||
|
###<h3 id="CloseWindow">.CloseWindow()</h3>
|
||||||
|
|
||||||
|
Close the Window
|
||||||
|
|
||||||
|
####Arguments:
|
||||||
|
|
||||||
|
|
||||||
|
####Return:
|
||||||
|
|
||||||
|
|
||||||
|
###<h3 id="IsValid">.IsValid()</h3>
|
||||||
|
|
||||||
|
Valid the Window
|
||||||
|
|
||||||
|
####Arguments:
|
||||||
|
|
||||||
|
|
||||||
|
####Return:
|
||||||
|
Returns true if a window has been selected
|
||||||
|
|
||||||
|
|
||||||
|
###<h3 id="GetActive">.GetActive()</h3>
|
||||||
|
|
||||||
|
Get the Active Window
|
||||||
|
|
||||||
|
####Arguments:
|
||||||
|
|
||||||
|
|
||||||
|
####Return:
|
||||||
|
Returns hwnd
|
||||||
|
|
||||||
|
###<h3 id="GetHandle">.GetHandle()</h3>
|
||||||
|
|
||||||
|
Get the Window Handle
|
||||||
|
|
||||||
|
####Arguments:
|
||||||
|
|
||||||
|
|
||||||
|
####Return:
|
||||||
|
Returns hwnd
|
||||||
|
|
||||||
|
###<h3 id="GetTitle">.GetTitle()</h3>
|
||||||
|
|
||||||
|
Get the Window Title
|
||||||
|
|
||||||
|
####Arguments:
|
||||||
|
|
||||||
|
|
||||||
|
####Return:
|
||||||
|
Returns Window Title
|
||||||
|
|
||||||
|
57
zh_doc.md
57
zh_doc.md
@ -46,6 +46,11 @@
|
|||||||
This is a work in progress.
|
This is a work in progress.
|
||||||
|
|
||||||
#####[ShowAlert(support linux as soon as possible)](#ShowAlert)
|
#####[ShowAlert(support linux as soon as possible)](#ShowAlert)
|
||||||
|
#####[CloseWindow](#CloseWindow)
|
||||||
|
#####[IsValid](#IsValid)
|
||||||
|
#####[GetActive](#GetActive)
|
||||||
|
#####[GetHandle](#GetHandle)
|
||||||
|
#####[GetTitle](#GetTitle)
|
||||||
|
|
||||||
|
|
||||||
##<h2 id="Keyboard">键盘</h2>
|
##<h2 id="Keyboard">键盘</h2>
|
||||||
@ -403,4 +408,54 @@ 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.
|
||||||
|
|
||||||
|
###<h3 id="CloseWindow">.CloseWindow()</h3>
|
||||||
|
|
||||||
|
Close the Window
|
||||||
|
|
||||||
|
####Arguments:
|
||||||
|
|
||||||
|
|
||||||
|
####Return:
|
||||||
|
|
||||||
|
|
||||||
|
###<h3 id="IsValid">.IsValid()</h3>
|
||||||
|
|
||||||
|
Valid the Window
|
||||||
|
|
||||||
|
####Arguments:
|
||||||
|
|
||||||
|
|
||||||
|
####Return:
|
||||||
|
Returns true if a window has been selected
|
||||||
|
|
||||||
|
|
||||||
|
###<h3 id="GetActive">.GetActive()</h3>
|
||||||
|
|
||||||
|
Get the Active Window
|
||||||
|
|
||||||
|
####Arguments:
|
||||||
|
|
||||||
|
|
||||||
|
####Return:
|
||||||
|
Returns hwnd
|
||||||
|
|
||||||
|
###<h3 id="GetHandle">.GetHandle()</h3>
|
||||||
|
|
||||||
|
Get the Window Handle
|
||||||
|
|
||||||
|
####Arguments:
|
||||||
|
|
||||||
|
|
||||||
|
####Return:
|
||||||
|
Returns hwnd
|
||||||
|
|
||||||
|
###<h3 id="GetTitle">.GetTitle()</h3>
|
||||||
|
|
||||||
|
Get the Window Title
|
||||||
|
|
||||||
|
####Arguments:
|
||||||
|
|
||||||
|
|
||||||
|
####Return:
|
||||||
|
Returns Window Title
|
Loading…
Reference in New Issue
Block a user