; Platform:       XP
; Author:         BAtman75
;
; Spysweeper 3.5.0
; ----------------------------------------------------------------------------
; ----------------------------------------------------------------------------
; End User Var's
; ----------------------------------------------------------------------------
$SF_1 = "setup.exe"					;		  Setup File Name
$UR_1 = "****-****-****-****-****"			;		  User Registration Code Part 1
; ----------------------------------------------------------------------------
; Prevent Dup Script From Running
; ----------------------------------------------------------------------------

$g_szVersion = "Setup - Spy Sweeper"
If WinExists($g_szVersion) Then Exit ; It's already running
AutoItWinSetTitle($g_szVersion)


; ----------------------------------------------------------------------------
; Script Defaults
; ----------------------------------------------------------------------------

Opt	("CaretCoordMode",	1)	;1=absolute, 0=relative
Opt	("ExpandEnvStrings",	0)	;0=don't expand, 1=do expand
Opt	("MouseClickDelay",	10)	;10 milliseconds
Opt	("MouseClickDownDelay",	10)	;10 milliseconds
Opt	("MouseClickDragDelay",	250)	;250 milliseconds
Opt	("MouseCoordMode",	0)	;1=absolute, 0=relative
Opt	("MustDeclareVars",	0)	;0=no, 1=require pre-declare
Opt	("PixelCoordMode",	1)	;1=absolute, 0=relative
Opt	("RunErrorsFatal",	1)	;1=fatal, 0=silent set @error
Opt	("SendAttachMode",	0)	;0=don't attach, 1=do attach
Opt	("SendCapslockMode",	1)	;1=store and restore, 0=don't
Opt	("SendKeyDelay",	5)	;5 milliseconds
Opt	("SendKeyDownDelay",	1)	;1 millisecond
Opt	("TrayIconDebug",	0)	;0=no info, 1=debug line info
Opt	("TrayIconHide",	0)	;0=show, 1=hide tray icon
Opt	("WinDetectHiddenText",	0)	;0=don't detect, 1=do detect
Opt	("WinSearchChildren",	1)	;0=no, 1=search children also
Opt	("WinTitleMatchMode",	3)	;1=start, 2=subStr, 3=exact, 4=...
Opt	("WinWaitDelay",	250)	;250 milliseconds


; ----------------------------------------------------------------------------
; Script Start
; ----------------------------------------------------------------------------

Run($SF_1)

; Welcome
WinWaitActive	( "Setup - Spy Sweeper","" )
ControlClick	( "Setup - Spy Sweeper","", "TButton1" )

; License
Sleep		( 250 )
Send		( $UR_1 )
ControlClick	( "Setup - Spy Sweeper","", "TButton3" )

;Agreement
Sleep		( 250 )
ControlClick	( "Setup - Spy Sweeper","", "TRadioButton1" )
ControlClick	( "Setup - Spy Sweeper","", "TButton3" )

; Install Type
Sleep		( 250 )
ControlClick	( "Setup - Spy Sweeper","", "TButton3" )

; Ready
Sleep		( 250 )
ControlClick	( "Setup - Spy Sweeper","", "TButton3" )

; Finished
Sleep		( 1500 )
WinWaitActive	( "Setup - Spy Sweeper","" )
Send		( "{SPACE}{ENTER}" )

Exit

;EOF