Jump to content
Sign in to follow this  
zutto

how to keep only 1 key down for X time?

Recommended Posts

zutto

I know

opt("SendKeyDownDelay", 16)

but it keeps all key's down :/ and i want to keep only 1 key and rest default time [1ms]

any ideas?

Share this post


Link to post
Share on other sites
Andreik

I know

opt("SendKeyDownDelay", 16)

but it keeps all key's down :/ and i want to keep only 1 key and rest default time [1ms]

any ideas?

Holds the A key down

Send("{a down}")

And you can use TimerInit and TimerDiff to get time.

Edited by Andreik

When the words fail... music speaks

Share this post


Link to post
Share on other sites
zutto

Holds the A key down

Send("{a down}")

And you can unse TimerInit and TimerDiff to get time.

lol if that works i have to say big thanks to you :E

Share this post


Link to post
Share on other sites
Andreik

lol if that works i have to say big thanks to you :E

Read more in help file about send. That should work.


When the words fail... music speaks

Share this post


Link to post
Share on other sites
zutto

Read more in help file about send. That should work.

ye it did work ^^

thanks!

and i did read send but didnt find any useful info :E

Share this post


Link to post
Share on other sites
oMBRa

or u can do

opt("SendKeyDownDelay", 16)
send("blabla")

opt("SendKeyDownDelay", 1)
send("moreblabla")+

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  

×