[Asm] 纯文本查看 复制代码
#region ;**** 参数创建于 ACNWrapper_GUI ****
#PRE_Icon=favicon.ico
#PRE_Outfile=鼠标连点器3.0.exe
#PRE_UseX64=n
#PRE_Res_requestedExecutionLevel=None
#PRE_Add_Constants=y
#PRE_Run_Tidy=y
#endregion ;**** 参数创建于 ACNWrapper_GUI ****
$g_szVersion = "鼠标连点器3.0-ZPSoft-52pojie.cn"
If WinExists($g_szVersion) Then Exit ; 此脚本已经运行了
AutoItWinSetTitle($g_szVersion)
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
Opt("GUIOnEventMode", 1)
#region ### START Koda GUI section ### Form=D:\autoit3\au3\form1鼠标连点器3.0.kxf
$Form1 = GUICreate("鼠标连点器3.0-ZPSoft-52pojie.cn", 305, 122, 192, 124)
GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close")
$Group1 = GUICtrlCreateGroup("频率", 20, 8, 120, 50)
$Input1 = GUICtrlCreateInput("10", 28, 28, 48, 21)
GUICtrlSetOnEvent(-1, "Input1Change")
$Label1 = GUICtrlCreateLabel("次/10秒", 80, 32, 48, 18)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group2 = GUICtrlCreateGroup("热键", 160, 8, 120, 100)
$Label2 = GUICtrlCreateLabel("左键", 169, 32, 24, 18)
$Label3 = GUICtrlCreateLabel("右键", 169, 56, 24, 18)
$Label4 = GUICtrlCreateLabel("停止", 169, 80, 26, 18)
$Combo1 = GUICtrlCreateCombo("F1", 208, 28, 57, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|Esc", "F9")
GUICtrlSetOnEvent(-1, "Combo1Change")
$Combo2 = GUICtrlCreateCombo("F1", 208, 52, 57, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|Esc", "F10")
GUICtrlSetOnEvent(-1, "Combo2Change")
$Combo3 = GUICtrlCreateCombo("F1", 208, 76, 57, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|Esc", "F11")
GUICtrlSetOnEvent(-1, "Combo3Change")
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Pic1 = GUICtrlCreatePic("D:\autoit3\au3\logo.jpg", 20, 64, 120, 40)
GUISetState(@SW_SHOW)
WinSetOnTop("鼠标连点器3.0-ZPSoft-52pojie.cn", "", 1)
#endregion ### END Koda GUI section ###
Dim $i, $LorR
Dim $list[12] = ["F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "Esc"]
Dim $rate = 10
Dim $hotleft = "F9"
Dim $hotright = "F10"
Dim $hotstop = "F11"
freshcombolist()
HotKeySet("{" & $hotleft & "}", "leftstart")
HotKeySet("{" & $hotright & "}", "rightstart")
HotKeySet("{" & $hotstop & "}", "clickstop")
While 1
If $i = 1 Then
MouseClick($LorR)
Sleep(10000 / $rate)
EndIf
WEnd
Func leftstart()
$LorR = "left"
GUICtrlSetBkColor($Label2, 0xFF0000)
GUICtrlSetBkColor($Label3, $GUI_BKCOLOR_TRANSPARENT)
GUICtrlSetBkColor($Label4, $GUI_BKCOLOR_TRANSPARENT)
$i = 1
EndFunc ;==>leftstart
Func rightstart()
$LorR = "right"
$i = 1
GUICtrlSetBkColor($Label2, $GUI_BKCOLOR_TRANSPARENT)
GUICtrlSetBkColor($Label3, 0xFF0000)
GUICtrlSetBkColor($Label4, $GUI_BKCOLOR_TRANSPARENT)
EndFunc ;==>rightstart
Func clickstop()
$i = 0
GUICtrlSetBkColor($Label2, $GUI_BKCOLOR_TRANSPARENT)
GUICtrlSetBkColor($Label3, $GUI_BKCOLOR_TRANSPARENT)
GUICtrlSetBkColor($Label4, 0xFF0000)
EndFunc ;==>clickstop
Func Form1Close()
Exit
EndFunc ;==>Form1Close
Func Input1Change()
$rate = GUICtrlRead($Input1)
EndFunc ;==>Input1Change
Func Combo1Change()
HotKeySet("{" & $hotleft & "}")
$hotleft = GUICtrlRead($Combo1)
HotKeySet("{" & $hotleft & "}", "leftstart")
freshcombolist()
EndFunc ;==>Combo1Change
Func Combo2Change()
HotKeySet("{" & $hotright & "}")
$hotright = GUICtrlRead($Combo2)
HotKeySet("{" & $hotright & "}", "rightstart")
freshcombolist()
EndFunc ;==>Combo2Change
Func Combo3Change()
HotKeySet("{" & $hotstop & "}")
$hotstop = GUICtrlRead($Combo3)
HotKeySet("{" & $hotstop & "}", "clickstop")
freshcombolist()
EndFunc ;==>Combo3Change
Func freshcombolist()
Dim $n, $combolist = "|"
For $n In $list
If $n <> $hotright And $n <> $hotstop Then
$combolist = $combolist & $n & "|"
EndIf
Next
GUICtrlSetData($Combo1, $combolist, $hotleft)
Dim $n, $combolist = "|"
For $n In $list
If $n <> $hotleft And $n <> $hotstop Then
$combolist = $combolist & $n & "|"
EndIf
Next
GUICtrlSetData($Combo2, $combolist, $hotright)
Dim $n, $combolist = "|"
For $n In $list
If $n <> $hotleft And $n <> $hotright Then
$combolist = $combolist & $n & "|"
EndIf
Next
GUICtrlSetData($Combo3, $combolist, $hotstop)
EndFunc ;==>freshcombolist