Hangul english toggle

I am trying to create a straightforward code to toggle between Hangul/English in Oriental Microsoft IME. Generally to toggle this I just push the best Alt essential. However, when I compose a code as below nopoint happens. Can anyone aid me out?


You watching: Hangul english toggle

*

Attachments
*
hangulenglish.PNG (56.25 KiB) Viewed 2663 times
I simply take code of essential and also sfinish it
*
P.S. First I was attempt sc138 yet it"s dont occupational and than i use vk code.You can usage this code if you need to know an additional codes of keys

Code: Select all

Menu, Tray, Icon, Shell32.dll, 45 ; клавиши дополнительной клавиатуры и Pausage, sc которых ф-ция MapVirtualKey не определяет ScVk := "45,13|11D,A3|135,6F|136,A1|137,2C|138,A5|145,90|147,24|148,26|149,21|" . "14B,25|14D,27|14F,23|150,28|151,22|152,2D|153,2E|15B,5B|15C,5C|15D,5D" ; клавиши мыши и их vk, а также Ctrl+Break и Clear KeysVK := "LButton,1|RButton,2|Ctrl+Break,3|MButton,4|XButton1,5|XButton2,6|" . "Clear,c|Change,10|Ctrl,11|Alt,12" Height := 165 ; высота клиентской области, не включая заголовки вкладок Gui, +AlwaysOnTop Gui, Color, DAD6CA Gui, Add, Tab2, vTab gTab x0 y0 w200 h185 AltSubmit hwndhTab, Tkae a code|Key from code Tab = 2 VarSetCapacity(RECT, 16) SendBlog post, TCM_GETITEMRECT := 0x130A, 1, &RECT,, ahk_id %hTab% TabH := NumGet(RECT, 12, "UInt") GuiControl, Move, Tab, % "x0 y0 w200 h" TabH + Height Gui, Add, Text, % "x8 y" TabH + 8 " w183 +" SS_GRAYFRAME := 0x8 " h" Height - 16 Gui, Font, q5 s12, Verdana Gui, Add, Text, vAction x15 yp+7 w170 Center c0033BB, Press the essential Gui, Add, Text, vKey xp yp+35 wp Center Hidden Gui, Font, q5 c333333 Gui, Add, Text, vTextVK xp+8 yp+37 Hidden, vk = Gui, Add, Text, vVK xp+35 yp w62 h23 Center Hidden Gui, Add, Text, vTextSC xp-35 yp+35 Hidden, sc = Gui, Add, Text, vSC xp+35 yp w62 h23 Center Hidden Gui, Font, s8 Gui, Add, Button, vCopyVK gCopy xp+70 yp-35 w50 h22 Hidden, Copy Gui, Add, Button, vCopySC gCopy xp yp+33 wp hp Hidden, Copy Gui, Tab, 2 Gui, Add, Text, % "x8 y" TabH + 8 " w183 +" SS_GRAYFRAME " h" Height - 16 Gui, Add, Text, x15 yp+7 w170 c0033BB , Введите код`nв шестнадцатеричном формате без префикса "0x" Gui, Font, q5 s11 Gui, Add, Text, xp yp+58, vk Gui, Add, Edit, vEditVK gGetKey xp+25 yp-2 w45 h23 Limit3 Uppersituation Center Gui, Add, Text, vKeyVK xp+45 yp+2 w105 Center Gui, Add, Text, x15 yp+43, sc Gui, Add, Edit, vEditSC gGetKey xp+25 yp-2 w45 h23 Limit3 Upperinstance Center Gui, Add, Text, vKeySC xp+45 yp+2 w105 Center Gui, Show, % "w199 h" TabH + Height - 1, codes of keys hHookKeybd := SetWindowsHookEx() OnExit, Exit OnMessage(0x6, "WM_ACTIVATE") OnMessage(0x102, "WM_CHAR") Rerevolve Tab: ; whenever before the user switches to a brand-new tab, the output variable will If (Tab = 2 && !hHookKeybd) ; be collection to the previously schosen tab number in the situation of AltSubmit. hHookKeybd := SetWindowsHookEx() Else if (Tab = 1 && hHookKeybd) DllCall("UnhookWindowsHookEx", UInt, hHookKeybd), hHookKeybd := "" Rerevolve Copy: GuiControlGet, Code,, % SubStr(A_GuiControl, -1) StringLower, GuiControl, A_GuiControl Clipboard := SubStr(GuiControl, -1) . SubStr(Code, 3) Rerotate GetKey: GuiControlGet, Code,, % A_GuiControl Code := RegExReplace(Code, "^0+") Code := "0x" . Code SetStyle, IntegerQuick, H if A_GuiControl = EditVK { if (Code > 0xA5 && Code 0x1FF) Key := "", IsKey := 1 if !IsKey Key := GetKeyNameText(Code) Key := RegExReplace(Key, "(.*)Windows", "$1Win") GuiControl,, % "Key" SubStr(A_GuiControl, -1), % Key Key := IsKey := IsCode := "" Return GuiClose: ExitApp Exit: if hHookKeybd DllCall("UnhookWindowsHookEx", Ptr, hHookKeybd) ExitApp WM_ACTIVATE(wp) worldwide if (wp & 0xFFFF = 0 && hHookKeybd) DllCall("UnhookWindowsHookEx", UInt, hHookKeybd), hHookKeybd := "" if (wp & 0xFFFF && Tab = 2 && !hHookKeybd) hHookKeybd := SetWindowsHookEx() GuiControl,, Action, % wp & 0xFFFF = 0 ? "Активируйте окно" : "Нажмите клавишу" SetWindowsHookEx() Rerevolve DllCall("SetWindowsHookEx" . (A_IsUnicode ? "W" : "A") , Int, WH_KEYBOARD_LL := 13 , Ptr, RegisterCallback("LowLevelKeyboardProc", "Fast") , Ptr, DllCall("GetModuleHandle", UInt, 0, Ptr) , UInt, 0, Ptr) LowLevelKeyboardProc(nCode, wParam, lParam) { static as soon as, WM_KEYDOWN = 0x100, WM_SYSKEYDOWN = 0x104 Critical SetFormat, IntegerFast, H vk := NumGet(lParam+0, "UInt") Extfinished := NumGet(lParam+0, 8, "UInt") & 1 sc := (Extfinished 3: предполагается hIcon. TTS_NOPREFIX := 2, TTS_ALWAYSTIP := 1, TTS_BALLOON := 0x40, TTS_CLOSE := 0x80 hWnd := DllCall("CreateWindowEx", UInt, WS_EX_TOPMOST := 8 , Str, "tooltips_class32", Str, "" , UInt, TTS_NOPREFIX|TTS_ALWAYSTIP|TTS_BALLOON|TTS_CLOSE , Int, 0, Int, 0, Int, 0, Int, 0 , UInt, 0, UInt, 0, UInt, 0, UInt, 0) NumPut(VarSetCapacity(TOOLINFO, A_PtrSize = 4 ? 48 : 72, 0), TOOLINFO, "UInt") NumPut(0x20, TOOLINFO, 4, "UInt") ; TTF_TRACK = 0x20 NumPut(&sText, TOOLINFO, A_PtrSize = 4 ? 36 : 48, "UInt") A_DHW := A_DetectHiddenWindows DetectHiddenWindows, On WinWait, ahk_id %hWnd% WM_USER := 0x400 SendPost, WM_USER + 24,, w ; TTM_SETMAXTIPWIDTH SendArticle, WM_USER + (A_IsUnicode ? 50 : 4),, &TOOLINFO ; TTM_ADDTOOL SendArticle, WM_USER + (A_IsUnicode ? 33 : 32), h_icon, &sTitle ; TTM_SETTITLEA и TTM_SETTITLEW SendPost, WM_USER + (A_IsUnicode ? 57 : 12),, &TOOLINFO ; TTM_UPDATETIPTEXTA и TTM_UPDATETIPTEXTW SendMessage, WM_USER + 18,, x|(y
Top
anhnhaPosts: 54Joined: 08 Aug 2018, 02:46

Re: Hangul/English toggle through appropriate Alt key

15 Aug 2018, 08:08


Current this code just functions if the cursor is put at a message box. Beyond a textbox IME Hangul/English is disable so it does not job-related. How to make this toggle work-related everywhere even outside of a textbox?


See more: How To Gps Drift Pokemon Go Players Say Gps Drifting Is Still A Huge Problem

Top
pro100andrik94Posts: 27Joined: 08 Aug 2018, 07:27

Re: Hangul/English toggle via ideal Alt key

15 Aug 2018, 08:15


It"s not a code trouble. This is home windows difficulty that the input approach cannot switch once textbox disabled. Code simply simulate pushing crucial.
Top
anhnhaPosts: 54Joined: 08 Aug 2018, 02:46

Re: Hangul/English toggle with best Alt key

15 Aug 2018, 08:20




See more: Enable Ipad When Disabled

Yes, I have actually an additional difficulties through unicrucial, is tbelow any means to understand its current state (E: English mode or V: Vietnamese mode)?
*
I used this software application from the page for typing Vietnamese: http://univital.vn/vietnam/