Opt("WinTitleMatchMode", 4)
Run("notepad.exe")
Sleep(500)
$hWnd = WinGetHandle("classname=Notepad")
MsgBox (0, "New Layout", _GetKeyboardLayout($hWnd))
Func _GetKeyboardLayout($hWnd)
Local $ret = DllCall("user32.dll", "long", "GetWindowThreadProcessId", "hwnd", $hWnd, "ptr", 0)
$ret = DllCall("user32.dll", "long", "GetKeyboardLayout", "long", $ret[0])
Return "0000" Hex($ret[0], 4)
EndFunc
==================================================================================
Return "0000" Hex($ret[0], 4),这里提示“表达示错误”,何解..
谢谢
[ 本帖最后由 木纳 于 2008-6-10 03:10 编辑 ] |