AnsweredAssumed Answered

Confused about text() function in e2e scripting

Question asked by floobit on Mar 30, 2012
Latest reply on Mar 30, 2012 by floobit

I'm a relative beginner at e2e scripting with nimbus, and am having a hard time understanding how the waiting builtins work.  For instance, when the script runs, I would expect that text("string1") would evaluate to TRUE or FALSE based on whether it found script 1.  In the case of:

 

pause 6000 ticks until
  text("string1")
  InWindowAnyInstance("PUTTY.EXE|PuTTY|")
PauseFalse
  MsgBox("Pause at line " + #ErrorLine$ + " has failed !")
  End
EndPause

 

I am imagining this to be equivalent to (in C++): 

int i;

do {

i++;

sleep(0.01); } while (! text("string1") && i<6000 )

 

Is this a good way of thinking about this?

 

My immediate goal is to write a script that does something like:

 

if text("string1") = TRUE Then

Do some stuff

including some more nested if statements

EndIf

 

How would I do this?

Outcomes