Skip to main content
Pathfinder Advocate | Tier 6
January 27, 2023
Solved

A11 image recognition captures different area each time?

  • January 27, 2023
  • 14 replies
  • 216 views

What to do?

it is done on internet explorer, i will migrate it to a360 and chrome later.

for now i have to fix this on internet explorer. And i.e wasnt maximized,

if i maximize, it goes back to minimize.

 

What should i do to screenshot the same place everytime?

    Best answer by Raul Jaimes

    @Semih 3318 

    Enterprise Client supports as 1366X768 minimum screen resolution. 

    https://docs.automationanywhere.com/bundle/enterprise-v11.3/page/enterprise/topics/aae-client/bot-creator/creating-an-automation-task/using-the-standard-recorder.html

    Some ideas:

    -The screenshot was taken in a different screen resolution like 1366x768 or higher with botcreator

    -Same VM for botcreator and botrunner?

    -Recapure the screen area if it is a different VM. 

    -Select the Run bot runner session on control room when you want the Control Room to use the RDP of the Bot Runner sessions and run it in its local memory. Check below reference:

    https://docs.automationanywhere.com/bundle/enterprise-v11.3/page/enterprise/topics/control-room/activity/schedule-a-bot.html

    -Verify if web browsers are using 100% zoom. ​

     

    Let us know your feedback,

     

    HTH

    Regards

     

    14 replies

    rbkadiyam
    Premier Pathfinder | Tier 7
    Premier Pathfinder | Tier 7
    January 27, 2023

    @Semih 3318  can you check scaling and screen resolution ?

    Ramesh B Kadiyam
    Pathfinder Advocate | Tier 6
    January 27, 2023

    @rbkadiyam how to check if botcreator resolution and botrunner resolution are the same? i think that might solve the issue, thanks

    Raul Jaimes
    Navigator | Tier 3
    January 27, 2023

    @Semih 3318 

    You can get the screen resolution in execution time using different ways. Some approaches:

    command dos

    wmic path Win32_videoController get CurrentVerticalResolution,CurrentHorizontalResolution /format:value

    Powershell

    (Get-WmiObject -Class Win32_VideoController).VideoModeDescription;

    Browse to 

    https://whatsmyscreensize.com/

     

    HTH

    Regards

    Pathfinder Advocate | Tier 6
    January 28, 2023

    @Raul Jaimes  thank you for the reply, ill try that.

    image recognition works on botcreator perfect, but on botrunner it tries to capture different area, it must be resolution problem i guess

    Most Valuable Pathfinder
    January 28, 2023

    Yes you are right @Semih 3318 make sure resolution is same as that of your Bot creator desktop

    Permanent suggestion : Connect with your IT and ask them to set default resolution that matches your Bot creator one 

    Chand
    Pathfinder Advocate | Tier 6
    January 28, 2023

    @Raul Jaimes when i wrote this command “wmic path Win32_videoController get CurrentVerticalResolution,CurrentHorizontalResolution /format:value” on command line, both botcreator and botrunner are 1024 and 768.

    But the bot works fine on botcreator, not on botrunner.

    Pathfinder Advocate | Tier 6
    January 28, 2023

    @ChanduMohammad on commandline, i see that botcreator and botrunner are 1024 and 768.

    i dont know what to change.

    Raul Jaimes
    Navigator | Tier 3
    January 29, 2023

    @Semih 3318 

    Enterprise Client supports as 1366X768 minimum screen resolution. 

    https://docs.automationanywhere.com/bundle/enterprise-v11.3/page/enterprise/topics/aae-client/bot-creator/creating-an-automation-task/using-the-standard-recorder.html

    Some ideas:

    -The screenshot was taken in a different screen resolution like 1366x768 or higher with botcreator

    -Same VM for botcreator and botrunner?

    -Recapure the screen area if it is a different VM. 

    -Select the Run bot runner session on control room when you want the Control Room to use the RDP of the Bot Runner sessions and run it in its local memory. Check below reference:

    https://docs.automationanywhere.com/bundle/enterprise-v11.3/page/enterprise/topics/control-room/activity/schedule-a-bot.html

    -Verify if web browsers are using 100% zoom. ​

     

    Let us know your feedback,

     

    HTH

    Regards

     

    Pathfinder Advocate | Tier 6
    January 29, 2023

    Hello @Raul Jaimes i am sorry,

    i said they both were 1024*768, i just got that info on command line without running a bot.

    Now i run the botcreator for having screenshot, it was 1920*1080

    when i run the same bot on botrunner, it was 1920*1080 too

    then what could be the issue?

    Raul Jaimes
    Navigator | Tier 3
    January 29, 2023

    Thank you for your feedback @Semih 3318 

    As my previous post:

    -Same VM for botcreator and botrunner?

    -Recapure the screen area if it is a different VM. 

    -Select the Run bot runner session on control room when you want the Control Room to use the RDP of the Bot Runner sessions and run it in its local memory. Check below reference:

    https://docs.automationanywhere.com/bundle/enterprise-v11.3/page/enterprise/topics/control-room/activity/schedule-a-bot.html

    -Verify if web browsers are using 100% zoom.

    -Try using a different Match percentage and/or Tolerance

    https://docs.automationanywhere.com/bundle/enterprise-v11.3/page/enterprise/topics/aae-client/bot-creator/commands/image-recognition-command.html

    -An additional idea is recapture area in the VM where image recognition is failing and test again in the Vm where is working fine.

    HTH

    Regards