mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 06:33:56 +00:00
Add SetKeyDelay and Update Doc
This commit is contained in:
parent
97217346dd
commit
7e40b96d51
8
doc.md
8
doc.md
@ -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:
|
||||
|
||||
|
@ -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))
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
10
zh_doc.md
10
zh_doc.md
@ -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)
|
||||
|
||||
####参数:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user