Forum Discussion

tyrus's avatar
tyrus
Contributor
8 years ago
Solved

Two things at once

Hi, I have test case where I need to check for the color of a button when it is pressed.

Basically the button is white but when pressed it changes color to gold.

As the button is pressed (I will use LLPlayer.MouseDown), I also need to take a pic (using Sys.Desktop.Picture)

at the same time,  for later comparison.

 

Can this be done? Thanks in advance

  • TC can not do two things at once.........

     

    but what you are describing is not done in once

    you can write some thing like this.............

      // Simulates pressing the left mouse button
      LLPlayer.MouseDown(MK_LBUTTON, coorX, coorY, sDelay);
      // geting picture...
      Sys.Desktop.Picture...........
      // Simulates releasing the left mouse button
      LLPlayer.MouseUp(MK_LBUTTON, coorX, coorY, sDelay);

1 Reply

  • NisHera's avatar
    NisHera
    Valued Contributor

    TC can not do two things at once.........

     

    but what you are describing is not done in once

    you can write some thing like this.............

      // Simulates pressing the left mouse button
      LLPlayer.MouseDown(MK_LBUTTON, coorX, coorY, sDelay);
      // geting picture...
      Sys.Desktop.Picture...........
      // Simulates releasing the left mouse button
      LLPlayer.MouseUp(MK_LBUTTON, coorX, coorY, sDelay);