coordmode が何だかわからん。関数ごとに、「coordmodeを尊重するやつ」「無視してrelative」「無視してscreen」とあるのだろうか。coordmodeに関わらず、たいていwingetpos,,,,,Aが必要なのかもしれない。まあどうでもいいけど。
↓840というのは、うちの画面のYが880までだから、だいたい下限に来たということかな。
CoordMode, Mouse, Screen
#Include %A_ScriptDir%\IME.ahk
#Persistent
SetTimer, WatchCaret, 100
return
WatchCaret:
MouseGetpos, cX, cY
WinGetPos, wX, wY, , , A
if(cY > 840)
cY -= 80
imemode := IME_GET()
if(imemode=1)
imemode := IME_GetConvMode()
if(imemode=8)
imemodestr := "英"
else if(imemode=9)
imemodestr := "あ"
else if(imemode=11)
imemodestr := "ア"
else
StringLeft, imemodestr, Clipboard, 10
ToolTip, %imemodestr%, cX - wX - 50, cY - wY + 20
return