MQL4: How to assign ANY KEY to function() in EA ?

 

Hi,


I would like to use INS key in my EA. After press the INS key the EA should display InputBox() dialog.

How to programm and assign the INS key on expert advisor using MQL4 syntax?


Rgds,

Puncher

 

EAs run automatically at the start of a new tick, not by a key press.

You can assign a key to a script which would either continue to run on the chart until trade finished or would communicate with the EA via Global Variables or a file.

I don't think the INS key can be used any more than the control or shift key can as they don't send a character, they modify the next character.

See also Buttons & Textfields on mt4 chart possible now - MQL4 forum



Reason: