Rutto 0 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 ! Share this post Link to post Share on other sites
Rutto 0 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 ? Share this post Link to post Share on other sites
ezzetabi 3 Posted May 21, 2004 Use ControlClick , solves all that kind of problems. Share this post Link to post Share on other sites