Jump to content

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: 3.3.0.0
 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")

GUISetState(@SW_SHOW)

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

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

Func Close()
    Exit
EndFunc


While 1
Sleep(1000)
WEnd
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...