Tuesday, 15 March 2011

javascript - Imacros Eval function Small Help Required -


Please help me with this

This is the middle snippet of the whole script (number and starring) For reference only)

  1) Downloadable fodder = C: \ MyFile \ FILE = captcha.jpg WAIT = Yes 2) Tag Position = 1 Type = IMG ATTR = ****** * 3) ***** 4) **** 5) *** 6) SET! VAR1 {{EXTRACT}} 7) Tag status = 1 type = input: text form = name: CAPTCHABOX ATTR = ID: TokenText content = {{EXTRACT}} 8 TAG POS = 1 type = button ATTR = ID: Continue   

then I want to check this element

  tag POS = 1 type = H1 = ATTR = TFT: Check   

if it exists then the next line of code (step 9, 10 etc.) Other if it does not exist or does not give any error, then it should be between 1 to 8 F I want to repeat the lines and check again, if the element is absent then repeat 1-8 and move on to step 9 further.

I think it can be used in the EVAL function Is it possible to provide the right code? I tried many times but failed.

Ps - I'm probably pipping the entire script from .vbs. If possible, please provide the code which only IIM

please answer

Thank you very much

Edit - this is mine. Vbs code is

  option blurry iim1, i, s, shell dim iret dim myname, mepath dim pause iman iamacros example set iim1 = CreateObject ("iMacros") 'i = iim1.iim Open ("-fx", incorrect) 'available IFI = iim1.iimOpen ("-fx", true))' Always open new installation status = 2 while status & lt; 5 iret = iim1.iimSet ("loopVar", Cstr (pos)) iret = iim1.iimPlay ("ecc2.iim") set shell = createobject ("wscript.shell") shell.Run "% comspec% / c: \ Users \ SDFL \ Desktop \ dc1.bat "pos = pos + 1 loop   

Please tell me how can I do this without disturbing the main loop and the bat file?

You can not do it in a pure IIM script because it does not have the capability to loop code inside the code. . You have to manage looping and verification in Javascript or the main VBS code, but not with eial inside the IIM code

No comments:

Post a Comment