Jump to content

Recommended Posts

Posted

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.

Posted (edited)

works fine here :D

EDIT

returns:

P

$x = "Enter"

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

returns

{Enter} key or a @CRLF

Edited by CodyBarrett

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
×
×
  • Create New...