MaviATES Posted October 3, 2008 Share Posted October 3, 2008 How can i use switchless command in autoit script? i can install all program with bat file to use switchless code. Like setup.exe /s .... But when i use autoit i have to write like this code expandcollapse popup; ---------------------------------------------------------------------------- ; ; AutoIt Version: 3.0 ; Language: English ; Platform: Win9x / NT ; Author: fourte3n ; ; Script Function: ; A-Squared 1.5 Free - Install ; ; ---------------------------------------------------------------------------- ; ---------------------------------------------------------------------------- ; Set up our defaults/Variables ; ---------------------------------------------------------------------------- AutoItSetOption("WinTitleMatchMode", 1) $SF= "a2freesetup.exe" ; ---------------------------------------------------------------------------- ; Script Start ; ---------------------------------------------------------------------------- Run($SF) WinWaitActive ("Select Setup Language") Send ("{ENTER}") WinWaitActive ("Setup - a-squared free") Send ("!N") WinWaitActive ("Setup - a-squared free") Send("{TAB}" & "{UP}" & "{ENTER}") WinWaitActive ("Setup - a-squared free") Send ("{ENTER}") WinWaitActive ("Setup - a-squared free") Send ("{ENTER}") WinWaitActive ("Setup - a-squared free") Send ("{SPACE}" & "{TAB}" & "{SPACE}" & "{TAB}" & "{SPACE}" & "{ENTER}") WinWaitActive ("Setup - a-squared free") Send ("{ENTER}") WinWaitActive ("a² Updater") WinKill("a² Updater", "") WinWaitActive ("Setup - a-squared free") Send ("{ENTER}") ; ---------------------------------------------------------------------------- ; Script End ; ---------------------------------------------------------------------------- Can i use switchless code in autoit script? [b]Run("setup.exe","/s")[/b] Link to comment Share on other sites More sharing options...
Valuater Posted October 3, 2008 Share Posted October 3, 2008 ; Can i use switchless code in autoit script?;... YesRun("setup.exe /s"); sometimes arguments need parenthesisRun("setup.exe " & '"/s"')8) Link to comment Share on other sites More sharing options...
zorphnog Posted October 3, 2008 Share Posted October 3, 2008 You might want to use RunWait though. Link to comment Share on other sites More sharing options...
MaviATES Posted October 3, 2008 Author Share Posted October 3, 2008 Thanks a lot 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