Add SetKeyDelay and Update Doc

This commit is contained in:
vCaesar 2016-12-11 17:14:14 +08:00
parent 97217346dd
commit 7e40b96d51
5 changed files with 19 additions and 9 deletions

8
doc.md
View File

@ -3,7 +3,8 @@
##[Keyboard](#Keyboard)
#####[Keys](#keys)
#####[SetKeyboardDelay](#SetKeyboardDelay)
#####[SetKeyboardDelay](#SetKeyDelay)(Equivalent to SetKeyDelay)
#####[SetKeyDelay](#SetKeyDelay)
#####[KeyTap](#KeyTap)
#####[KeyToggle](#KeyToggle)
#####[TypeString](#TypeString)
@ -58,7 +59,7 @@
##<h2 id="Keyboard">Keyboard</h2>
###<h3 id="SetKeyboardDelay">.SetKeyboardDelay(ms)</h3>
###<h3 id="SetKeyDelay">.SetKeyDelay(ms)</h3>
Sets the delay in milliseconds to sleep after a keyboard event. This is 10ms by default.
@ -260,7 +261,8 @@ robotgo.ScrollMouse(50, "down")
Gets part or all of the screen.
Capture_Screen Returns a go struct
BCaptureScreen Returns a go struct
Capture_Screen(Drop support)
####Arguments:

View File

@ -412,6 +412,12 @@ func TypeStringDelayed(x string, y int) {
defer C.free(unsafe.Pointer(cx))
}
//SetKeyDelay Set Keyboard Delay
func SetKeyDelay(x int) {
C.aSetKeyboardDelay(C.size_t(x))
}
//SetKeyboardDelay Set Keyboard Delay
func SetKeyboardDelay(x int) {
C.aSetKeyboardDelay(C.size_t(x))

View File

@ -1,6 +1,6 @@
// Copyright 2016 The go-vgo Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://www.
// https://github.com/go-vgo/robotgo/blob/master/LICENSE
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license

View File

@ -1,6 +1,6 @@
// Copyright 2016 The go-vgo Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://www.
// https://github.com/go-vgo/robotgo/blob/master/LICENSE
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license

View File

@ -3,7 +3,8 @@
##[键盘](#Keyboard)
#####[Keys](#keys)
#####[SetKeyboardDelay](#SetKeyboardDelay)
#####[SetKeyboardDelay](#SetKeyDelay)(相当于SetKeyDelay)
#####[SetKeyDelay](#SetKeyDelay)
#####[KeyTap](#KeyTap)
#####[KeyToggle](#KeyToggle)
#####[TypeString](#TypeString)
@ -40,7 +41,7 @@
##[事件](#Event)
#####[LEvent](#LEvent)(相当于AddEvent)
#####[LEvent](#AddEvent)(相当于AddEvent)
#####[AddEvent](#AddEvent)
##[窗口](#Window)
@ -57,7 +58,7 @@
##<h2 id="Keyboard">键盘</h2>
###<h3 id="SetKeyboardDelay">.SetKeyboardDelay(ms)</h3>
###<h3 id="SetKeyDelay">.SetKeyDelay(ms)</h3>
设置键盘延迟(在键盘一个事件后),单位ms,默认值10ms
Sets the delay in milliseconds to sleep after a keyboard event. This is 10ms by default.
@ -274,7 +275,8 @@ robotgo.ScrollMouse(50, "down")
获取部分或者全部屏幕
Gets part or all of the screen.
Capture_Screen Returns a go struct
BCaptureScreen Returns a go struct
Capture_Screen(Drop support)
####参数: