mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 23:23:55 +00:00
Update docs
This commit is contained in:
parent
0c09eb2be5
commit
88313b5a63
80
docs/doc.md
80
docs/doc.md
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
##[Keyboard](#Keyboard)
|
##[Keyboard](#Keyboard)
|
||||||
|
|
||||||
#####[Keys](#Keys)
|
#####[Keys](https://github.com/go-vgo/robotgo/blob/master/docs/keys.md)
|
||||||
#####[SetKeyboardDelay](#SetKeyDelay)(Equivalent to SetKeyDelay,Wno-deprecated)
|
#####[SetKeyboardDelay](#SetKeyDelay)(Equivalent to SetKeyDelay,Wno-deprecated)
|
||||||
#####[SetKeyDelay](#SetKeyDelay)
|
#####[SetKeyDelay](#SetKeyDelay)
|
||||||
#####[KeyTap](#KeyTap)
|
#####[KeyTap](#KeyTap)
|
||||||
@ -72,84 +72,6 @@
|
|||||||
|
|
||||||
##<h2 id="Keyboard">Keyboard</h2>
|
##<h2 id="Keyboard">Keyboard</h2>
|
||||||
|
|
||||||
###<h3 id="Keys">Keys</h3>
|
|
||||||
"backspace"
|
|
||||||
"delete"
|
|
||||||
"enter"
|
|
||||||
"tab"
|
|
||||||
"escape"
|
|
||||||
"up"
|
|
||||||
"down"
|
|
||||||
"right"
|
|
||||||
"left"
|
|
||||||
"home"
|
|
||||||
"end"
|
|
||||||
"pageup"
|
|
||||||
"pagedown"
|
|
||||||
"f1"
|
|
||||||
"f2"
|
|
||||||
"f3"
|
|
||||||
"f4"
|
|
||||||
"f5"
|
|
||||||
"f6"
|
|
||||||
"f7"
|
|
||||||
"f8"
|
|
||||||
"f9"
|
|
||||||
"f10"
|
|
||||||
"f11"
|
|
||||||
"f12"
|
|
||||||
"f13"
|
|
||||||
"f14"
|
|
||||||
"f15"
|
|
||||||
"f16"
|
|
||||||
"f17"
|
|
||||||
"f18"
|
|
||||||
"f19"
|
|
||||||
"f20"
|
|
||||||
"f21"
|
|
||||||
"f22"
|
|
||||||
"f23"
|
|
||||||
"f24"
|
|
||||||
"command"
|
|
||||||
"alt"
|
|
||||||
"control"
|
|
||||||
"shift"
|
|
||||||
"right_shift"
|
|
||||||
"space"
|
|
||||||
"printscreen" No Mac support
|
|
||||||
"insert" No Mac support
|
|
||||||
"menu"
|
|
||||||
|
|
||||||
"audio_mute"
|
|
||||||
"audio_vol_down"
|
|
||||||
"audio_vol_up"
|
|
||||||
"audio_play"
|
|
||||||
"audio_stop"
|
|
||||||
"audio_pause"
|
|
||||||
"audio_prev"
|
|
||||||
"audio_next"
|
|
||||||
"audio_rewind" Linux only
|
|
||||||
"audio_forward" Linux only
|
|
||||||
"audio_repeat" Linux only
|
|
||||||
"audio_random" Linux only
|
|
||||||
|
|
||||||
"numpad_0"
|
|
||||||
"numpad_1"
|
|
||||||
"numpad_2"
|
|
||||||
"numpad_3"
|
|
||||||
"numpad_4"
|
|
||||||
"numpad_5"
|
|
||||||
"numpad_6"
|
|
||||||
"numpad_7"
|
|
||||||
"numpad_8"
|
|
||||||
"numpad_9"
|
|
||||||
|
|
||||||
"lights_mon_up"
|
|
||||||
"lights_mon_down"
|
|
||||||
"lights_kbd_toggle"
|
|
||||||
"lights_kbd_up"
|
|
||||||
"lights_kbd_down"
|
|
||||||
|
|
||||||
###<h3 id="SetKeyDelay">.SetKeyDelay(ms)</h3>
|
###<h3 id="SetKeyDelay">.SetKeyDelay(ms)</h3>
|
||||||
|
|
||||||
Sets the delay in milliseconds to sleep after a keyboard event. This is 10ms by default.
|
Sets the delay in milliseconds to sleep after a keyboard event. This is 10ms by default.
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
##[键盘](#Keyboard)
|
##[键盘](#Keyboard)
|
||||||
|
|
||||||
#####[Keys](#Keys)
|
#####[Keys](https://github.com/go-vgo/robotgo/blob/master/docs/keys.md)
|
||||||
#####[SetKeyboardDelay](#SetKeyDelay)(相当于SetKeyDelay,废弃API)
|
#####[SetKeyboardDelay](#SetKeyDelay)(相当于SetKeyDelay,废弃API)
|
||||||
#####[SetKeyDelay](#SetKeyDelay)
|
#####[SetKeyDelay](#SetKeyDelay)
|
||||||
#####[KeyTap](#KeyTap)
|
#####[KeyTap](#KeyTap)
|
||||||
@ -73,84 +73,6 @@
|
|||||||
|
|
||||||
##<h2 id="Keyboard">键盘</h2>
|
##<h2 id="Keyboard">键盘</h2>
|
||||||
|
|
||||||
###<h3 id="Keys">Keys</h3>
|
|
||||||
"backspace"
|
|
||||||
"delete"
|
|
||||||
"enter"
|
|
||||||
"tab"
|
|
||||||
"escape"
|
|
||||||
"up"
|
|
||||||
"down"
|
|
||||||
"right"
|
|
||||||
"left"
|
|
||||||
"home"
|
|
||||||
"end"
|
|
||||||
"pageup"
|
|
||||||
"pagedown"
|
|
||||||
"f1"
|
|
||||||
"f2"
|
|
||||||
"f3"
|
|
||||||
"f4"
|
|
||||||
"f5"
|
|
||||||
"f6"
|
|
||||||
"f7"
|
|
||||||
"f8"
|
|
||||||
"f9"
|
|
||||||
"f10"
|
|
||||||
"f11"
|
|
||||||
"f12"
|
|
||||||
"f13"
|
|
||||||
"f14"
|
|
||||||
"f15"
|
|
||||||
"f16"
|
|
||||||
"f17"
|
|
||||||
"f18"
|
|
||||||
"f19"
|
|
||||||
"f20"
|
|
||||||
"f21"
|
|
||||||
"f22"
|
|
||||||
"f23"
|
|
||||||
"f24"
|
|
||||||
"command"
|
|
||||||
"alt"
|
|
||||||
"control"
|
|
||||||
"shift"
|
|
||||||
"right_shift"
|
|
||||||
"space"
|
|
||||||
"printscreen" No Mac support
|
|
||||||
"insert" No Mac support
|
|
||||||
"menu"
|
|
||||||
|
|
||||||
"audio_mute"
|
|
||||||
"audio_vol_down"
|
|
||||||
"audio_vol_up"
|
|
||||||
"audio_play"
|
|
||||||
"audio_stop"
|
|
||||||
"audio_pause"
|
|
||||||
"audio_prev"
|
|
||||||
"audio_next"
|
|
||||||
"audio_rewind" Linux only
|
|
||||||
"audio_forward" Linux only
|
|
||||||
"audio_repeat" Linux only
|
|
||||||
"audio_random" Linux only
|
|
||||||
|
|
||||||
"numpad_0"
|
|
||||||
"numpad_1"
|
|
||||||
"numpad_2"
|
|
||||||
"numpad_3"
|
|
||||||
"numpad_4"
|
|
||||||
"numpad_5"
|
|
||||||
"numpad_6"
|
|
||||||
"numpad_7"
|
|
||||||
"numpad_8"
|
|
||||||
"numpad_9"
|
|
||||||
|
|
||||||
"lights_mon_up"
|
|
||||||
"lights_mon_down"
|
|
||||||
"lights_kbd_toggle"
|
|
||||||
"lights_kbd_up"
|
|
||||||
"lights_kbd_down"
|
|
||||||
|
|
||||||
###<h3 id="SetKeyDelay">.SetKeyDelay(ms)</h3>
|
###<h3 id="SetKeyDelay">.SetKeyDelay(ms)</h3>
|
||||||
设置键盘延迟(在键盘一个事件后),单位ms,默认值10ms
|
设置键盘延迟(在键盘一个事件后),单位ms,默认值10ms
|
||||||
|
|
||||||
|
78
docs/keys.md
Normal file
78
docs/keys.md
Normal file
@ -0,0 +1,78 @@
|
|||||||
|
|
||||||
|
###<h3 id="Keys">Keys</h3>
|
||||||
|
"backspace"
|
||||||
|
"delete"
|
||||||
|
"enter"
|
||||||
|
"tab"
|
||||||
|
"escape"
|
||||||
|
"up"
|
||||||
|
"down"
|
||||||
|
"right"
|
||||||
|
"left"
|
||||||
|
"home"
|
||||||
|
"end"
|
||||||
|
"pageup"
|
||||||
|
"pagedown"
|
||||||
|
"f1"
|
||||||
|
"f2"
|
||||||
|
"f3"
|
||||||
|
"f4"
|
||||||
|
"f5"
|
||||||
|
"f6"
|
||||||
|
"f7"
|
||||||
|
"f8"
|
||||||
|
"f9"
|
||||||
|
"f10"
|
||||||
|
"f11"
|
||||||
|
"f12"
|
||||||
|
"f13"
|
||||||
|
"f14"
|
||||||
|
"f15"
|
||||||
|
"f16"
|
||||||
|
"f17"
|
||||||
|
"f18"
|
||||||
|
"f19"
|
||||||
|
"f20"
|
||||||
|
"f21"
|
||||||
|
"f22"
|
||||||
|
"f23"
|
||||||
|
"f24"
|
||||||
|
"command"
|
||||||
|
"alt"
|
||||||
|
"control"
|
||||||
|
"shift"
|
||||||
|
"right_shift"
|
||||||
|
"space"
|
||||||
|
"printscreen" No Mac support
|
||||||
|
"insert" No Mac support
|
||||||
|
"menu"
|
||||||
|
|
||||||
|
"audio_mute"
|
||||||
|
"audio_vol_down"
|
||||||
|
"audio_vol_up"
|
||||||
|
"audio_play"
|
||||||
|
"audio_stop"
|
||||||
|
"audio_pause"
|
||||||
|
"audio_prev"
|
||||||
|
"audio_next"
|
||||||
|
"audio_rewind" Linux only
|
||||||
|
"audio_forward" Linux only
|
||||||
|
"audio_repeat" Linux only
|
||||||
|
"audio_random" Linux only
|
||||||
|
|
||||||
|
"numpad_0"
|
||||||
|
"numpad_1"
|
||||||
|
"numpad_2"
|
||||||
|
"numpad_3"
|
||||||
|
"numpad_4"
|
||||||
|
"numpad_5"
|
||||||
|
"numpad_6"
|
||||||
|
"numpad_7"
|
||||||
|
"numpad_8"
|
||||||
|
"numpad_9"
|
||||||
|
|
||||||
|
"lights_mon_up"
|
||||||
|
"lights_mon_down"
|
||||||
|
"lights_kbd_toggle"
|
||||||
|
"lights_kbd_up"
|
||||||
|
"lights_kbd_down"
|
@ -387,9 +387,9 @@ func Try(fun func(), handler func(interface{})) {
|
|||||||
fun()
|
fun()
|
||||||
}
|
}
|
||||||
|
|
||||||
// KeyTap Tap the keyboard
|
// KeyTap Tap the keyboard;
|
||||||
// See keys:
|
// See keys:
|
||||||
// https://github.com/go-vgo/robotgo/blob/master/docs/doc.md#Keys
|
// https://github.com/go-vgo/robotgo/blob/master/docs/keys.md
|
||||||
func KeyTap(args ...interface{}) {
|
func KeyTap(args ...interface{}) {
|
||||||
var akey string
|
var akey string
|
||||||
var akeyt string
|
var akeyt string
|
||||||
|
Loading…
Reference in New Issue
Block a user