Jump to content

cannot send keystrokes like Send("#r")


Recommended Posts

sorry for my simple english. I have a trouble with sending keystrokes.

cannot send keystrokes like Send("#r") or Send("^p")

when a run this script (Tools -> Go)

Posted Image

it is not working as should. Run.exe not starting.

But in editor adds the symbol 'r'

Posted Image

if i try run this command Send("^p"), in editor adds the symbol 'p'

Can anybody help me?

Link to comment
Share on other sites

Did you read the help file on Send? It is quite comprehensive and explains exactly what you need to do to send control chars and the like.

HTH

yes i read

can you tell me, what am I doing wrong?

Link to comment
Share on other sites

Hi,

I can reproduce your error if I put a space between # and r, like Send("# r") or even better if I put only Send("r").

Send("#r") will work normally.

Please come back to tell if you find what is the error.

Alain

Edited by AlainB
Link to comment
Share on other sites

  • Developers

yes i read

can you tell me, what am I doing wrong?

you read it but didn't understand?

Send

--------------------------------------------------------------------------------

Sends simulated keystrokes to the active window.

Send ( "keys" [, flag] )

Parameters

keys The sequence of keys to send.

flag [optional] Changes how "keys" is processed:

flag = 0 (default), Text contains special characters like + and ! to indicate SHIFT and ALT key-presses.

flag = 1, keys are sent raw.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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...