keystroke triggers

 

Is there any way to cause a script to run when a particular function key is pressed like F9?

 thanks in advance 

 
milfordT:

Is there any way to cause a script to run when a particular function key is pressed like F9?

 thanks in advance 

Hi milfordT,

Did you meant something like hotkey ? Open MT5/MT4 > Open Navigator (Ctrl + N) > right click select "Set hotkey".

:D 

 

Hi thanks for that. 

It seems I can create CTRL- and ALT hot keys but is there a way to turn one of the function keys into a hot key?   Would like to avoid having to hold down CTRL or ALT to access script. 

 
milfordT:

Hi thanks for that. 

It seems I can create CTRL- and ALT hot keys but is there a way to turn one of the function keys into a hot key?   Would like to avoid having to hold down CTRL or ALT to access script. 

Hi milfordT,

Nope, they hardcoded reserved for MT :(

:D 

Reason: