ImageSearch problem with IME

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
anhnha
Posts: 116
Joined: 08 Aug 2018, 02:46

ImageSearch problem with IME

15 Aug 2018, 13:06

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
Attachments
IME.PNG
IME.PNG (66.06 KiB) Viewed 789 times
anhnha
Posts: 116
Joined: 08 Aug 2018, 02:46

Re: ImageSearch problem with IME

15 Aug 2018, 23:23

How can I check if IME is disabled or not with autohotkey?
anhnha
Posts: 116
Joined: 08 Aug 2018, 02:46

Re: ImageSearch problem with IME

16 Aug 2018, 01:20

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.
anhnha
Posts: 116
Joined: 08 Aug 2018, 02:46

Re: ImageSearch problem with IME

16 Aug 2018, 01:43

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

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: downstairs, OrangeCat and 187 guests