Jump to content

Simple Plan


xeo
 Share

Recommended Posts

Hey I saw This & Im really Interested going on to make advanced apps but as a start i just wanna make 3 apps.

1)An App that has two buttons: Start Stop (or a keybind like alt+ or fnumber) when i start i want the app to make the mouse click realy fast say 30ms

untill i hit stop

2)Almost the same as 1. Just want it to keep the mouse click down untill i stop it.

I Just started with this but so far i've got this:

#include <GUIConstantsEx.au3>

Opt('MustDeclareVars', 1)
Opt("GUIOnEventMode", 1)

TrayTip("Clicker F9 on f10 off, F11 quit.", 8, 16)


Opt("SendKeyDelay", 1)
#include <misc.au3>

Local $YesID, $NoID

HotKeySet("{F9}", "Click")
HotKeySet("{F10}", "Stop")
HotKeySet("{F11}", "Quit")

GUICtrlCreateButton("Click", 40, 90, 130, 20)
GUICtrlCreateButton("Stop" , 35, 40, 130, 20)
GUICtrlCreateButton("Quit" , 30, 35, 130, 20)

Func Click()
  dim $halt = False
    While 1
        MouseClick("primary", 0, 500, 9999)
    WEnd
EndFunc

Func Stop()
    $halt = True
    EndFunc

Func Quit()
    Exit
EndFunc

I Dunno Most of it.. I kinda copy pasted to practice and edited with my own

Any Advices at all? thanks alot!

Link to comment
Share on other sites

Take a look at the HotKeySet example in the helpfile. I think thats a basic construction of what you mean by "when i start i want the app to make the mouse click realy fast say 30ms, untill i hit stop"

:)

Edited by AlmarM

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...