Jump to content
Sign in to follow this  

function help

Recommended Posts



i recently creted this thing to test out koda for gui now when i go to put in what function does wat i cant seem to find anywhere a list of functions ill show wat i mean

#include <GUIConstants.au3>

Opt("GUIOnEventMode", 1)
#Region ### START Koda GUI section ### Form=
$game = GUICreate("game", 319, 281, 275, 188)
GUISetCursor (3)
GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close")
GUISetOnEvent($GUI_EVENT_MINIMIZE, "Form1Minimize")
GUISetOnEvent($GUI_EVENT_MAXIMIZE, "Form1Maximize")
GUISetOnEvent($GUI_EVENT_RESTORE, "Form1Restore")
$ok = GUICtrlCreateButton("ok", 88, 184, 129, 49, 0)
GUICtrlSetColor(-1, 0x00FF00)
GUICtrlSetBkColor(-1, 0x00FF00)
GUICtrlSetOnEvent(-1, "Button1Click")
$Label1 = GUICtrlCreateLabel("press the button for no reason", 96, 48, 145, 17)
GUICtrlSetOnEvent(-1, "Label1Click")
#EndRegion ### END Koda GUI section ###

While 1

Func Button1Click()
beep ( 350, 1000)
MsgBox(0 ,"beeeeeeeeep", "beeeeeeeeeep")
Func Form1Close()
    msgbox(0,"exit","you clicked exit")
Func Form1Maximize()
;i want a function here to maximize on command<-----------------------------------------------
Func Form1Minimize()
;here to minimize <----------------------------------------------------------------------------------
Func Form1Restore()
;and one to restore<---------------------------------------------------------------------------------
Func Label1Click()


but i cant seem to find anywhere the list of functions that can be used

cheers C.W

C.Wnew rules:1.dont use plz in a post or title use please instead2.always use help file as it is now muchly over rated3. dont think where not watching u4.please wait 24 hours after last post ot bump XD i use to make that mistake

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.