Sign in to follow this  
Followers 0
pegmanm

Really Easy I think..!

3 posts in this topic

I would like to send a variable number of key presses.

I.E

IF $x=2

Send("{DOWN}") $x number of times.

Is this possible with the Send command or do I really need to write a loop around my

Sends?

Regards

Martin P

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

From help:

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}")

Edited by Zedna

Share this post


Link to post
Share on other sites

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

From help:

Thank you very much.

I had see this in the Help but had discounted as I was over complicating the issue in my head.

Thanks again.

Martin P

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  
Followers 0