FXの森

負け続けて7年目の初心者脱出記録

【FX】MT4検証にオススメのAutoHotkey設定【ショートカットキー】

 

うまく探しきらないコマンドはスクリーンショットからの編集でbmpファイルを作ってゴリ押した。

水平線とかは一回、仮選択状態にならないから使いにくい。

改善余地はあるが・・・。

 

 

#IfWinActive ahk_class MetaQuotes::MetaTrader::4.00

;Fast Navigation check
CheckFN(){
ControlGetFocus, control
IfNotInString, control, Edit,return 0
return 1
}


;-------------------------------------------------------------------

S::
ImageSearch, FoundX, FoundY, 0,0, A_ScreenWidth, A_ScreenHeight,sikaku.bmp
if ErrorLevel = 2
MsgBox Could not conduct the search.(sikaku.bmp Not Found?)
else if ErrorLevel = 0
{
;MsgBox The BMP was found at %FoundX%x%FoundY%.
Click %FoundX%, %FoundY%
}
return
;-------------------------------------------------------------------
G::
PostMessage, 0x111,33255,0 ;上マーク
MouseClick
return
;-------------------------------------------------------------------
E::
PostMessage, 0x111,33232,0 ;エントリーぺけマーク
MouseClick
return
;-------------------------------------------------------------------
B::
PostMessage, 0x111,33254,0 ;下マーク
MouseClick
return
;-------------------------------------------------------------------
X::
PostMessage, 0x111,33251,0 ;EXIT
MouseClick
return
;-------------------------------------------------------------------
U::
PostMessage, 0x111,33231,0 ;上昇
MouseClick
return
;-------------------------------------------------------------------
D::
PostMessage, 0x111,33230,0 ;下降
MouseClick
return
;-------------------------------------------------------------------
T::PostMessage, 0x111,33257,0 ;トレンドライン
;-------------------------------------------------------------------
M::
ImageSearch, FoundX, FoundY, 0,0, A_ScreenWidth, A_ScreenHeight,max.bmp
if ErrorLevel = 2
MsgBox Could not conduct the search.(max.bmp Not Found?)
else if ErrorLevel = 0
{
;MsgBox The BMP was found at %FoundX%x%FoundY%.
Click %FoundX%, %FoundY%
}
return
;-------------------------------------------------------------------
H::
if CheckFN()==0{
PostMessage, 0x111,33244,0 ;Horizontal Line
MouseClick
}else
Send H
return
;-------------------------------------------------------------------
F::
if CheckFN()==0 ;十字線
Send ^f ; Ctrl+ F
else
Send C
return
;-------------------------------------------------------------------
N::
ImageSearch, FoundX, FoundY, 0,0, A_ScreenWidth, A_ScreenHeight,min.bmp
if ErrorLevel = 2
MsgBox Could not conduct the search.(min.bmp Not Found?)
else if ErrorLevel = 0
{
;MsgBox The BMP was found at %FoundX%x%FoundY%.
Click %FoundX%, %FoundY%
}
return

#IfWinActive

 

mはマックス

画面表示最大化

nはミニマム

画面表示最小化、元の形に戻す

sは四角

四角で囲む

 もし使いたい人は、ペイントソフトで下の画像を編集してくり抜いてファイル作ってあげてね。

 

f:id:kamogawa00:20190607215216j:plain