GGCrew Posted December 14, 2009 Share Posted December 14, 2009 Is there a command to do this? I already know about commands like ALTDOWN etc. for various function buttons... but for example... what if I want to hold the Y key, and while still holding it, input K, S, T, wait 1 second, Q, release Y? I didn't see any command when I searched through the options, but it's possible that I missed it... I also tried {yDOWN} which of course doesn't work. Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted December 14, 2009 Share Posted December 14, 2009 Hi and Welcome to the forums!Straight out from the helpfile:To hold a key down (generally only useful for games)Send("{a down}") ;Holds the A key downSend("{a up}") ;Releases the A keyPlease try it yourself next time, you could learn something .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
jvanegmond Posted December 14, 2009 Share Posted December 14, 2009 I also tried {yDOWN} which of course doesn't work.Because it's {y DOWN}. Hurr durr. github.com/jvanegmond Link to comment Share on other sites More sharing options...
BlackBeltSmurf Posted January 19, 2010 Share Posted January 19, 2010 Did you ever tried it by yourself with AutoIt V3? With this you should get sequences of a's if the cursor is in an editor. What you get is a single 'a' every 6 seconds. Any suggestions, why this is not working as described in the helpfile? While True Send("{a down}") Sleep(5000) Send("{a up}") Sleep(1000) WEnd Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted January 19, 2010 Share Posted January 19, 2010 Did you ever tried it by yourself with AutoIt V3?With this you should get sequences of a's if the cursor is in an editor.What you get is a single 'a' every 6 seconds.Any suggestions, why this is not working as described in the helpfile?You send one "A", you get one "A". That is how it works, and the helpfile doesn't mention otherwise. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
ofLight Posted January 19, 2010 Share Posted January 19, 2010 With this you should get sequences of a's if the cursor is in an editor. $begin = TimerInit() Do Send('a') Until TimerDiff($begin) > 1000 There is always a butthead in the crowd, no matter how hard one tries to keep them out.......Volly Link to comment Share on other sites More sharing options...
BlackBeltSmurf Posted January 20, 2010 Share Posted January 20, 2010 Thx for the hints. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now