Imagesearch Command Problem.

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.
Post Reply
aviheaven
Posts: 9
Joined: Fri Dec 30, 2016 7:53 pm
Contact:

Imagesearch Command Problem.

Post by aviheaven » Fri Mar 02, 2018 3:54 pm

http://www.screencast.com/t/z306X9JR

VERSION BUILD=9030808 RECORDER=FX
TAB T=1

' Use the following values for 1920x1080 resolution
' SET df1_y1 330
' SET df2_y1 360

' Use the following values for 1024x768 resolution
SET df1_y1 372
SET df2_y1 402

SET applicantsGivenName "John Doe"
SET birthPlace "United States"
SET fathersName "Dad Doe"
SET mothersName "Mom Doe"

'URL GOTO=http://indianvisa-bangladesh.nic.in/vis ... _Login.jsp

SET !ERRORIGNORE YES
SET !TIMEOUT_STEP 1

SET dynamicField1 NotFound
SET dynamicField2 NotFound

IMAGESEARCH POS=1 IMAGE=ApplicantGivenName_Label.png CONFIDENCE=95
SET dynamicField1 EVAL("if ({{!IMAGEY}} > {{df1_y1}} && {{!IMAGEY}} < {{df1_y1}} + 10) \"{{applicantsGivenName}}\";")
SET dynamicField2 EVAL("if ({{!IMAGEY}} > {{df2_y1}} && {{!IMAGEY}} < {{df2_y1}} + 10) \"{{applicantsGivenName}}\";")
IMAGESEARCH POS=1 IMAGE=Answer.png CONFIDENCE=95

IMAGESEARCH POS=1 IMAGE=BirthPlace_Label.png CONFIDENCE=95
SET dynamicField1 EVAL("if ({{!IMAGEY}} > {{df1_y1}} && {{!IMAGEY}} < {{df1_y1}} + 10) \"{{birthPlace}}\"; else \"{{dynamicField1}}\";")
SET dynamicField2 EVAL("if ({{!IMAGEY}} > {{df2_y1}} && {{!IMAGEY}} < {{df2_y1}} + 10) \"{{birthPlace}}\"; else \"{{dynamicField2}}\";;")
IMAGESEARCH POS=1 IMAGE=Answer.png CONFIDENCE=95

IMAGESEARCH POS=1 IMAGE=FatherName_Label.png CONFIDENCE=95
SET dynamicField1 EVAL("if ({{!IMAGEY}} > {{df1_y1}} && {{!IMAGEY}} < {{df1_y1}} + 10) \"{{fathersName}}\"; else \"{{dynamicField1}}\";;")
SET dynamicField2 EVAL("if ({{!IMAGEY}} > {{df2_y1}} && {{!IMAGEY}} < {{df2_y1}} + 10) \"{{fathersName}}\"; else \"{{dynamicField2}}\";;")
IMAGESEARCH POS=1 IMAGE=Answer.png CONFIDENCE=95

IMAGESEARCH POS=1 IMAGE=MotherName_Label.png CONFIDENCE=95
SET dynamicField1 EVAL("if ({{!IMAGEY}} > {{df1_y1}} && {{!IMAGEY}} < {{df1_y1}} + 10) \"{{mothersName}}\"; else \"{{dynamicField1}}\";;")
SET dynamicField2 EVAL("if ({{!IMAGEY}} > {{df2_y1}} && {{!IMAGEY}} < {{df2_y1}} + 10) \"{{mothersName}}\"; else \"{{dynamicField2}}\";;")
IMAGESEARCH POS=1 IMAGE=Answer.png CONFIDENCE=95

EVENTS TYPE=KEYPRESS SELECTOR="HTML>BODY>DIV>DIV:nth-of-type(3)>DIV>FORM>DIV:nth-of-type(5)>DIV:nth-of-type(2)>INPUT" CHARS="{{dynamicField1}}"
EVENTS TYPE=KEYPRESS SELECTOR="HTML>BODY>DIV>DIV:nth-of-type(3)>DIV>FORM>DIV:nth-of-type(6)>DIV:nth-of-type(2)>INPUT" CHARS="{{dynamicField2}}"


It's Not Working in my pc. Now I want to know that how can i calculate SET df1_y1 372 and SET df2_y1 402. Or The way that How can input value by Imagesearch Command in mozila Firefox.
Post Reply