Here is one of g-labelled Button's action (This 'Testss' in 'GuiControl,, Testss,' means Edit box where "logs" are added.
Code: Select all
Reading:
{
Click, 460 55 ;Data tab
Sleep 700
Click, 161 436 ;Module status tab on list
Sleep 400
Click, 348 145 ;green load button
WinWaitActive, Communication in progress...
Sleep 100
WinWaitClose, Communication in progress...
Sleep 750
Click 1025 932
Sleep 150
Send ^a
Sleep 150
Send ^c
Sleep 150
GuiControl,, Testss, Module status has been read!
IF Clipboard NOT contains FAILED
GuiControl,, progress1, +100
Click, 150 355 ;event logs tab on left
Sleep 450
Click, 349 179 ;green load button 1st tab
WinWaitActive, Communication in progress...
Sleep 100
WinWaitClose, Communication in progress...
Sleep 750
Click, 351 237 ;2nd green load
WinWaitActive, Communication in progress...
Sleep 100
WinWaitClose, Communication in progress...
Sleep 750
Click 1025 932
Sleep 150
Send ^a
Sleep 150
Send ^c
Sleep 150
IF Clipboard NOT contains FAILED
GuiControl,, progress2, +33
Click, 556 137 ;2nd tab
Sleep 400
Click, 349 179 ;green load button 2nd tab
WinWaitActive, Communication in progress...
Sleep 100
WinWaitClose, Communication in progress...
Sleep 500
Click 1025 932
Sleep 150
Send ^a
Sleep 150
Send ^c
Sleep 150
IF Clipboard NOT contains FAILED
GuiControl,, progress2, +33
Sleep 800
Sleep 750
Click, 729 136 ;3rd tab
Sleep 300
Click, 353 182 ;green load button
WinWaitActive, Communication in progress...
Sleep 100
WinWaitClose, Communication in progress...
Sleep 750
Click, 349 234 ;2nd click green
WinWaitActive, Communication in progress...
Sleep 100
WinWaitClose, Communication in progress...
Sleep 750
Click 1025 932
Sleep 150
Send ^a
Sleep 150
Send ^c
Sleep 150
GuiControl,, Testss, All logs have been read!
IF Clipboard NOT contains FAILED
GuiControl,, progress2, +34
Sleep 800
;profiles
Click, 158 323 ;load profiles on list
Sleep 500
Click, 349 181 ;green load button
WinWaitActive, Communication in progress...
Sleep 100
WinWaitClose, Communication in progress...
Sleep 980
Click 1025 932
Sleep 150
Send ^a
Sleep 150
Send ^c
Sleep 150
IF Clipboard NOT contains FAILED
GuiControl,, progress3, +16
Sleep 600
Click, 496 136 ;profile 2
Sleep 500
Click, 351 184 ;green button
WinWaitActive, Communication in progress...
Sleep 100
WinWaitClose, Communication in progress...
Sleep 980
Click 1025 932
Sleep 150
Send ^a
Sleep 150
Send ^c
Sleep 150
IF Clipboard NOT contains FAILED
GuiControl,, progress3, +16
Sleep 600
Click, 617 138 ;profile 3
Sleep 500
Click, 354 190 ;green button
WinWaitActive, Communication in progress...
Sleep 100
WinWaitClose, Communication in progress...
Sleep 980
Click 1025 932
Sleep 150
Send ^a
Sleep 150
Send ^c
Sleep 150
IF Clipboard NOT contains FAILED
GuiControl,, progress3, +16
Sleep 600
Click, 744 139 ;profile 4
Sleep 500
Click, 351 183 ;green button
WinWaitActive, Communication in progress...
Sleep 100
WinWaitClose, Communication in progress...
Sleep 980
Click 1025 932
Sleep 150
Send ^a
Sleep 150
Send ^c
Sleep 150
IF Clipboard NOT contains FAILED
GuiControl,, progress3, +16
Sleep 600
Click, 850 138 ;profile 5
Sleep 500
Click, 351 183 ;green button
WinWaitActive, Communication in progress...
Sleep 100
WinWaitClose, Communication in progress...
Sleep 980
Click 1025 932
Sleep 150
Send ^a
Sleep 150
Send ^c
Sleep 150
IF Clipboard NOT contains FAILED
GuiControl,, progress3, +16
Sleep 600
Click, 974 132 ;profile 6
Sleep 500
Click, 350 182 ;gren button
WinWaitActive, Communication in progress...
Sleep 100
WinWaitClose, Communication in progress...
Sleep 6400
Click 1089 932
Sleep 150
Send ^a
Sleep 150
Send ^c
Sleep 300
if Clipboard NOT contains FAILED
{
GuiControl,, progress3, +20
GuiControl,, Testss, All profiles have been read! No errors were detected.
}
ELSE
GuiControl,, Testss, Something went wrong!
Click, 152 52 ;disconnect
}
return