xandout Posted October 26, 2009 Posted October 26, 2009 Hey all i just wanted to say thanks for all the help and to say i have just made a cd that when ran will install flash, java, FF, DivX, 7zip, Adobe Reader, and avast. My boss is gonna love me. AutoIT is the bomb!!!!master.au3seven.au3sunj.au3flsh.au3ff.au3dvd.au3av.au3adbrdr.au3
exodius Posted October 26, 2009 Posted October 26, 2009 I see that you've got a lot of Send commands in your different installer scripts, did you try using ControlSetText? The reason why I ask is Send can fail to enter what you want if the computer lags for some reason and/or it can also be interrupted if someone clicks away from the window you're trying to enter things into (or if another window gets focus somehow).
xandout Posted October 26, 2009 Author Posted October 26, 2009 i dont understand how to implement that command for use with my code could i get an in use example?
exodius Posted October 26, 2009 Posted October 26, 2009 Example from the Help File: Run("notepad.exe") WinWait("Untitled -") ControlSetText("Untitled -", "", "Edit1", "New Text Here" ) You can get the name of the controls (usually) by using the AU3Info tool that you'll find under Tools in SciTE.
xandout Posted October 26, 2009 Author Posted October 26, 2009 i get the usage as it pretains to the help file but im not entering any text at all im just clicking alot are you saying i could use ControlSetText to send my {ENTER} and {SPACE}? if so please show me how in a workable example or explain it please.
exodius Posted October 26, 2009 Posted October 26, 2009 Fair enough, now that I notice that you're mostly not entering text, you should be able to use ControlClick in most of those cases if you can get the control ids (using the AU3Info tool).
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