mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 06:33:56 +00:00
Add TypeStrDelay and Warning
This commit is contained in:
parent
7e40b96d51
commit
98898850f1
9
doc.md
9
doc.md
@ -3,12 +3,13 @@
|
||||
##[Keyboard](#Keyboard)
|
||||
|
||||
#####[Keys](#keys)
|
||||
#####[SetKeyboardDelay](#SetKeyDelay)(Equivalent to SetKeyDelay)
|
||||
#####[SetKeyboardDelay](#SetKeyDelay)(Equivalent to SetKeyDelay,Wno-deprecated)
|
||||
#####[SetKeyDelay](#SetKeyDelay)
|
||||
#####[KeyTap](#KeyTap)
|
||||
#####[KeyToggle](#KeyToggle)
|
||||
#####[TypeString](#TypeString)
|
||||
#####[TypeStringDelayed](#TypeStringDelayed)
|
||||
#####[TypeStringDelayed](#TypeStrDelay)(Equivalent to TypeStrDelay,Wno-deprecated)
|
||||
#####[TypeStrDelay](#TypeStrDelay)
|
||||
|
||||
##[Mouse](#Mouse)
|
||||
|
||||
@ -41,7 +42,7 @@
|
||||
|
||||
##[Event](#Event)
|
||||
|
||||
#####[LEvent](#LEvent)(Equivalent to AddEvent)
|
||||
#####[LEvent](#LEvent)(Equivalent to AddEvent,Wno-deprecated)
|
||||
#####[AddEvent](#AddEvent)
|
||||
|
||||
##[Window](#Window)
|
||||
@ -101,7 +102,7 @@
|
||||
|
||||
string - The string to send.
|
||||
|
||||
###<h3 id="TypeStringDelayed">.TypeStringDelayed(string, cpm)</h3>
|
||||
###<h3 id="TypeStrDelay">.TypeStrDelay(string, cpm)</h3>
|
||||
|
||||
####Arguments:
|
||||
|
||||
|
14
robotgo.go
14
robotgo.go
@ -1,6 +1,5 @@
|
||||
// Copyright 2016 The go-vgo Project Developers.
|
||||
// All Rights Reserved. See the COPYRIGHT file at
|
||||
// the top-level directory of this distribution and at
|
||||
// Copyright 2016 The go-vgo Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// https://github.com/go-vgo/robotgo/blob/master/LICENSE
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
@ -404,6 +403,14 @@ func TypeString(x string) {
|
||||
defer C.free(unsafe.Pointer(cx))
|
||||
}
|
||||
|
||||
//TypeStrDelay Type String Delayed
|
||||
func TypeStrDelay(x string, y int) {
|
||||
cx := C.CString(x)
|
||||
cy := C.size_t(y)
|
||||
C.aTypeStringDelayed(cx, cy)
|
||||
defer C.free(unsafe.Pointer(cx))
|
||||
}
|
||||
|
||||
//TypeStringDelayed Type String Delayed
|
||||
func TypeStringDelayed(x string, y int) {
|
||||
cx := C.CString(x)
|
||||
@ -412,7 +419,6 @@ 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))
|
||||
|
@ -3,12 +3,13 @@
|
||||
##[键盘](#Keyboard)
|
||||
|
||||
#####[Keys](#keys)
|
||||
#####[SetKeyboardDelay](#SetKeyDelay)(相当于SetKeyDelay)
|
||||
#####[SetKeyboardDelay](#SetKeyDelay)(相当于SetKeyDelay,Wno-deprecated)
|
||||
#####[SetKeyDelay](#SetKeyDelay)
|
||||
#####[KeyTap](#KeyTap)
|
||||
#####[KeyToggle](#KeyToggle)
|
||||
#####[TypeString](#TypeString)
|
||||
#####[TypeStringDelayed](#TypeStringDelayed)
|
||||
#####[TypeStringDelayed](#TypeStrDelay)(相当于TypeStrDelay,Wno-deprecated)
|
||||
#####[TypeStrDelay](#TypeStrDelay)
|
||||
|
||||
##[鼠标](#Mouse)
|
||||
|
||||
@ -41,7 +42,7 @@
|
||||
|
||||
##[事件](#Event)
|
||||
|
||||
#####[LEvent](#AddEvent)(相当于AddEvent)
|
||||
#####[LEvent](#AddEvent)(相当于AddEvent,Wno-deprecated)
|
||||
#####[AddEvent](#AddEvent)
|
||||
|
||||
##[窗口](#Window)
|
||||
@ -105,7 +106,7 @@
|
||||
|
||||
string - The string to send.
|
||||
|
||||
###<h3 id="TypeStringDelayed">.TypeStringDelayed(string, cpm)</h3>
|
||||
###<h3 id="TypeStrDelay">.TypeStrDelay(string, cpm)</h3>
|
||||
|
||||
####参数:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user