Jump to content

Recommended Posts

Posted

heyy, ive got this program i doownloaded its called Koda Form designer, u can make forms for autoit then genrate the code but ive maade my form but cant seem to make certain buttons on the form to do things for instance The Logon button i want it to start a script that ive made that logs on..?

thx

,chriss

Posted

Hi,

this should help you:

#include <GUIConstantsEx.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 454, 193, 115)
$Button1 = GUICtrlCreateButton("Button1", 80, 144, 75, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button1
            _myfunc ()
    EndSwitch
WEnd

Func _myfunc ()
    Msgbox (0,"", "Call Myfunc")
EndFunc

;-))

Stefan

Posted

heyy, ive got this program i doownloaded its called Koda Form designer, u can make forms for autoit then genrate the code but ive maade my form but cant seem to make certain buttons on the form to do things for instance The Logon button i want it to start a script that ive made that logs on..?

thx

,chriss

Koda Form Designer. You add the code to do everything after you put the generated code into SciTE.
Posted

thx works great now i need to find out how to make it wait for the window to open then start the script the win is called Nitto Legends (Beta)..?;)

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
×
×
  • Create New...