Sign in to follow this  
Followers 0
MaviATES

Help me (About switchless command)

4 posts in this topic

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

; ----------------------------------------------------------------------------
;
; 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]

Share this post


Link to post
Share on other sites



; Can i use switchless code in autoit script?

;... Yes

Run("setup.exe /s")

; sometimes arguments need parenthesis

Run("setup.exe " & '"/s"')

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

You might want to use RunWait though.

Share this post


Link to post
Share on other sites

Thanks a lot

Share this post


Link to post
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
Sign in to follow this  
Followers 0