Download MetaTrader 5

I want to create a button To the hot key triggers

To add comments, please log in or register
Publish your article to let the traders see it in MetaTrader 5!
Kiattiphoom Pitugsmeka
20
Kiattiphoom Pitugsmeka 2014.08.12 17:54 
I want to create a button To the hot key triggers 
How to write code? 

For example, click left on A button, then show input parameter ea (F7).

Thank you. 

Rodrigo Malacarne
Moderator
9904
Rodrigo Malacarne 2014.09.06 22:50  
verovero:
I want to create a button To the hot key triggers 
How to write code? 

For example, click left on A button, then show input parameter ea (F7).

Thank you. 

Hello verovero, for custom graphical controls using MQL5 language, please take a look at this article.

Regards,
Malacarne

Alain Verleyen
Moderator
30752
Alain Verleyen 2014.09.06 23:00  
verovero:
I want to create a button To the hot key triggers 
How to write code? 

For example, click left on A button, then show input parameter ea (F7).

Thank you. 

Not possible with mql5 only, you need to use Winapi for that (show input parameters window).
Kiattiphoom Pitugsmeka
137
Kiattiphoom Pitugsmeka 2014.12.11 09:13  

Thank you sir. 

I'm finish.

This's my code.

#include <WinUser32.mqh>

if(id==CHARTEVENT_OBJECT_CLICK){ 
     if(clickedChartObject=="ObjectName") keybd_event(118,0,0,0); // F7
}
To add comments, please log in or register