Jump to content
Sign in to follow this  
lopolop

holding down down

Recommended Posts

lopolop

i want to hold the down key... or it could be S key and the wait 3 seconds and lift up....


Share this post


Link to post
Share on other sites
Sardith

IsPressed in the help file


[font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font]

Share this post


Link to post
Share on other sites
jefhal

i want to hold the down key... or it could be S key and the wait 3 seconds and lift up....

When you've made up your mind, let us know and we'll try to help... :P

...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format

Share this post


Link to post
Share on other sites
seandisanti

i want to hold the down key... or it could be S key and the wait 3 seconds and lift up....

Send("{S down}")
Sleep(3000)
Send("{S up}")

Share this post


Link to post
Share on other sites
jefhal

From the FHF:

Single keys can also be repeated, e.g.

Send("{DEL 4}") ;Presses the DEL key 4 times

Send("{S 30}") ;Sends 30 'S' characters

Send("+{TAB 4}") ;Presses SHIFT+TAB 4 times

To hold a key down (generally only useful for games)

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

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

If you wish to use a variable for the count, try

$n = 4

Send("+{TAB " & $n & "}")

If you wish to send the ASCII value A four times, then try

$x = Chr(65)

Send("{" & $x & " 4}")


...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format

Share this post


Link to post
Share on other sites
seandisanti

From the FHF:

FHF ? i'm assuming HF is help file, but what's the first F for?

Share this post


Link to post
Share on other sites
lopolop

o i over read that in the help file


Share this post


Link to post
Share on other sites
LxP

FHF ? i'm assuming HF is help file, but what's the first F for?

Fabulous. Duh. :P

Alternatively borrow the F from RTFM and there you have it.

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  

×