Update docs

This commit is contained in:
vCaesar 2017-02-24 20:33:58 +08:00
parent 0c09eb2be5
commit 88313b5a63
4 changed files with 82 additions and 160 deletions

View File

@ -4,7 +4,7 @@
##[Keyboard](#Keyboard)
#####[Keys](#Keys)
#####[Keys](https://github.com/go-vgo/robotgo/blob/master/docs/keys.md)
#####[SetKeyboardDelay](#SetKeyDelay)(Equivalent to SetKeyDelay,Wno-deprecated)
#####[SetKeyDelay](#SetKeyDelay)
#####[KeyTap](#KeyTap)
@ -72,84 +72,6 @@
##<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>
Sets the delay in milliseconds to sleep after a keyboard event. This is 10ms by default.

View File

@ -4,7 +4,7 @@
##[键盘](#Keyboard)
#####[Keys](#Keys)
#####[Keys](https://github.com/go-vgo/robotgo/blob/master/docs/keys.md)
#####[SetKeyboardDelay](#SetKeyDelay)(相当于SetKeyDelay,废弃API)
#####[SetKeyDelay](#SetKeyDelay)
#####[KeyTap](#KeyTap)
@ -73,84 +73,6 @@
##<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>
设置键盘延迟(在键盘一个事件后),单位ms,默认值10ms

78
docs/keys.md Normal file
View 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"

View File

@ -387,9 +387,9 @@ func Try(fun func(), handler func(interface{})) {
fun()
}
// KeyTap Tap the keyboard
// KeyTap Tap the keyboard;
// 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{}) {
var akey string
var akeyt string