Ok, this is what I have come up with and is close to what I want BUT WHY, WHY, WHY cant I get the mins to display properly when hours are inputted?? Eg. I input 2 hours, 5 mins, 5 secs and get in the tooltip "2 hours, 165 mins, 5 secs". And also WHY, when it countsdown the tooltip stops at 1 and not 0??
Please help.
Func Start()
ToolTip("")
Local $AllFieldEmpty = True
For $I = 0 To UBound($CoordsField) - 1
If GUICtrlRead($CoordsField[$I]) <> "" Then $AllFieldEmpty = False
Next
If $AllFieldEmpty Then
MsgBox(16, "Error", "Please enter Coordinates")
Return
EndIf
For $I = 0 To $NumTimeFields - 1
$cf = GUICtrlRead($CoordsField[$I])
$hrs = GUICtrlRead($HourFields[$I])
$mins = GUICtrlRead($MinuteFields[$I])
$secs = GUICtrlRead($SecondFields[$I])
$pausetime= ($hrs*3600)+($mins*60)+$secs
If $cf = "" Then ContinueLoop
MouseClick("right", StringLeft($cf, StringInStr($cf, ",") - 1), StringTrimLeft($cf, StringInStr($cf, ",")))
Sleep(3000)
MouseClick("left", (StringLeft($cf, StringInStr($cf, ",") - 1) + $XSpot) , (StringTrimLeft($cf, StringInStr($cf, ",")) + $YSpot))
While $pausetime > 0
$totalsecpause = INT($pausetime)
$minpause = Int($totalsecpause/60)
$hrspause= Int($totalsecpause/3600)
$secpause = $totalsecpause - ($minpause*60)
ToolTip("Now running number " & ($I + 1) & "....Waiting " & $hrspause & " hours, " & $minpause & " minutes, " & $secpause & " seconds.", 210, 3)
Sleep(1000)
$pausetime = $pausetime - 1
WEnd
$pausetime = 0
Next
MsgBox(48 + 0, "", "completed.")
EndFunc
;Paste coords
Func Paste()
Send(ClipGet())
EndFunc ;==>Paste
Func Terminate()
Exit
EndFunc ;==>Terminate