闲着无聊想做个鼠标自动点击器,这样的功能AU3能否实现?[已解决]
本帖最后由 410521a 于 2010-7-14 19:08 编辑还有一种方法就是写入到INI配置文件` 那样的应该很容易实现``但下边这个不知道能不能实现
程序已做好地址在
http://www.autoitx.com/forum.php?mod=viewthread&tid=16913&extra=#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 想做个鼠标自动点击器,这样的功能AU3能否实现?
答案是:可以实现 回复 2# lynfr8
麻烦老师给讲解下!!谢谢` "鼠标自动点击器"要点哪里啊? 我不想浪费时间猜问题
所以请把你的问题尽量描述清楚 回复 5# lynfr8
.....不好意思`` 忘记了`` 就是热键的问题``设置热键后``让设置的热键。。。。 这个功能是AU3最常见的功能,AU3博大精深! 回复lynfr8
.....不好意思`` 忘记了`` 就是热键的问题``设置热键后``让设置的热键。。。。
410521a 发表于 2010-7-13 22:54 http://www.autoitx.com/images/common/back.gif
你那么多的...那我也只好告诉你:答案就在... 回复 8# lynfr8
{:face (280):} 回复 8# lynfr8
哦`` 明白了`` 谢谢老师`
页:
[1]