mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-10 02:23:54 +00:00
Add SetKeyDelay and Update Doc
This commit is contained in:
parent
d7aae94a86
commit
77b97fbe5e
8
doc.md
8
doc.md
@ -3,7 +3,8 @@
|
|||||||
##[Keyboard](#Keyboard)
|
##[Keyboard](#Keyboard)
|
||||||
|
|
||||||
#####[Keys](#keys)
|
#####[Keys](#keys)
|
||||||
#####[SetKeyboardDelay](#SetKeyboardDelay)
|
#####[SetKeyboardDelay](#SetKeyDelay)(Equivalent to SetKeyDelay)
|
||||||
|
#####[SetKeyDelay](#SetKeyDelay)
|
||||||
#####[KeyTap](#KeyTap)
|
#####[KeyTap](#KeyTap)
|
||||||
#####[KeyToggle](#KeyToggle)
|
#####[KeyToggle](#KeyToggle)
|
||||||
#####[TypeString](#TypeString)
|
#####[TypeString](#TypeString)
|
||||||
@ -58,7 +59,7 @@
|
|||||||
|
|
||||||
##<h2 id="Keyboard">Keyboard</h2>
|
##<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.
|
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.
|
Gets part or all of the screen.
|
||||||
|
|
||||||
Capture_Screen Returns a go struct
|
BCaptureScreen Returns a go struct
|
||||||
|
Capture_Screen(Drop support)
|
||||||
|
|
||||||
####Arguments:
|
####Arguments:
|
||||||
|
|
||||||
|
@ -412,6 +412,12 @@ func TypeStringDelayed(x string, y int) {
|
|||||||
defer C.free(unsafe.Pointer(cx))
|
defer C.free(unsafe.Pointer(cx))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//SetKeyDelay Set Keyboard Delay
|
||||||
|
func SetKeyDelay(x int) {
|
||||||
|
C.aSetKeyboardDelay(C.size_t(x))
|
||||||
|
}
|
||||||
|
|
||||||
//SetKeyboardDelay Set Keyboard Delay
|
//SetKeyboardDelay Set Keyboard Delay
|
||||||
func SetKeyboardDelay(x int) {
|
func SetKeyboardDelay(x int) {
|
||||||
C.aSetKeyboardDelay(C.size_t(x))
|
C.aSetKeyboardDelay(C.size_t(x))
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Copyright 2016 The go-vgo Project Developers. See the COPYRIGHT
|
// Copyright 2016 The go-vgo Project Developers. See the COPYRIGHT
|
||||||
// file at the top-level directory of this distribution and at
|
// 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
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
// 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
|
// Copyright 2016 The go-vgo Project Developers. See the COPYRIGHT
|
||||||
// file at the top-level directory of this distribution and at
|
// 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
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
// 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)
|
##[键盘](#Keyboard)
|
||||||
|
|
||||||
#####[Keys](#keys)
|
#####[Keys](#keys)
|
||||||
#####[SetKeyboardDelay](#SetKeyboardDelay)
|
#####[SetKeyboardDelay](#SetKeyDelay)(相当于SetKeyDelay)
|
||||||
|
#####[SetKeyDelay](#SetKeyDelay)
|
||||||
#####[KeyTap](#KeyTap)
|
#####[KeyTap](#KeyTap)
|
||||||
#####[KeyToggle](#KeyToggle)
|
#####[KeyToggle](#KeyToggle)
|
||||||
#####[TypeString](#TypeString)
|
#####[TypeString](#TypeString)
|
||||||
@ -40,7 +41,7 @@
|
|||||||
|
|
||||||
##[事件](#Event)
|
##[事件](#Event)
|
||||||
|
|
||||||
#####[LEvent](#LEvent)(相当于AddEvent)
|
#####[LEvent](#AddEvent)(相当于AddEvent)
|
||||||
#####[AddEvent](#AddEvent)
|
#####[AddEvent](#AddEvent)
|
||||||
|
|
||||||
##[窗口](#Window)
|
##[窗口](#Window)
|
||||||
@ -57,7 +58,7 @@
|
|||||||
|
|
||||||
|
|
||||||
##<h2 id="Keyboard">键盘</h2>
|
##<h2 id="Keyboard">键盘</h2>
|
||||||
###<h3 id="SetKeyboardDelay">.SetKeyboardDelay(ms)</h3>
|
###<h3 id="SetKeyDelay">.SetKeyDelay(ms)</h3>
|
||||||
设置键盘延迟(在键盘一个事件后),单位ms,默认值10ms
|
设置键盘延迟(在键盘一个事件后),单位ms,默认值10ms
|
||||||
|
|
||||||
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.
|
||||||
@ -274,7 +275,8 @@ robotgo.ScrollMouse(50, "down")
|
|||||||
获取部分或者全部屏幕
|
获取部分或者全部屏幕
|
||||||
Gets part or all of the screen.
|
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