Image Validation only on a specific part of the screen

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.

Moderators: Community Moderators, iMacros Moderators

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.

Image Validation only on a specific part of the screen

by Aditya93 on Wed Dec 06, 2017 9:16 pm

Hi

wanted to know if there is a way to check only a specific part of the screen for the image to be found as there are more then one similar type of image present on the screen in imacro Browser

Thanks


Details
VERSION BUILD=10022823
Windows 7 x64 (English)
Imacro Browser V10.0.2.2823
Included Demo macro works
URL - https://empire.goodgamestudios.com/
Aditya93
 
Posts: 14
Joined: Fri Nov 24, 2017 10:34 pm

Re: Image Validation only on a specific part of the screen

by chivracq on Thu Dec 07, 2017 9:54 am

Aditya93 wrote:Hi

wanted to know if there is a way to check only a specific part of the screen for the image to be found as there are more then one similar type of image present on the screen in imacro Browser

Thanks

Details
Code: Select all
VERSION BUILD=10022823
Windows 7 x64 (English)
Imacro Browser V10.0.2.2823

Included Demo macro works
URL - https://empire.goodgamestudios.com/

Well..., yep..., I would think you can use a Combination of the 'POS' Parameter supported by 'IMAGESEARCH' together with the 'SIZE' Command...
And maybe even simpler, use any of the 4 '!REGION_XXX' Commands...

Or using 'IMAGESEARCH' again on some other Image Element(s) on your (Flash) Site, you could build your own "Relative Positioning" by comparing their respective Coordinates to determine which 'POS=n' has the Image you are looking for...
And/or, using this Method, you could even dynamically set the Value(s) for the '!REGION_XXX' Commands if needed...
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
chivracq
 
Posts: 6477
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)

Re: Image Validation only on a specific part of the screen

by Aditya93 on Wed Dec 13, 2017 9:01 pm

chivracq wrote:
Aditya93 wrote:Hi

wanted to know if there is a way to check only a specific part of the screen for the image to be found as there are more then one similar type of image present on the screen in imacro Browser

Thanks

Details
Code: Select all
VERSION BUILD=10022823
Windows 7 x64 (English)
Imacro Browser V10.0.2.2823

Included Demo macro works
URL - https://empire.goodgamestudios.com/

Well..., yep..., I would think you can use a Combination of the 'POS' Parameter supported by 'IMAGESEARCH' together with the 'SIZE' Command...
And maybe even simpler, use any of the 4 '!REGION_XXX' Commands...

Or using 'IMAGESEARCH' again on some other Image Element(s) on your (Flash) Site, you could build your own "Relative Positioning" by comparing their respective Coordinates to determine which 'POS=n' has the Image you are looking for...
And/or, using this Method, you could even dynamically set the Value(s) for the '!REGION_XXX' Commands if needed...


Hi,

the !REGION_XXX is the command i was looking for, but am unable to make a surrounding where i need it to detect on the screen, when i am using the coordinates which i get from DS command, it is not working

Any suggestions
Aditya93
 
Posts: 14
Joined: Fri Nov 24, 2017 10:34 pm

Re: Image Validation only on a specific part of the screen

by chivracq on Wed Dec 13, 2017 9:13 pm

Aditya93 wrote:Hi,

the !REGION_XXX is the command i was looking for, but am unable to make a surrounding where i need it to detect on the screen, when i am using the coordinates which i get from DS command, it is not working

Any suggestions

Tja...!, I don't now, I've never used this Software, ah-ah...! How come I'm the one finding your Solutions...!? :shock:

Do a little bit of "Experimenting" to find out how those Commands work, they use 'X'/'Y' Coordinates according to the Wiki, you can hard-code them with some approx Values or like I already mentioned, you can compute them based on some 'IMAGESEARCH' you fire before to get an Idea about which Value(s) to use.... Be a little bit "Creative", you are the one playing that Game, you need to be a little bit (more) "motivated" if you want to find a "winning Strategy", ah-ah...! :twisted:
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
chivracq
 
Posts: 6477
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)


Return to General Support & Discussions

Who is online

Users browsing this forum: Bing [Bot] and 6 guests

-->