Jump to content

hold key down


disvsros
 Share

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?

Link to comment
Share on other sites

  • Developers

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 etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Moderators

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

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...