I've found fine your script so I make little script with your script for have cash cost in real time an exemple here :
#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>
Opt('TrayOnEventMode', 1)
Opt('TrayMenuMode', 1)
Opt('GuiOnEventMode', 1)
TrayCreateItem("Quit")
TrayItemSetOnEvent(-1,"_Exit")
$TIMER = TimerInit()
$SEC=('0.043859649122807017543859649122807'/3600)
$win=GUICreate("Ca$h Timer <d3montools>",260,80,-1,-1,$WS_CAPTION,BitOr($WS_EX_APPWINDOW,$WS_EX_TOOLWINDOW))
$TIME=GUICtrlCreateLabel("TIMER : STARTING...",5,5,250,30)
GUICtrlSetFont(-1,20)
$CASH=GUICtrlCreateLabel("CASH : STARTING...",12,45,250,30)
GUICtrlSetFont(-1,20)
GUISetState()
While 1
sleep(250)
GUICtrlSetData($TIME,"TIMER : "&Round((TimerDiff($timer)/1000)))
If Round((TimerDiff($timer)/1000))<10 Then
GUICtrlSetData($CASH,"CASH : < 0.00012 ")
Else
$CASHSL=StringLeft(Round((TimerDiff($timer)/1000))*$SEC,7)
GUICtrlSetData($CASH,"CASH : "&$CASHSL&" ")
EndIf
WEnd
Func _Exit()
Exit
EndFunc
#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>
Opt('TrayOnEventMode', 1)
Opt('TrayMenuMode', 1)
Opt('GuiOnEventMode', 1)
TrayCreateItem("Ca$h")
TrayItemSetOnEvent(-1, "_SHOW")
TrayCreateItem("")
TrayCreateItem("Quit")
TrayItemSetOnEvent(-1, "_Exit")
TraySetToolTip("Ca$h...")
$TIMER = TimerInit()
$SEC = ('0.043859649122807017543859649122807' / 3600)
$win = GUICreate("Ca$h Timer <d3montools>", 260, 80, -1, -1, -1, BitOR($WS_EX_APPWINDOW, $WS_EX_TOOLWINDOW))
GUISetOnEvent($GUI_EVENT_CLOSE, "_HIDE")
$TIME = GUICtrlCreateLabel("TIMER : STARTING...", 5, 5, 250, 30)
GUICtrlSetFont(-1, 20)
$CASH = GUICtrlCreateLabel("CASH : STARTING...", 12, 45, 250, 30)
GUICtrlSetFont(-1, 20)
GUISetState()
While 1
Sleep(250)
If Round((TimerDiff($TIMER) / 1000)) < 60 Then
GUICtrlSetData($TIME, "TIMER : " & Round((TimerDiff($TIMER) / 1000)) & " SEC")
ElseIf Round((TimerDiff($TIMER) / 1000)) > 60 _
And Round((TimerDiff($TIMER) / 1000)) < 3600 Then
$MIN = Round((TimerDiff($TIMER) / 1000)) / 60
$MINT = StringLeft($MIN, 5)
GUICtrlSetData($TIME, "TIMER : " & $MINT & " MIN")
ElseIf Round((TimerDiff($TIMER) / 1000)) > 3600 Then
$HOUR = Round((TimerDiff($TIMER) / 1000)) / 3600
$HOURT = StringLeft($HOUR, 5)
GUICtrlSetData($TIME, "TIMER : " & $HOURT & " HOUR")
EndIf
$PC = ProcessList()
$CASHT = StringLeft(Round((TimerDiff($TIMER) / 1000)) * $PC[0][0] * $SEC, 7)
GUICtrlSetData($CASH, "CASH : " & $CASHT & " ")
TraySetToolTip(GUICtrlRead($TIME) & @CRLF & GUICtrlRead($CASH))
WEnd
Func _Exit()
Exit
EndFunc ;==>_Exit
Func _HIDE()
GUISetState(@SW_HIDE, $win)
EndFunc ;==>_HIDE
Func _SHOW()
GUISetState(@SW_SHOW, $win)
EndFunc ;==>_SHOW