Jump to content

by using the command line, send('!{o}')


Recommended Posts

Hi all,

      this is my code

run_this.au3   compiled to run_this.exe

$a = $CmdLine[1]
send($a)

 

Then I enter this into my console window

run_this.exe 3

It would then send a keystroke of  3, it works, great.

 

However, if I enter this

run_this.exe !{o}

then it would enter a keystroke of o, instead of ALT+O

 

What went wrong?

 

Thanks all.

Link to post
Share on other sites

When using special characters in DOS console, you should embed it into double quotes :

Quote

run_this.exe "!o"

Notice that you should not use brackets {} for a simple o.  See help file for proper use of the brackets...

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...