|
本帖最后由 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 |
|