Sign in to follow this  
Followers 0
xxkrnplayaxx

_SendDown UDF

3 posts in this topic

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



Send("{*Key* Down}")
Sleep($Length)
Send("{*Key* up}")

Replace "*Key* with whatever you want it to push

Share this post


Link to post
Share on other sites

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

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  
Followers 0