Page 1 of 1

ImageSearch problem with IME

Posted: 15 Aug 2018, 13:06
by anhnha
I am using ImageSearch to detect the typing mode for Hangul or English.
Please look at the image below for the problem description. Hope someone can help me out!

Image

Re: ImageSearch problem with IME

Posted: 15 Aug 2018, 23:23
by anhnha
How can I check if IME is disabled or not with autohotkey?

Re: ImageSearch problem with IME

Posted: 15 Aug 2018, 23:52
by trust_me
Could you not check the current input language ?

https://autohotkey.com/board/topic/1165 ... ntry672236

Re: ImageSearch problem with IME

Posted: 16 Aug 2018, 01:20
by anhnha
trust_me wrote:Could you not check the current input language ?

https://autohotkey.com/board/topic/1165 ... ntry672236
I think you misunderstood me a bit. In may case, the language is already in Korean Microsoft IME. However, in Korean mode, there is an ALT buttion to toggle between Korean and English. I want to know whether it is in Korean or English mode for this specific case.

Re: ImageSearch problem with IME

Posted: 16 Aug 2018, 01:43
by anhnha
I used this code and it returns a code for Korean language. However, even in Korean language mode, there is still an option to toggle between Korean and English by toggling the right ALT buttion.
Is there any way to check the status A or 가 in Korean language?

Code: Select all

F11::
  SetFormat, Integer, H
  WinGet, WinID,, A
  ThreadID:=DllCall("GetWindowThreadProcessId", "UInt", WinID, "UInt", 0)
  InputLocaleID:=DllCall("GetKeyboardLayout", "UInt", ThreadID, "UInt")
  MsgBox, %InputLocaleID%
Return