mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-23 17:59:12 +00:00
Update TypeStrDelay function, remove unused code
This commit is contained in:
parent
1fa740cacc
commit
f449b485a0
1 changed files with 3 additions and 6 deletions
|
|
@ -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 a new issue