Download MetaTrader 5
To add comments, please log in or register
Publish programs in Code Base. Improve your rating!
elanin
66
elanin 2016.01.25 13:29 

Hello, I want to get a Screen Shot that is called by EA when order is closed and make screen shot from MT4 Active workplace. Manually it is possible to make this by selecting 'File -> Save As Picture... -> Active Workplace -> OK', but is it also possible with EA?

 

Unfortunately I have only found option to make screen shot only from chart where EA is attached.

      ResetLastError();_GetLastError=0;
      if(WindowScreenShot("Dropbox\\ "+TimeToString(Lock_Open_Time,TIME_DATE)+ " Close, "+IntegerToString(Lock_Ticket_Number)+".gif",Pic_Widght,Pic_Height))
      {//1
         _GetLastError=GetLastError();
         if(_GetLastError>0)
         {//2
            Print("WindowScreenShot Error "+ErrorDescription(GetLastError()));
         }//2
         else
         {//2
            Reset_Screen_Locks++;
         }//2
      }//1
honest_knave
969
honest_knave 2016.01.25 13:32  
Use ChartScreenShot(). That lets you specify the chart ID
Zirkon
123
Zirkon 2016.01.26 17:54  
elanin:

Hello, I want to get a Screen Shot that is called by EA when order is closed and make screen shot from MT4 Active workplace. Manually it is possible to make this by selecting 'File -> Save As Picture... -> Active Workplace -> OK', but is it also possible with EA?

 

Unfortunately I have only found option to make screen shot only from chart where EA is attached.

 

I don't think it's possible with mql4.
/
To add comments, please log in or register