Forum Discussion

tyrus's avatar
tyrus
Contributor
9 years ago

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 us...
  • NisHera's avatar
    9 years ago

    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);