mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 23:23:55 +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) {
|
func TypeStrDelay(str string, delay int) {
|
||||||
cstr := C.CString(str)
|
TypeStr(str)
|
||||||
cdelay := C.size_t(delay)
|
Sleep(delay)
|
||||||
C.type_string_delayed(cstr, cdelay)
|
|
||||||
|
|
||||||
C.free(unsafe.Pointer(cstr))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TypeStringDelayed type string delayed, Wno-deprecated
|
// TypeStringDelayed type string delayed, Wno-deprecated
|
||||||
|
Loading…
Reference in New Issue
Block a user