; Auto-It3 Script ; MediaShout AutoStart - starts MediaShout and fires the first cue automatically ; ; Disclaimer - This code is "Freeware" and may not be sold under any circumstances. ; There are no warranties, guarantees, support or fitness for use implied. ; The user agrees to accept all responsibility for the use of this software, and indemnify and hold harmless the developer(s) ; for any claims, loss or damage resulting from it's use. ; ; To God be the Glory! ; 4-15-08 ; R. Noar ;Startup $g_szVersion = "AutoStart Media Shout" ; Script Name Opt("WinTitleMatchMode", 1) ; Default Match Window Titles ; If WinExists($g_szVersion) Then Exit EndIf AutoitWinSetTitle($g_szVersion) ; If WinExists ("MediaShout","") Then MsgBox(0,"ERROR", "MediaShout is already running.") Exit EndIf ; Run ("C:\Program Files\MediaComplete\MediaShout 3\MediaShout 3.exe","", @SW_MAXIMIZE) ;Start MediaShout WinWaitActive ("MediaShout","",60) ; Wait for MediaShout to start Sleep (10000) ; Wait for Mediashout to initialize $Wcount = 3 For $i = $Wcount to 1 Step -1 ; If MouseGetCursor () = "15" Then $i=$Wcount ;Keep waiting if cursor is hourglass (15) If WinExists("Server Busy","") Then WinActivate ("Server Busy") Send("R") ; send retry if "Server Busy" message from MediaShout Sleep (5000) $i=$Wcount EndIf If WinExists("Creating","") Then $i=$Wcount ; Keep waiting for "creating thumbnails" to finish Sleep (1000) ; Wait one second and then try the loop again Next ; If Not WinActive("MediaShout","") Then WinActivate("MediaShout","") WinWaitActive ("MediaShout","",30) Send ("{F10}") ; Send F10 ; Fire first cue Exit ; all done