Key event within mq4 programs - page 3

 

Hi,

does anyone have a sollution for reading keyboard entry on an EA in strategy tester?

 

I suggest you look into AutoHotKey:  autohotkey.com

I've used it with MT4 to create shortcut keys for highly used commands, such as:

; *************************************************************
h      = create a new Horizontal line
#IfWinActive ahk_class MetaQuotes::MetaTrader::4.00
h::
   Send !i
   Sleep15
   Send l
   Sleep15
   Send h
return


; *************************************************************
shift+e      = create a new Equidistant Channel
#IfWinActive ahk_class MetaQuotes::MetaTrader::4.00
+e::
   Send !i
   Sleep15
   Send c
   Sleep15
   Send e
return

AutoHotkey
  • www.autohotkey.com
AutoHotkey provides a simple, flexible syntax allowing you to focus more on the task at hand rather than every single little technicality. It supports not only the popular imperative-procedural paradigm, but also...