Jump to content

ControlSend with special keys ( v.83 )

Recommended Posts

  • Administrators

The only one that doesn't work for me is ALT combos like !f. I had some code that almost got it to work (brought up a menu) but it failed when the window was not active so I removed it.

{ENTER} works fine here under XP though.

Edit: Just tested {ENTER} under 95 and it works here.

Link to post
Share on other sites
  • Administrators

This is the sort of code I've been testing:

If WinExists("Document - WordPad") Then
    WinActivate("Document - WordPad")

WinWaitActive("Document - WordPad")

ControlSend("Document - WordPad", "", "RICHEDIT50W1", "1234{ENTER}{LEFT 2}{ASC 65}")

Link to post
Share on other sites

Sorry, I was just testing it out and home and this is the one machine I didn't update.

Every command works great for me now.

It was pretty funny since I had all the {} command in one file.

Anyhow My appologies, and I couldn't edit my post fast enough.

...edit CHR() work fine as well. and {enter} works on win2000 as well

Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Link to post
Share on other sites

for ControlSetText(), i need to press the ENTER key so that, application validates the input and fills up other related fields with corresponding values. If no enter key pressed, other fields won't be filled up.

Seems ControlsetText() does not support {ENTER} key for Edit boxes.

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