Rutto Posted May 21, 2004 Share Posted May 21, 2004 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 More sharing options...
Rutto Posted May 21, 2004 Author Share Posted May 21, 2004 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... Where I'm wrong ? Link to comment Share on other sites More sharing options...
ezzetabi Posted May 21, 2004 Share Posted May 21, 2004 Use ControlClick , solves all that kind of problems. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now