Could someone tell me what am I missing please? I can't figure what's going on...
So, the custom function below unwantedy drops leading zero(s) in certain situations.
Code: Select all
ClipSend(vString:="",vWait:=0,vRest:=0) {
If vString { ; is not empty
Loop {
If Clipboard ; is not empty
Clipboard :=
Else Break
}
Clipboard := vString
ClipWait, vWait
if errorlevel
MsgBox, Timed out
Sleep vRest
Send +{End}^v
}
Else Send +{End}{Del}
}
^numpad0::
ClipSend(0001)
ClipSend(1)
ClipSend(0001)
return
^numpad1::
ClipSend(0001)
ClipSend(01)
ClipSend(0001)
return
Hotkey ^numpad1 on the other hand works as intented, as it always sends 0001010001...