Download MetaTrader 5

How To open the expert properties?

To add comments, please log in or register
Dan
58
Dan  

Hey everyone,

maybe simple question for you. I have a message box in an EA and in case by clicking the OK button I want to open the expert propierties. I still know how to code the message box, but I don't know what to call after the click?

Example: if(mycheckbox==IDOK) doing what??

Thanks a lot guys!

whroeder1
18180
whroeder1  
Dan: I want to open the expert propierties.

No such function exists. You'll have to send the F7 key to the terminal (kbd_event.)

#import "user32.dll"
   void     keybd_event(int bVk,int bScan,int dwFlags,int dwExtraInfo);
#import

#define KEYEVENTF_KEYUP    0x0002
#define VK_F7              118   //F7 key
keybd_event (key, 0, 0, 0);
keybd_event (key, 0, KEYEVENTF_KEYUP, 0);
Dan
58
Dan  
whroeder1:

No such function exists. You'll have to send the F7 key to the terminal (kbd_event.)

Thanks whroeder1 for this!
To add comments, please log in or register