MouseFocuseNext in RoutineBot

In version 3.8 of RoutineBot you will find some new functions that allow to process the case when you have the same images on the screen:
  • MouseFocuseNext
  • PicturesCount

Example:

program test;
function PicturesCount(PictureName : String): integer;
begin
  result := 0;
  if MouseFocuse(PictureName) = 1 then
  begin
    result := result + 1;
    while MouseFocuseNext(PictureName) = 1 do
    begin
      result := result + 1;
    end;
  end;
end;
begin
  picture := ‘Sample.bmp’;
  s := picture + ‘ : ‘ + PicturesCount(picture);
  showMessage(s);
  picture := ‘Sample 2.bmp’;
  s := picture + ‘ : ‘ + PicturesCount(picture);
  showMessage(s);
end.

 

Posted in Official

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Example: GUI test with RoutineBot

RoutineBot is testing GUI, trying to enter various values into the text fields and processing warning messages that tested program shows.

Gui Test Automation

GUI Testing TipsCheck out our GUI Test Automation tips.
Test Automation Step-by-Step
Learn more than 99% users know about test automation! Subscribe to maillist now! Learn how to create scripts that will do routine job for you.

Email: