找回密码
 加入
搜索
查看: 2703|回复: 6

[AU3基础] 请教快捷键的设置问题[已解决]

  [复制链接]
发表于 2010-12-9 09:24:54 | 显示全部楼层 |阅读模式
本帖最后由 yikang8888 于 2010-12-10 14:46 编辑

我是新手,请教哪位高人,下面的代码,怎样把回车设为Button1的快捷键?
感谢了
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 386, 204, 192, 114)
GUICtrlCreateInput("", 88, 56, 201, 21)
$Button1 = GUICtrlCreateButton("Button1", 88, 96, 201, 57)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit

        EndSwitch
WEnd
 楼主| 发表于 2010-12-9 09:32:31 | 显示全部楼层
已经解决,谢谢
发表于 2010-12-9 12:46:26 | 显示全部楼层
请贴出自行解决的方法,以供别人的参考
发表于 2010-12-9 12:47:43 | 显示全部楼层
如果已经解决,可否请帖出解决方法?
 楼主| 发表于 2010-12-9 14:13:25 | 显示全部楼层
很简单不好意思贴呀
Dim $Form1_AccelTable[1][2] = [["{ENTER}", $Button1]]
GUISetAccelerators($Form1_AccelTable)
发表于 2012-2-20 17:24:30 | 显示全部楼层
可不可以做两个按键一起按的?
发表于 2012-7-4 21:30:54 | 显示全部楼层
不明不白的
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-7 11:46 , Processed in 0.076418 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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