Download MetaTrader 5
To add comments, please log in or register
Deposit to your account in any convenient way. There are 4 of them here!
rp22rp22rp22
21
rp22rp22rp22 2014.04.18 01:16 

I was reading some posts and came across this post below.

I'm a true novice when it comes to stuff like thisl

Can some tell me whether this is a script or ea?

and how do I test this to see if and how it works?

Appreciate any help

Alternative method to mimick CTRL+F5 keyboard shortcut:

#include <WinUser32.mqh>

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

#define VK_SHIFT    16  //SHIFT key
#define VK_CONTROL  17  //CTRL key
#define VK_F5       116 //F5 key
                   
int start()
{    
  keybd_event(VK_CONTROL,0,0,0);
  keybd_event(VK_F5,0,0,0);
  keybd_event(VK_F5,0,KEYEVENTF_KEYUP,0);
  keybd_event(VK_CONTROL,0,KEYEVENTF_KEYUP,0);   

}

qjol
3243
qjol 2014.04.18 01:55  
You can use this piece of code in a EA or a script but this isn't a EA or a script
/
To add comments, please log in or register