Sign in to follow this  
Followers 0
Phenax

Send Key Variable

3 posts in this topic

Basically, I want to do this:

Send("{P}")

But I want to do it with a variable:

$x = "P"
Send("{" & $x & "}")

Is that the correct method? Or am I doing something wrong. My script is not running as-is but I cannot figure out if this is the correct way.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

works fine here :D

EDIT

returns:

P

$x = "Enter"

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

returns

{Enter} key or a @CRLF

Edited by CodyBarrett

Share this post


Link to post
Share on other sites

You could also just do: send($x).

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