|
发表于 2010-8-19 16:33:55
|
显示全部楼层
1.新创建的窗口/进程是不管原先的输入法状态的.
2.只能关闭自己进程的输入法状态.
举个例子:
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 615, 438, 192, 124)
$Edit1 = GUICtrlCreateEdit("", 8, 16, 601, 417)
GUICtrlSetData(-1, "Edit1")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
MsgBox(32,'禁用前','禁用输入法')
$rt=DllCall('imm32.dll','int','ImmDisableIME','DWORD',0)
If IsArray($rt) Then
$rt=$rt[0]
Else
$rt=-1
EndIf
MsgBox(32,"禁用后",$rt)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd |
评分
-
查看全部评分
|