part of my script is:
------------------------------------------------------
If StringInStr(_IEBodyReadText($oIE), $Text, 2) = 0 and $a = 1 Then
_IELinkClickByText($oIE, "Accept project")
; more code here
Endif
------------------------------------------------------
What I'm doing is waiting for the page NOT to contain the text in $Text.
Then it should procede to the next line: _IELinkClickByText($oIE, "Accept project") (click the button)
However, there are occations when $Text is not present on the page, AND that button is NOT there either (ie: the page doesn't load fully, or a different page appears briefely)
In that case, I want my script to exit the IF / Endif and just procede past it and continue the code.
I want to run this in the Scite Editor for now, so I don't need any UI and such.
Here is the error I'm getting when the scenario I illustrated above occurs.
" Warning from function _IELinkClickByText "
Can I trap that error and then get out of the IF / ENDIF section gracefully somehow?
bob