Jump to content
Sign in to follow this  
Noobcube

script linking

Recommended Posts

Noobcube

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?

Share this post


Link to post
Share on other sites
Fossil Rock

Your script is completely back asswards .....


Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Share this post


Link to post
Share on other sites
Noobcube

thats not one script its 2 seperate ones

Share this post


Link to post
Share on other sites
GEOSoft

thats not one script its 2 seperate ones

Not 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!"

Share this post


Link to post
Share on other sites
Noobcube

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 by Noobcube

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.