Jump to content

Connecting Buttons


Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...