Jump to content

Cursor Position


Recommended Posts

Hi everybody,

how can I position the cursor in a certain text field of a window ? Note that I don't know where the user can locate the cursor before running the script, so TAB is not possible.

Thanks in advice !

Link to comment
Share on other sites

If it is a browser window, then blah, otherwise ControlFocus()

Lar.

Thank you Larry !

I did this:

ControlFocus("Clarify - ClearSupport", "", "Edit5")

But after script has been executed the cursor is still in the original position and not on that field.

If I did this:

ControlSetText ( "Clarify - ClearSupport", "", "Edit5", "new text" )

It writes in the correct field 'new text' but after script execution the cursor is still in the original poisition...

:huh2:

Where I'm wrong :D ?

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