Jump to content

Send Key Variable


Recommended Posts

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.

Link to comment
Share on other sites

works fine here :D

EDIT

returns:

P

$x = "Enter"

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

returns

{Enter} key or a @CRLF

Edited by CodyBarrett
Link to comment
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
 Share

  • Recently Browsing   0 members

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