Page 1 of 1

Find a word and execute a task

Posted: Tue Oct 31, 2017 5:30 pm
by SpeculatorX
I want to make imacros WAIT if a specific text string exists on a website?

I write an example, I am trying applying something like this:

TAG POS=1 TYPE=* ATTR=* EXTRACT=HTM
SET timeout_time EVAL("'{{!EXTRACT}}'.includes('text to find')? 500 : 0")
WAIT SECONDS={{timeout_time}}

If the word/phrase exists it will wait 500 seconds, if not it will wait 0 seconds.
Please help me write this in a correct manner that imacros recognize.

Re: Find a word and execute a task

Posted: Tue Oct 31, 2017 7:53 pm
by chivracq
SpeculatorX wrote:I want to make imacros WAIT if a specific text string exists on a website?

I write an example, I am trying applying something like this:

Code: Select all
TAG POS=1 TYPE=* ATTR=* EXTRACT=HTM
SET timeout_time EVAL("'{{!EXTRACT}}'.includes('text to find')? 500 : 0")
WAIT SECONDS={{timeout_time}}


If the word/phrase exists it will wait 500 seconds, if not it will wait 0 seconds.
Please help me write this in a correct manner that imacros recognize.

No need to open Duplicates of your Threads when you want to post on the Forum, I deleted one of your Posts... :roll:
Hum..., nearly compliment though for opening your Thread in the correct Sub-Forum... :D

But hum...:
CIM...! :mrgreen: (Read my Sig...)

And your Qt has already been asked and answered several times already on the Forum, mention your FCI and try to search the Forum a bit and I'll give you the "correct" Search Keywords to use if you can't find any of the related/similar Threads..., and/or post your final working Script if you manage to get it to work or if you still get stuck... :idea: