Tibbles Posted August 14, 2009 Posted August 14, 2009 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. expandcollapse popup#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
enaiman Posted August 14, 2009 Posted August 14, 2009 $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 :)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now