zoom in shortcut on "=" key instead of shift+"=" (autohotkey solution)

Back to topics list To post a new topic, please log in or register
avatar
11
ifmihai 2015.04.09 14:24
 

After posting a message to service desk, asking for zoom in shortcut as in MT5 (which knows about "-" and "=" keys on first row on keyboard)

they told me I need to use Shift + "=" to zoom in.

huh? thats very intuitive, thanks but no thanks. 


I searched for a solution, and the most flexible was autohotkey software.

I cannot attach an .ahk autohotkey script file, so you need to create it yourself. Here is the code:

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

#IfWinActive ahk_class MetaQuotes::MetaTrader::4.00
+=::=
=::NumpadAdd
#IfWinActive

IfWinNotActive ahk_class MetaQuotes::MetaTrader::4.00
=::=
#IfWinNotActive

 

The script will generate "+" when you press "=" key.

Basically it reverses "+" and "=", so that if you still need to press "=", you do it with Shift+"=" 

When MT4 is not active or is closed,  everything comes back to normal.

 

The only annoyance is you need to run the script each time you run MT4 (but the script can be run automatically at startup if you want)

avatar
13012
WHRoeder 2015.04.12 14:54 #
 
mishhh: they told me I need to use Shift + "=" to zoom in.
Or just use the +/- keys on the numeric keypad.
Back to topics list  

To add comments, please log in or register