Jump to content

Recommended Posts

Posted

you know how this Send("+{UP 10000}") presses the up key 10,000 times. How would i substitue a key being held for a certain amount of time instead of a key being pressed 10,000 times. My computer lagges with the 10,000 presses but if I were t have it held I don't think it would.

Posted

According to the helpfile for Send():

Send("{a down}") ;Holds the A key down

Send("{a up}") ;Releases the A key

Only issue is that this doesn't seem to work for me anymore (probably since switching to win7), but maybe it works for you.

Posted

If l want script hold any key then for example l do

send("{a enter"}) ? "a" means hold?:blink:

No, You do send("{a down"}).

To keep it pressed, put a sleep(x) between send("{a down"}) and send("{a up"})

Example

send("{a down"})

Sleep(2000)

send("{a up"})

Keeps a pressed for 2 seconds and exits.

Posted

No, You do send("{a down"}).

To keep it pressed, put a sleep(x) between send("{a down"}) and send("{a up"})

Example

send("{a down"})

Sleep(2000)

send("{a up"})

Keeps a pressed for 2 seconds and exits.

That just presses it once because of the sleep function ending it.

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
  • Recently Browsing   0 members

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