Jump to content
Sign in to follow this  
xxkrnplayaxx

_SendDown UDF

Recommended Posts

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:

CODE
Func _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!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...