#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Include <Misc.au3>
$dll = DllOpen("user32.dll")
#Region ### START Koda GUI section ### Form=c:\documents and settings\administrator\桌面\form1.kxf
$Form1 = GUICreate("鼠标点击器", 214, 118, -1,-1)
$an1 = GUICtrlCreateCombo("", 16, 24, 57, 25, BitOR($CBS_DROPDOWNLIST,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "左键|右键", "左键")
$an2 = GUICtrlCreateCombo("", 80, 24, 47, 25, BitOR($CBS_DROPDOWNLIST,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "单击|双击", "单击")
$Group1 = GUICtrlCreateGroup("设置", 4, 0, 203, 89)
$Label1 = GUICtrlCreateLabel("秒", 190, 27, 11, 15)
$Label2 = GUICtrlCreateLabel("开始", 77, 59, 28, 17)
$Label3 = GUICtrlCreateLabel("停止", 107, 59, 28, 17)
$kai = GUICtrlCreateCombo("", 16, 56, 57, 25)
GUICtrlSetData(-1, "F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12|自定义", "F1")
$ting = GUICtrlCreateCombo("", 135, 56, 51, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12|自定义", "F2")
$shi = GUICtrlCreateCombo("", 134, 24, 51, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "0.1|0.2|0.5|0.8|1|1.5|2|2.5|3|", "0.2")
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Label4 = GUICtrlCreateLabel("设置好后请点开始按钮", 16, 96, 124, 17)
$go = GUICtrlCreateButton("开始", 144, 92, 47, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $go
GUISetState(@SW_SHOWMINIMIZED,$Form1)
$dukai = GUICtrlRead($kai,1)
$duting = GUICtrlRead($ting,1)
$kkk = HotKeySet("{$dukai}","kaishi")
$ttt = HotKeySet("{$duting}","tingzhi")
EndSwitch
WEnd
Func kaishi()
MsgBox(0,"","开始")
EndFunc
Func tingzhi()
MsgBox(0,"","停止")
DllClose($dll)
EndFunc