darklonerlv Posted July 1, 2010 Posted July 1, 2010 (edited) now the issue im having is the 3rd function appears to be applied rapidly 2 times, essentially its skipping 3rd gear and going to 4th i personally cant see an issue so figured id post it up expandcollapse popup#include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Nitto Delay", 195, 247, 192, 124, BitOR($WS_SYSMENU,$WS_CAPTION,$WS_POPUP,$WS_POPUPWINDOW,$WS_BORDER,$WS_CLIPSIBLINGS)) $Input0 = GUICtrlCreateInput("0.000", 96, 48, 73, 21) $Input1 = GUICtrlCreateInput("0.000", 96, 72, 73, 21) $Input2 = GUICtrlCreateInput("0.000", 96, 96, 73, 21) $Input3 = GUICtrlCreateInput("0.000", 96, 120, 73, 21) $Input4 = GUICtrlCreateInput("0.000", 96, 144, 73, 21) $Input5 = GUICtrlCreateInput("0.000", 96, 168, 73, 21) $Input6 = GUICtrlCreateInput("0.000", 96, 192, 73, 21) $Label0 = GUICtrlCreateLabel("Main Delay", 24, 48, 57, 17) $Label1 = GUICtrlCreateLabel("1st Gear", 24, 72, 48, 17) $Label2 = GUICtrlCreateLabel("2nd Gear", 24, 96, 45, 17) $Label3 = GUICtrlCreateLabel("3rd Gear", 24, 120, 45, 17) $Label4 = GUICtrlCreateLabel("4th Gear", 24, 144, 45, 17) $Label5 = GUICtrlCreateLabel("5th Gear", 24, 168, 45, 17) $Label6 = GUICtrlCreateLabel("6th Gear", 24, 192, 45, 17) $Checkbox1 = GUICtrlCreateCheckbox("DelayBox Activated", 48, 16, 113, 17) $Button1 = GUICtrlCreateButton("About", 56, 208, 75, 25, $WS_GROUP) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### hotkeyset("{F1}","start") While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Checkbox1 local $test = GUICTRLRead($Checkbox1) if $tDest = $GUI_CHECKED then hotkeyset("{F1}","start") hotkeyset("{F2}","stop") Else $Stopped = true hotkeyset("^{F1}") hotkeyset("^{F2}") endif Case $Button1 msgbox(32,"About",")") EndSwitch WEnd func start() $Stopped = false sleep(GUICTRLRead($Input0)*1000) send("{UP}") Mouseup("left") Sleep(1) Mousedown("left") sleep(1) if $Stopped = true then return(0) sleep(GUICTRLRead($Input1)*1000) send("{UP}") if $Stopped = true then return(0) sleep(GUICTRLRead($Input2)*1000) send("{UP}") if $Stopped = true then return(0) sleep(GUICTRLRead($Input3*1000)) send("{UP}") here is where im having issues the rest work great just these 2 if $Stopped = true then return(0) sleep(GUICTRLRead($Input4)*1000) send("{UP}") if $Stopped = true then return(0) sleep(GUICTRLRead($Input5)*1000) send("{UP}") if $Stopped = true then return(0) sleep(GUICTRLRead($Input6)*1000) send("{UP}") EndFunc func stop() $Stopped = true msgbox(0,"","Stopped") EndFunc Edited July 1, 2010 by darklonerlv
Realm Posted July 1, 2010 Posted July 1, 2010 sleep(GUICTRLRead($Input3*1000)) Misplaced caption sleep(GUICTRLRead($Input3)*1000) My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry.
darklonerlv Posted July 1, 2010 Author Posted July 1, 2010 sleep(GUICTRLRead($Input3*1000)) Misplaced caption sleep(GUICTRLRead($Input3)*1000) lmdao thanks was staring right at it
Realm Posted July 1, 2010 Posted July 1, 2010 My Pleasure, I had the time My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry.
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