disvsros

hold key down

6 posts in this topic

hi i am trying to use this script on a vmware 

while 1 = 1
sleep(6000)
Send("{A down}")
Sleep(10050)
Send("{A up}")
Sleep(300)
WEnd 

but it send the A down like its :

Send("{A}")
Sleep(10050)

i mean it doesnt hold the key you know why it isn't holding the key?

Share this post


Link to post
Share on other sites



It doesn't work like pressing down  a keyboard key, which will start repeating itself when you do that.
You will have to program the repetition of the Send("A") yourself.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

i see but without the vmware it works the a down

Share this post


Link to post
Share on other sites

@disvsros by "on a vmware" I am assuming you mean on a virtual machine. Are you running the script from inside the virtual machine or from the Host? What exactly are you trying to accomplish within the VM? We need a lot more explanation from you in order to help ;)


√-1 2^3 ∑ π, and it was delicious!

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