Sign in to follow this  
Followers 0
S1NTEZ

cannot send keystrokes like Send("#r")

5 posts in this topic

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?

Share this post


Link to post
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

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

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.


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


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
Sign in to follow this  
Followers 0