Jump to content
Sign in to follow this  
Lacas

Auto Clicker

Recommended Posts

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.



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

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.



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 :lmao:

:whistle::):)


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

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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...