home key alternative

To add comments, please log in or register
jeschris
10
jeschris  
I am looking for an alternative to the function of the home key to scroll to the first historic bar on the mt4 chart. I am on a mac and for some reason the usual FN+left does not function as a homekey in mt4. I have been looking online and going through the menu's in mt4 to no avail. The only way i can find is to use the shortcut, but that doesnt help me much as i dont have that key on my mac keyboard:( Any ideas?
Keith Watford
Moderator
20477
Keith Watford  

Do you have a numbers pad? Can you take off the Num Lock and hit 7?

Or shift 7?

jeschris
10
jeschris  
Keith Watford:

Do you have a numbers pad? Can you take off the Num Lock and hit 7?

Or shift 7?

i only have a compact keyboard, no numbers pad:( Thanks for the tip though
kypa
1079
kypa  

Assign this script to any key you want:

#include <VirtualKeys.mqh>

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

void OnStart()
  {
   keybd_event(VK_HOME,0,0,0);
   keybd_event(VK_HOME,0,0x0002,0);
  }
To add comments, please log in or register