Hi Sir,
Below is my code:
I have created a click button for reading "No09-Temp.txt" and the tool will auto click the button every 5 mins.
About "No09-Temp .txt", it just 2 line as below:
22.4
41.9
The value would be updated every 3 mins from other tool provide.
Thank you
;MSS ;MSS ;MSS
;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp
;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp
GUICtrlCreateLabel("MSS Room Temp. / RH", 1045, 480, 170, 25)
GUICtrlSetFont(-1, 9, 1000)
GUICtrlCreateLabel("°C", 1105, 501, 170, 25)
GUICtrlSetFont(-1, 10, 1000)
GUICtrlCreateLabel("/", 1118, 510, 170, 60)
GUICtrlSetFont(-1, 22, 1000)
GUICtrlCreateLabel("%", 1167, 522, 170, 60)
GUICtrlSetFont(-1, 10, 1000)
$blackgui=False ; we'll need this flag later too
If $blackgui=True Then GUISetBkColor(0) ; alternative view
$Clientvalue=Int(Round(FileReadLine("\\10.32.15.183\SmartPowerMeter$\No09-Temp.txt",1),3))
$Clientvalue2=Int(Round(FileReadLine("\\10.32.15.183\SmartPowerMeter$\No09-Temp.txt",2),3))
GUISetState()
; this display will vanish after its counter ($value) reaches 130
; red digits with orange glow on black background
$maxdigits=3
$top=30
$left=105
$size=45
$displayID1=_DigitalDisplay_Create($Form1_1,$left,$top,$size,$maxdigits) ; calls initialisation func upon first call
;Temp.
_DigitalDisplay_AspectRatio(1.5) ; change global setting for subsequent display definitions
$maxdigits=3 ; zero-padded, because the current value has fewer digits than maxdigits
$top=495
$left=1045
$size=16
$displayID3=_DigitalDisplay_Create($Form1_1,$left,$top,$size,$maxdigits) ; calls initialisation func upon first call
;RH
_DigitalDisplay_AspectRatio(1.5) ; change global setting for subsequent display definitions
$maxdigits=3 ; zero-padded, because the current value has fewer digits than maxdigits
$top=510
$left=1130
$size=10
$displayID4=_DigitalDisplay_Create($Form1_1,$left,$top,$size,$maxdigits) ; calls initialisation func upon first call
_DigitalDisplay_AspectRatio() ; reset to 1
_DigitalDisplay_Show($displayID3,$Clientvalue,"black","")
_DigitalDisplay_Show($displayID4,$Clientvalue2,"black","")
;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp
;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp ;Temp