Download MetaTrader 5
To add comments, please log in or register
Format text in the messages editor. It is convenient!
rod178
276
rod178 2014.04.15 08:34 
Is it possible to run a script from a user created button placed on a toolbar, as distinct from the screen?
qjol
3243
qjol 2014.04.15 18:59  
AFAIK WinAPI only
rod178
276
rod178 2014.04.17 10:17  
qjol:
AFAIK WinAPI only

Seems so. Too bad.

It would be useful that MT4 at least provided a few extra toolbar buttons that the user could code to run scripts . Maybe an alternative to to using Hotkeys.

Alain Verleyen
Moderator
28518
Alain Verleyen 2014.04.19 18:10  
rod178:
Is it possible to run a script from a user created button placed on a toolbar, as distinct from the screen?
Why not use the Favorites ?
qjol
3243
qjol 2014.04.19 18:48  
rod178:

Seems so. Too bad.

It would be useful that MT4 at least provided a few extra toolbar buttons that the user could code to run scripts . Maybe an alternative to to using Hotkeys.

is it so bad to use winapi ?
rod178
276
rod178 2014.04.20 05:21  
qjol:
is it so bad to use winapi ?

WinAPI is overkill and favirites too limiting

Decided to develop a pseudo toolbar in a new pane using MT4's 'now availanle OBJ_BUTTON, OnChartEvent(), CHARTEVENT_OBJECT_CLICK.

onewithzachy
2274
onewithzachy 2014.04.20 05:38  

Right click your script > set hotkey.



1221


rod178
276
rod178 2014.04.20 06:19  

already have numerous Hotkeys attached to scripts, too many actually. Prefer a GUI alternative.

The nice aspect of using the Buttons is that they provide feedback as to 'state'

SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.04.20 07:33  
Yes, you can use object and create it in subwindow. Works like a charm.
/
To add comments, please log in or register