xxkrnplayaxx Posted January 11, 2007 Share Posted January 11, 2007 1) I wrote the following UDF to send keys for a set time, however constantly changing the settings doesn't seems very efficient. Is there a better way to do this? Code: CODEFunc _SendDown($key, $len) AutoItSetOption ( "SendKeyDownDelay" , $len) Send($key) AutoItSetOption ( "SendKeyDownDelay" , 5);def. value EndFunc 2) Is there a way to run multiple sequence structures within a single application without calling other exe? I would also like to be able to toggle these extra sequences from hotkeys set in main code. ei: When running a normal script, a user presses F12. Hotkey F12 would be set to mouseclick every 100ms (loop) and while this was running keep running the normal script. When the user pressed F12 again it stops the mouseclick loop and the normal script is not affected. I hope this makes sense. Thanks P.S. First Post! Link to comment Share on other sites More sharing options...
Paulie Posted January 11, 2007 Share Posted January 11, 2007 Send("{*Key* Down}") Sleep($Length) Send("{*Key* up}") Replace "*Key* with whatever you want it to push Link to comment Share on other sites More sharing options...
theguy0000 Posted January 11, 2007 Share Posted January 11, 2007 and welcome to the forums! The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN 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