Jump to content

ControlSend does not do what i want


Recommended Posts

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
Link to comment
Share on other sites

  • Moderators

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.

Link to comment
Share on other sites

  • Moderators

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.

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