Windowsã¡ãã»ã¼ã¸ã®IDã¨å¹è½ã調ã¹ã(2)ã
æ¨æ¥ã«å¼ãç¶ãã¦ãWindowsã¡ãã»ã¼ã¸ã®IDã®èª¿ã¹æ¹ãç´¹ä»ãã¾ãã
å³å¯ã«ã¯ãWindowsã¡ãã»ã¼ã¸ã®ä¸ã®WM_COMMAND ã¨ããã¡ãã»ã¼ã¸ã®ãã©ã¡ã¼ã¿IDã調ã¹ã¦ããã®ã§ãããæ¨æ¥ã®æ¹æ³ã§ã¯ãä¾ãã°ãææ°ã®MT4ã§ãã¬ã³ãã©ã¤ã³ãå¼ãçºã®ãã¿ã³ãæ¼ãã«ã¯ã©ããªãã©ã¡ã¼ã¿ãæå®ããã°ããã®ãï¼ã¨ãããã³ãã¤ã³ãã§èª¿ã¹ããæã«è¦å´ãã¾ããâ¦ã¨ããããå
¨ãå®ç¨çã§ã¯ããã¾ããã
å°ãã¢ããã¼ããããã¦ãMetaTraderã® UI ãæä½ããã¨ãæä½ããå
容ã«å¿ã㦠ID ãã¦ã£ã³ãã¦ã«éãã¤ããä»çµã¿ã«ãªã£ã¦ããã®ã§ããããã¡ãã»ã¼ã¸ãåãåãã¦ã£ã³ãã¦å´ãç£è¦ãã¦ããã°ãã©ã®æä½ãã©ã® ID ã«ãªã£ã¦ããã®ãåããã¯ãã§ãã
ãã®åçãå©ç¨ãã調ã¹æ¹ã以ä¸ã®ææ³ã§ãã
(ä»æ¥ã¯ãMT4 ã«ã·ã§ã¼ãã«ãããã¼ãå²å½ã¦ãã人ã«ã¯æå¹ãªè¨äºãªã®ã§èªã¿é£ã°ããªãããã«ã£ã£ï¼ï¼ï¼
åçã®è©³ç´°ã¯çç¥ãã¦ã調æ»ãã¼ã«ã®ä½¿ãæ¹ã ã説æãã¾ãã
調æ»ãã¼ã«ã®ãã¦ã³ãã¼ãã¯こちらããã
(1) 調æ»ãã¼ã«ã®ã¤ã³ã¹ãã¼ã«
ChkCtlID.dll ã experts\libraries ãã©ã«ãã«ç½®ãã¾ãã
scGetID.mq4 ã experts\scriptsãããã©ã«ãã«ç½®ãã¾ãã
(2) 使ãæ¹
ããã²ã¼ã¿ã¦ã£ã³ãã¦ãã scGetID ããã£ã¼ãã«ãããããã¾ãã
ã¡ãã¥ã¼ããã¿ã³ãæä½ããã³ã¡ã³ãããExpertã¿ãã®ãã°ãè¦ã¾ãã
ãã®ç¶æ
ã§ããã¬ã³ãã©ã¤ã³ã®ãã¿ã³ãæ¼ãã¨ã
id = 33257 ã¨åããã¾ãã
ãã® ID ãåããã°ã以ä¸ã®ãããªãã¬ã³ãã©ã¤ã³ã®ãã¿ã³ãæ¼ãã ãã® script ãä½ãã¾ãã
//scTrendLine.mq4 #import "user32.dll" // 親ã¦ã£ã³ãã¦ãåå¾ããçºã®é¢æ°ã追å int GetParent(int); #import #includevoid start() { int hwnd = GetParent(GetParent(GetParent(WindowHandle(Symbol(),Period())))); // MT4 æ¬ä½ã®ã¦ã£ã³ãã¦ã«ã³ãã³ããéã PostMessageA(hwnd, WM_COMMAND,33257,0); // 使ãããID=33257ãæå® }
ãã®ã¹ã¯ãªããã experts\scriptsããã©ã«ãã«ã³ãã¼ãã¦ãããã²ã¼ã¿ã¦ã£ã³ãã¦å
ã§ã®å³ã¯ãªãã¯ã®Set hotkeyã§ã·ã§ã¼ãã«ãã Alt + T ãå²ãå½ã¦ãã¨ã
ãããããã¿ã³ããã¦ã¹ã§æ¼ããªãã¦ãããã¼æä½ã ãã§ãã¬ã³ãã©ã¤ã³ãå¼ãã¢ã¼ãã«ç§»è¡ã§ããããã«ãªãã¾ãã
è£éãã¬ã¼ãã§ãã¬ã³ãã©ã¤ã³ãå¼ãã¾ãã人ã«ã¯ä¾¿å©ã§ã¯ãªãã§ããããâ¦ï¼
(ã¡ãªã¿ã«ãCtrl + T ã¯ãã¿ã¼ããã«ã¦ã£ã³ãã¦ã®ééãªã®ã§å²ãå½ã¦ã§ãã¾ããããã ã® T ã«å²ãå½ã¦ããå ´åã¯ãå¤é¨ã½ããã使ãã°ç°¡åã«ã§ãã¾ãã)
ãã®ããã«ã㦠ID ã®èª¿ã¹æ¹ã¨ä½¿ãæ¹ãåããã°ã
MetaTraderã®ã¡ãã¥ã¼ããã¿ã³ã®ã»ã¨ãã©ã«ã·ã§ã¼ãã«ããå²ãå½ã¦ãã§ãããã
ã¤ã³ã¸ã±ã¼ã¿ããã·ã§ã¼ãã«ããã®å®è¡ï¼ä¾ãã°ãExpertAdvisorãã¿ã³ãæ¼ãï¼ãã§ããã®ã§ãæ´»ç¨ãã¦ã¿ã¦ãã ããã
追è¨ï¼
UWSC ã«æ
£ãã¦ãã人ã¯ãå梱ã®ChkCtlIDmod.uws ã使ãã¾ãã
ãã£ã¼ããéããããMT4 ãçµäºããæä½ã§ã楽ã«åå¾ã§ãã¾ãã
ä½ãããã¡ãã¯ããã£ã¼ãã¦ã£ã³ãã¦ï¼GetParent(WindowHandle(Symbol(),Period()));ã«å¯¾ãã¦ã¯ãã®ã¾ã¾ã§ã¯åå¾ã§ããªãã®ã§ä¸é·ä¸çã§ã..ã
æ¬æ ¼çã«èª¿ã¹ããæã¯ãspy++(SPYXX.EXE)ã使ãã¾ãããããªãé¢åã§ãã