找回密码
 加入
搜索
查看: 1909|回复: 0

[GUI管理] GUICtrlCreateObj创建控件以后,按钮增加快捷键不生效。

[复制链接]
发表于 2011-10-28 19:12:49 | 显示全部楼层 |阅读模式
#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)注释掉以后是可以正常使用的,希望指点迷津
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-6-9 07:38 , Processed in 0.086869 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表