diff --git a/robotgo.go b/robotgo.go index 0d17041..9b94541 100644 --- a/robotgo.go +++ b/robotgo.go @@ -324,7 +324,7 @@ func TypeString(x string) { func TypeStringDelayed(x string, y int) { cx := C.CString(x) cy := C.C.size_t(y) - C.aTypeStringDelayed(cx, y) + C.aTypeStringDelayed(cx, cy) defer C.free(unsafe.Pointer(cx)) }