Jump to content
disvsros

hold key down

Recommended Posts

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


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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 ;)

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

×
×
  • Create New...