kmorgan2 / ResTool-NXT

Computer Repair and Troubleshooting utility for ResTech, a department of NIU Housing and Dining
1 stars 1 forks source link

Error-Logging breakouts #24

Closed kmorgan2 closed 9 years ago

kmorgan2 commented 9 years ago

Write breakouts for common actions (WinWait(Active) then ControlClick), just WinWait, ProcessWaitClose, etc. that append a logfile entry when they fail to complete within a gracious amount of time. They should also exit Auto mode if we are in it.

kmorgan2 commented 9 years ago

Auto Mode exit will have to be controlled in each receiving function. For conciseness, all breakout functions will return 0 for failure and 1 for success. Receiving functions should terminate themselves on unrecoverable errors. Valid syntax for that kind of termination would be

If _debugfunction(args) = 0 Then
    end(program)
    Return 0
EndIf

This will roughly quadruple the length of ResTool's script, but will guarantee that it will never be stuck in a function because of a script or program issue.

Implementing _debugwaitclick, _debugwinwait, _debugprocesswait, _debugprocesswaitclose in 0.1.141211.1

Removing old notify functions _winwaitnotify, _waitclick.

Still need to implement new functions, but will create a new issue for that.