mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 06:33:56 +00:00
Update TypeStrDelay function, remove unused code
This commit is contained in:
parent
1fa740cacc
commit
f449b485a0
@ -778,13 +778,10 @@ func PasteStr(str string) {
|
||||
}
|
||||
}
|
||||
|
||||
// TypeStrDelay type string delayed, Wno-deprecated
|
||||
// TypeStrDelay type string delayed
|
||||
func TypeStrDelay(str string, delay int) {
|
||||
cstr := C.CString(str)
|
||||
cdelay := C.size_t(delay)
|
||||
C.type_string_delayed(cstr, cdelay)
|
||||
|
||||
C.free(unsafe.Pointer(cstr))
|
||||
TypeStr(str)
|
||||
Sleep(delay)
|
||||
}
|
||||
|
||||
// TypeStringDelayed type string delayed, Wno-deprecated
|
||||
|
Loading…
Reference in New Issue
Block a user