Forum Discussion

NisHera's avatar
NisHera
Valued Contributor
9 years ago

picture captured in wrong place

 

Im using lap_top to run tests and my main screen is separate monitor.
Running from main screen was ok using Log.picture(My window,'','')
But when I get pictures while running on second screen, it gets screen shot of wrong rectangular area
no windows overlapped
Any idias?

2 Replies

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3

    Can you show us the actual Log.picture code?  I'm guessing there's an issue because the two monitors are not the same size.

    • NisHera's avatar
      NisHera
      Valued Contributor

      Below is the code I'm using

       

       for(i=0;i<100;i++){
                        Delay(2600,'Just you waite.......!');
                                   if (Aliases.MyApp.StndImportExecute.FindChild('ObjectIdentifier', 'btnExecute', 10,                                                                                                                                                          750).WndCaption=='Completed') {
                        break;
                                      }}
      if (Aliases.MyApp.ErrorDlg.WaitProperty('Exists',true,500) ) {
                   Log.Picture(Aliases.MyApp.ErrorDlg, "this is the MSG", "Extended Message Text");
                   Aliases.MyApp.ErrorDlg.OK.ClickButton();
                   Delay(500);
                   if (Sys.Process("notepad").Exists) {
                               //some more codes not relevant to this...............
                  }          }