Jump to content
Sign in to follow this  
Merchants

ControlSend does not do what i want

Recommended Posts

Merchants

i don't know why this does not work wel..

ControlSend($Win, "", "", "test!", 1)

it says: test1

Edited by Merchants

Share this post


Link to post
Share on other sites
Tvern

I think the problem is that "!" is used to send "Alt". Try "{!}" instead.

The documentation for Send() has more information on this.

edit: Now I see you are sending the keys raw. Guess you could still try without the raw flag, but using "{!}".

edit2: I can't actually reproduce your problem. I can send the string "test!" to scite without a problem.

Edited by Tvern

Share this post


Link to post
Share on other sites
SmOke_N

Could be the app you're sending it to is changing the chars.

Couple of options you could try.

- SendMessage() API call yourself with WM_SETTEXT

- Try using an actual control classname or handle in the third param

- Use ControlSetText() instead.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
Merchants

hmm.. how do i use this can you make a simple script?

Share this post


Link to post
Share on other sites
SmOke_N

hmm.. how do i use this can you make a simple script?

I will help you ( to help yourself ) by saying this. "It's been done, search the forum".

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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  

×