Sign in to follow this  
Followers 0
DHeir

GUI design / General w/ Koda

3 posts in this topic

I used Koda, the latest version as of now, to build a GUI for my script, I'm not really sure how to make my functions tie into my script. I have a .au3 file for my GUI and .au3 for my functions. I'm trying to have my main script function start when I press the start button, stop and close the script when I press the stop button. Also I have input boxes in the GUI form, I'm not aware of anyway to update the label on those, so I'm currently trying to recreate the input box with the updated information provided by my variables.

If someone can point me into the right direction, or even help me out, please let me know. I have attached the source to this post with what I have so far. The coords are set based on my desktop resolution of 1152 * 864 and the URL that is open in Google Chrome is as follows: http://profile.myspace.com/Modules/Applications/Pages/Canvas.aspx?appId=104283

Thanks for your time and effort in advance.

Functions.au3

Gui.au3

Share this post


Link to post
Share on other sites



Also I have input boxes in the GUI form, I'm not aware of anyway to update the label on those, so I'm currently trying to recreate the input box with the updated information provided by my variables.

;~ func guiUpdate()
;~     $namei = GUICtrlCreateInput($name, 96, 16, 75, 21)
;~     $healthi = GUICtrlCreateInput($health, 96, 40, 75, 21)
;~     $staminai = GUICtrlCreateInput($stamina, 96, 64, 75, 21)
;~     $energyi = GUICtrlCreateInput($energy, 96, 88, 75, 21)
;~     $cashflowi = GUICtrlCreateInput($cashFlow, 96, 112, 75, 21)
;~     Sleep ( 2500 )
;~     Exit
;~ EndFunc
    
func guiUpdate()
    GUICtrlSetData($namei, $name)
    GUICtrlSetData($healthi, $health)
    GUICtrlSetData($staminai, $stamina)
    GUICtrlSetData($energyi, $energy)
    GUICtrlSetData($cashflowi, $cashFlow)
    Sleep ( 2500 )
    Exit
EndFunc

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  
Followers 0