Sign in to follow this  
Followers 0
Lacas

Auto Clicker

10 posts in this topic

Hi people, one of my mate (4gotn1) made an "auto pot"

#include <GUIConstants.au3>

Global $delay, $msg, $delay_timer

GUICreate("Auto", 200, 100)

$delay = GUICtrlCreateInput("2", 50, 10, 100, 20) ; delay is in milliseconds

$button = GUICtrlCreateButton("START", 10, 50, 180, 20)

GUISetState(@SW_SHOW)

Do

$msg = GUIGetMsg()

While $msg = $button

GUISetState(@SW_HIDE)

$delay_timer = GUICtrlRead($delay)

Send("{1}")

Sleep($delay_timer*100)

WEnd

Until $msg = $GUI_EVENT_CLOSE

For some reason he couldnt add a start and pause buttom, Basicly what i looking for is it send 1 as fast as it can, he done it well, but i need to start and pause it when i want.

I will be so glad if you can help me with this lil issue

Share this post


Link to post
Share on other sites



Lookup HotKeySet in the help file. You will find an example for Pause/Unpause there.



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

I did and didnt find anything... That could help me

Share this post


Link to post
Share on other sites
  • Fire up the helpfile.
  • Press "Search"
  • Type in "HotKeySet"
First hit. Look at example.

Share this post


Link to post
Share on other sites

Posted Image

i cant find anything :whistle:

Share this post


Link to post
Share on other sites

To make it easy for you, Here is a link to the online help for HotKeySet. Scroll to the bottom of the page and look at the example.



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Haha...that's the wrong version Lacas ! Open the v3 helpfile instead :whistle:

Share this post


Link to post
Share on other sites

Haha...that's the wrong version Lacas ! Open the v3 helpfile instead :lmao:

:whistle::):)


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

Damn i knew itxD, i was looking in the old version.

EDIT:Oh yeah xD, i solved the problem, Thx people

Edited by Lacas

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

glad it works now lacas :) dunno why the dumb thing wouldn't for me, must have been making a doh! error (you know, those obvious little bastards that make you wanna pound her head in a wall :whistle:) .... see you around 0x33 :)

Edited by 4gotn1

Share this post


Link to post
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
Sign in to follow this  
Followers 0