Developers Jos Posted April 9, 2004 Developers Share Posted April 9, 2004 i changed my post ..... had :ControlCommand ( ($title, $text, $button, "IsEnabled", "" ) = 0which must be :ControlCommand ($title, $text, $button, "IsEnabled", "" ) = 0 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
tegelaar Posted April 9, 2004 Author Share Posted April 9, 2004 I got an error while parsing the comman - it didnt like the 0Ok I had an extra ( in there- I fixed that but now it does the same thing - pauses 5 at the first screen - then a screen flash quick, then the installation completed screen. Link to comment Share on other sites More sharing options...
Developers Jos Posted April 9, 2004 Developers Share Posted April 9, 2004 (edited) so your func now looks like ? : Func click( $title, $text, $button) WinWait($title, $text) ; WinSetState( $title, $text, @SW_HIDE ) sleep(1000) while ControlCommand ($title, $text, $button, "IsEnabled", "" ) = 0 sleep(20) wend sleep(2000) ControlClick( $title, $text, $button ) EndFunc then at least it should wait at every screen for 5 seconds.. EDIT: maybe you need to sleep a bit when the window is initially shown... made a mod to the code.. Edited April 9, 2004 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
tegelaar Posted April 9, 2004 Author Share Posted April 9, 2004 so your func now looks like ? : Func click( $title, $text, $button) WinWait($title, $text) ; WinSetState( $title, $text, @SW_HIDE ) sleep(1000) while ControlCommand ($title, $text, $button, "IsEnabled", "" ) = 0 sleep(20) wend sleep(2000) ControlClick( $title, $text, $button ) EndFunc then at least it should wait at every screen for 5 seconds.. EDIT: maybe you need to sleep a bit when the window is initially shown... made a mod to the code..Yea thats what I have - still pauses 5 secs at the first screen - the next one flickers fast then Installation Complete.. Thanks for your help - I'm going home for the weekend now - maybe it will be clearer on Monday... -Jim Link to comment Share on other sites More sharing options...
tegelaar Posted April 12, 2004 Author Share Posted April 12, 2004 Instead of sending control commands, is there a way to run the following hidden? dsclient.exe /q /c:"setup /q" I tried the run command, but it doesn't like the quotes around "setup /q" If I can't get this running tomorrow morning, it is sneakernet for 1600 machines! -Jim Link to comment Share on other sites More sharing options...
Developers Jos Posted April 12, 2004 Developers Share Posted April 12, 2004 run(('dsclient.exe /q /c:"setup /q"') SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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