Phenax Posted April 12, 2009 Share Posted April 12, 2009 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 More sharing options...
CodyBarrett Posted April 12, 2009 Share Posted April 12, 2009 (edited) works fine here EDIT returns: P $x = "Enter" Send("{" & $x & "}") returns {Enter} key or a @CRLF Edited April 12, 2009 by CodyBarrett [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
qazwsx Posted April 12, 2009 Share Posted April 12, 2009 You could also just do: send($x). Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now