Jump to content
Sign in to follow this  
Rutto

Cursor Position

Recommended Posts

Rutto

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 !

Share this post


Link to post
Share on other sites
Rutto

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 ?

Share this post


Link to post
Share on other sites
ezzetabi

Use ControlClick , solves all that kind of problems.

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  

×