JohnMC Posted April 18, 2008 Share Posted April 18, 2008 (edited) Im simply trying to write a script that opens a properties dialog for the program im running (utorrent), updates a few text boxes with ControlSetText then confirms the changes my issue is that on the confimation, the window takes focus, i would love it if i could avoid this ive tried controlsend and controlclick and im tring to understand if ControlCommand could help me but i just dont see how. ideas anyone? thanks either way! Edited April 18, 2008 by JohnMC https://johnscs.com Link to comment Share on other sites More sharing options...
martin Posted April 18, 2008 Share Posted April 18, 2008 Im simply trying to write a script that opens a properties dialog for the program im running (utorrent), updates a few text boxes with ControlSetText then confirms the changesmy issue is that on the confimation, the window takes focus, i would love it if i could avoid thisive tried controlsend and controlclick and im tring to understand if ControlCommand could help me but i just dont see how.ideas anyone? thanks either way!I'm not clear what you mean. When you say the window takes focus do you mean a window asking for confirmation? If you need to enter a response then it has to take focus so I'm probably confused. Can youexplain in sinmpler steps? Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
JohnMC Posted April 19, 2008 Author Share Posted April 19, 2008 I'm not clear what you mean. When you say the window takes focus do you mean a window asking for confirmation? If you need to enter a response then it has to take focus so I'm probably confused. Can youexplain in sinmpler steps?Well the window im making edits in simply needs to have the edits applied by pressing Ok or Apply, when controlsend or controlclick are executed to press the "apply" button the window takes focus (the same window the edits were made in and where the apply button is)....im playing with controlcommand and it seems like controlcommand("title", "text", controlID,"Check", "") might be working, i saw some unexpected results the first time i used it but i think it might of been a one time thing.... interesting how this function seems to work with regular buttons https://johnscs.com Link to comment Share on other sites More sharing options...
Zedna Posted April 19, 2008 Share Posted April 19, 2008 (edited) As far as I can understand your caseuse ControlFocus() to bring focus back to your desired control after ControlClick() Edited April 19, 2008 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search 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