View Single Post
  #2 (permalink)  
Old 09-25-2009, 06:49 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

Image Recognition feature is used to automate a task based on images. , Automation Anywhere Enterprise provides you with 'If Image Recognition' command, using which you can find, if an image exists within another image either from a file or capture the rectangular area on any window. You can find this command under 'Conditions/Loops' command category.

What you can do is,

. Save three different images of red, yellow and green lights.
. Now, find the image using 'If Image Recognition' and if image is recognized then inside If-End if block you can run the required task.
. You need to insert three different 'If Image Recognition' command to compare three lights i.e red, yellow and green.

Yes, you can also chain the task multiple tasks using Run Task command.

Text format of task would appear something like this,

If Image "C:\redlight.jpg" Exists in "Application Window Title" with 100 percentage match Then

Run Task A

End If

If Image "C:\yellow.jpg" Exists in "Application Window Title" with 100 percentage match Then

Run Task B
Run Task A

End If

If Image "C:\greenlight.jpg" Exists in "Application Window Title" with 100 percentage match Then

Run Task C

End If

Hope that helps.
Reply With Quote