Noobcube Posted January 14, 2008 Share Posted January 14, 2008 i have a script If TimerDiff($fifth) > 1000 * 420 Then ( The 420) $second = TimerInit() Send("w") Sleep(1100) Send("3") Sleep(1500) Send("0") ( The 0) Sleep(2800) Send("3") Sleep(1500) and a GuI script made using Koda #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form=C:\Users\TomHartO\Desktop\FD\Forms\gui1.kxf $Form1 = GUICreate("Form1", 299, 112, 214, 141) GUICtrlCreateInput("cooldown", 72, 48, 17, 21) (The 420) GUICtrlCreateInput("action bar no", 96, 48, 33, 21) (The 0) $Label1 = GUICtrlCreateLabel("Buffs!", 8, 0, 58, 28) GUICtrlSetFont(-1, 16, 400, 0, "Arial") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd i need the 420 part of the gui linking to the script 420 so when i change the 420 in the GUI it changes it in the script same with the 0 how do i go about doing it? Link to comment Share on other sites More sharing options...
Fossil Rock Posted January 14, 2008 Share Posted January 14, 2008 Your script is completely back asswards ..... Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
Noobcube Posted January 14, 2008 Author Share Posted January 14, 2008 thats not one script its 2 seperate ones Link to comment Share on other sites More sharing options...
GEOSoft Posted January 14, 2008 Share Posted January 14, 2008 thats not one script its 2 seperate onesNot sure if I have this straight or not #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form=C:\Users\TomHartO\Desktop\FD\Forms\gui1.kxf $Form1 = GUICreate("Form1", 299, 112, 214, 141) GUICtrlCreateInput("cooldown", 72, 48, 17, 21) (The 420) GUICtrlCreateInput("action bar no", 96, 48, 33, 21) (The 0) $Label1 = GUICtrlCreateLabel("Buffs!", 8, 0, 58, 28) GUICtrlSetFont(-1, 16, 400, 0, "Arial") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### #include "Script1.au3" While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd You would be better off putting the first script into a function. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
Noobcube Posted January 14, 2008 Author Share Posted January 14, 2008 (edited) ok so While $msg <> $GUI_EVENT_CLOSE $msg = GUIGetMsg() Select Case $msg = $btn exitloop EndSelect Wend will show up a typed message in a msgbox how do i change it so the typed(in input box) will change a certain part of my script? thnx Edited January 14, 2008 by Noobcube Link to comment Share on other sites More sharing options...
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