Hi all,
I would really appreciate if someone could help me with this task. I need to deactivate auto-scroll from within a script.
I know how to activate/deactivate the auto-scroll form a script.
But I'm a bit lost how to retrieve if it is presently on or of.
Thanks for any help
R
I would really appreciate if someone could help me with this task. I need to deactivate auto-scroll from within a script.
I know how to activate/deactivate the auto-scroll form a script.
Inserted Code
//+------------------------------------------------------------------+ //| autoscroll.mq4 | //| Copyright 2012, MetaQuotes Software Corp. | //| http://www.metaquotes.net | //+------------------------------------------------------------------+ #property copyright "Copyright 2012, MetaQuotes Software Corp." #property link "http://www.metaquotes.net" #import "user32.dll" int GetDlgItem(int hDlg, int nIDDlgItem); int PostMessageA(int hWnd, int Msg, int wParam, int lParam); #import #define WM_COMMAND 0x0111 #define MT_AUTO_SCROLL 33017 //+------------------------------------------------------------------+ //| script program start function | //+------------------------------------------------------------------+ int start() { //---- int Handle = WindowHandle(Symbol(), Period()); PostMessageA(Handle, WM_COMMAND, MT_AUTO_SCROLL, 0); //---- return(0); } //+------------------------------------------------------------------+
But I'm a bit lost how to retrieve if it is presently on or of.
Thanks for any help
R
Attached File(s)
autoscroll.mq4
1 KB
|
204 downloads