Mutalgaettae Posted December 7, 2009 Share Posted December 7, 2009 I understand send or control send will press a button but how do u hold it for a controlled time? Link to comment Share on other sites More sharing options...
whim Posted December 7, 2009 Share Posted December 7, 2009 To hold a key down (generally only useful for games) Send("{a down}") ;Holds the A key down Send("{a up}") ;Releases the A key... and 5 topics down from 'Send' in the same help file:SendKeyDownDelay (Option)HTH,whimPS If you have an AutoIt function that does not work for you, or behaves unexpectedly, put your cursor before it's first character, and press F1 (or Alt-F1 if running beta) Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted December 7, 2009 Share Posted December 7, 2009 Mom ate your helpfile? To hold a key down (generally only useful for games) Send("{a down}") ;Holds the A key down Send("{a up}") ;Releases the A key .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...
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