Jump to content
Sign in to follow this  
MaviATES

Help me (About switchless command)

Recommended Posts

MaviATES

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
Valuater

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

You might want to use RunWait though.

Share this post


Link to post
Share on other sites
MaviATES

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  

×