OMG, I could hug you. That worked! Now where do I put the WinClose("[CLASS:Notepad]", "") if they do have notepad still opened after the the 30 seconds have passed?
NotePad()
Func NotePad()
WinWaitActive ("[CLASS:Notepad]")
If WinExists("[CLASS:Notepad]") Then
;start Timer
Dim $i_TimeStamp = TimerInit()
Dim $i_TimeToCountDownFromSeconds = 30
Dim $i_OriginalSeconds = $i_TimeToCountDownFromSeconds
While WinExists("[CLASS:Notepad]")
If TimerDiff($i_TimeStamp) >= 1000 Then
ToolTip($i_TimeToCountDownFromSeconds)
$i_TimeStamp = TimerInit()
IF $i_TimeToCountDownFromSeconds = 0 Then Exitloop
$i_TimeToCountDownFromSeconds -= 1
EndIf
sleep(10)
WEnd
Msgbox(0,"Done!","Done counting down from " & $i_OriginalSeconds & ".") ;testing purposes only
;WinClose("[CLASS:Notepad]", "")
;MsgBox(0,"Error", "Time Out")
Else
MsgBox($MB_SYSTEMMODAL + $MB_ICONERROR, "Error", "Window does not exist")
EndIf
EndFunc ;==>NotePad