nmgwddj 发表于 2011-10-28 19:12:49

GUICtrlCreateObj创建控件以后,按钮增加快捷键不生效。

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
$Form1 = GUICreate("Test", 800, 740)
$Button1 = GUICtrlCreateButton("确定(&S)", 552, 704, 75, 25)
_IEErrorHandlerRegister()
$oIE = _IECreateEmbedded()
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 792, 494)
_IENavigate($oIE, "http://www.baidu.com")
GUISetState(@SW_SHOW)

#endregion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
                Case $Button1
                        MsgBox(0, '', 111)
        EndSwitch
WEnd如上代码,在按下ALT+S后无反映。
将$GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 792, 494)注释掉以后是可以正常使用的,希望指点迷津
页: [1]
查看完整版本: GUICtrlCreateObj创建控件以后,按钮增加快捷键不生效。