Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OnScreenDisplay PROGRESS MONITORING ...
#2
Code:
Copy      Help
;;Configurations:
def num_of_tests 3
def result_filepath "c:\result.txt"

;;Declarations:
ARRAY(str) pass.create(num_of_tests)
str bin
int i

for(i 0 pass.len)
,pass[i] = "Not passed"

i = 0

;;Tests:
if(1=1) pass[i] = "Passed"
bin.from(bin "Test " i+1 ": " pass[i] "[]")
i = i + 1

if(1=0) pass[i] = "Passed"
bin.from(bin "Test " i+1 ": " pass[i] "[]")
i = i + 1

if(0=0) pass[i] = "Passed"
bin.from(bin "Test " i+1 ": " pass[i] "[]")
i = i + 1

;;Result OSD:
OnScreenDisplay bin 4 0 0 0 30 255 2

;;Result file:
bin.setfile(result_filepath)

EDIT: Better code and result file added.
EDIT2: Updated again
EDIT3: Code optimized


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)