supag Posted January 10, 2004 Posted January 10, 2004 im making a bot and i need to press and hold the leftarrow for a certain amount of time, but i only know how to make it press the leftarrow for a certain amount of strokes. Does any one know how to make the bot press and hold leftarrow key for a certain amount of seconds?
Snarg Posted January 11, 2004 Posted January 11, 2004 I don't have AutoIt on the computer so some of the syntax will not be perfect: SetEnv, a, 0 SetEnv, b, 3000 Gosub, LeftArrow Exit LeftArrow: Loop: Send, {LEFT} EnvAdd, a, 1 IfNotEqual, a, b, Goto, Loop Return I *think* that will press the left arrow for three seconds. A little reading goes a long way. Post count means nothing.
supag Posted January 14, 2004 Author Posted January 14, 2004 well i tested it, it looped forever, but i think its just clicking it forever, instead of holding. not sure tho.
Recommended Posts