Jump to content
Sign in to follow this  

Basic Autocliker Help!

Recommended Posts


I've been messing with the GUI functions (and yes I just picked this up today), and I started messing around with the GUICtrlCreateInput functions...

How do I recall this information? I've tried and it just returns 7.

Any help will be appreciated. Here's my unfinished code.

#cs ----------------------------------------------------------------------------

 AutoIt Version:
 Author:         Tibbles!

 Script Function:
    A Basic auto clicker with random interval!

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here
#include <GUIConstantsEX.au3>

Opt("GUIOnEventMode", 1)
GUICreate("Tibble's Basic Autoclicker!", 400, 200)
GUICtrlCreateLabel("Between This!", 30, 130)
GUICtrlCreateLabel("And This!", 200, 130)
GUICtrlCreateLabel("MilliSeconds",100, 145)
GUICtrlCreateLabel("MilliSeconds",270, 145)
$input1 = GUICtrlCreateInput( 100, 30, 145)
$input2 = GUICtrlCreateInput( 1000, 200, 145)
$closebutton = GUICtrlCreateButton("Close Window", 150, 170)
$startbutton = GuiCtrlCreateButton("Start", 350, 140)
GUICtrlSetOnEvent($closebutton, "Close")
$start = GUICtrlSetOnEvent($startbutton, "Start")


$ran = Random( $input1, $input2, 1)

Func Start()
        $ran = Random( $input1, $input2, 1)
    $begin = TimerInit()
    $dif = TimerDiff($begin)
    MsgBox(4096, "Value",$ran)

Func Close()

While 1

Share this post

Link to post
Share on other sites

$input1 = handle for that input control

GUICtrlRead($input1) = the content of the input control

The help file is your best friend.

SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

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