i'm using autohotkey script in windows 7 send contents of clipboard series of keystrokes. i'm new autohotkey, wondering if there way adjust time between each keystrokes sends. currently, line in script follows:
^!k:: send %clipboard%
i'd able increase time between keystrokes (currently seems on order of 50 characters per second) more 10 characters per second.
i'm using send keystrokes microcontroller using terminal emulator. i'm having issues in when type in keystrokes manually, registers should, when send clipboard contents keystrokes, goes wrong, , hoping slow down rate of input in attempt pinpoint issue. essentially, i'd rule out speed of input issue before attempting more complicated solution.
if has ideas it'd appreciated. thanks!
you can use function
using
sendpersec(clipboard, 10)
or
sendpersec("jdkfjdkjdfkjdfkjdfkdfjdf", 5)
function
sendpersec(data, chs){ sleeptime := 1000 / chs ifless,sleeptime,1 sleeptime := 1 loop, { stringleft,tosend,data,1 send, %tosend% sleep,%sleeptime% stringtrimleft,data,data,1 ifequal,data break } }
Comments
Post a Comment