Jump to content

ControlSend/ControlClick Focus Steal


Recommended Posts

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 by JohnMC
Link to comment
Share on other sites

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!

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

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

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