dutchguy69 Posted July 21, 2004 Share Posted July 21, 2004 I love the new version of autoit but I have one question for you. I'm trying to install a program. When I come to the install path I want to modify this. So I click the browse button, this is bringing up a window where I can choose a path. The control Static2 shows as hidden in autoit spy. So I'm sending the ControlShow command and afterwards the control is no longer hidden according to the spy. Then I'm trying to use ControlSend like I do in many other install scripts that I've created but that is not working and I can't find anything wrong there. Is this not working because the initial control is hidden. Is there a way to send data to this control ?? It works with the normal Send command, because the control is active when I enter the window, but I want to be sure that I'm sending it to the right control. Hope that it is clear. Thanks very much. Link to comment Share on other sites More sharing options...
Davman Posted July 22, 2004 Share Posted July 22, 2004 Hm... not sure about ControlSend, but the browse dialog must have a title... While WinActive("browse dialog name") Send("What it was you wanted") Wend This is untested, and probably wrong, but i think it should work (in theory). Whilst the window is active, send the code. Sitting comfortably behind the code. Link to comment Share on other sites More sharing options...
this-is-me Posted July 22, 2004 Share Posted July 22, 2004 Try controlfocus before send Who else would I be? 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