We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
一直停留在中,切换无反应,改成以下代码后正常,猜测是autohotkey的hwnd识别有问题? 部分代码来自
The text was updated successfully, but these errors were encountered:
No branches or pull requests
一直停留在中,切换无反应,改成以下代码后正常,猜测是autohotkey的hwnd识别有问题?
部分代码来自
isEnglishMode(WinTitle:="A"){
hwnd := WinExist(WinTitle)
if (WinActive(WinTitle)) {
ptrSize := !A_PtrSize ? 4 : A_PtrSize
cbSize := 4+4+(PtrSize6)+16 ; DWORD2+HWND*6+RECT
stGTI := Buffer(cbSize,0)
NumPut("UInt", cbSize, stGTI.Ptr,0) ; DWORD cbSize;
hwnd := DllCall("GetGUIThreadInfo", "Uint",0, "Uint",stGTI.Ptr)
? NumGet(stGTI.Ptr,8+PtrSize,"Uint") : hwnd
}
result := DllCall("SendMessage"
, "Uint", DllCall("imm32\ImmGetDefaultIMEWnd", "Uint",hwnd)
, "Uint", 0x0283 ;Message : WM_IME_CONTROL
, "Int", 0x001 ;wParam : IMC_GETCONVERSIONMODE
, "Int", 0) ;lParam : 0
return result == 0
}
The text was updated successfully, but these errors were encountered: