ContributionsMost RecentMost LikesSolutionsCan we create our tests in visual studio in a console application using TestComplete libraries? Can we create our test scripts in visual studio in a console application using TestComplete libraries? SolvedRe: Desktop: How to Click on a button after finding it using image comparision Thanks Alex, But how do i calculate the coordinates using currentWindow and oSearchResult objects ? Can you help me out here. Ant the reason I'm using image recognition to click on this button is because 'Object Spy' is unable to identify this button. I don't get a red rectangle over this button( also some other buttons which are on the status bar of my desktop application). I don't want to use coordinates to click on the button, which is why I chose to do it using image recognition. Please let me know if I can go ahead with Roberts suggestion in this case. I have attached the screenshot of the status bar having the red rectangle of 'Object Spy'. Thanks in advance. Desktop: How to Click on a button after finding it using image comparision I have found whether a button exists or not using 'FindRegion'. Now how do I click this button ? Below is the VB script I have used for checking if the button exists or not; Set Button = Regions.GetPicture("output_preview") Set currentWindow = Sys.Desktop.ActiveWindow.Picture(0, 0, -1, -1) If Regions.FindRegion(Button ,currentWindow ) Is Nothing Then Log.Warning "Not found" Else Log.Warning"Found" End If Please Help.!