Jump to content
Sign in to follow this  

Button Press

Recommended Posts

I made a GUI for my program:

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=C:\Documents and Settings\James\My Documents\Touch en Stride\Programs\GUI.kxf
$title = GUICreate("", 633, 305, 239, 292)
GUISetCursor (2)
$infogroup = GUICtrlCreateGroup("", 8, 8, 609, 97)
$stopico = GUICtrlCreateIcon("icon.ico", 0, 24, 40, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP))
GUICtrlSetTip(-1, "")
$disclaimer = GUICtrlCreateInput("", 72, 48, 529, 21, BitOR($ES_AUTOHSCROLL))
GUICtrlCreateGroup("", -99, -99, 1, 1)
$start = GUICtrlCreateButton("Start", 16, 128, 145, 41, 0)
$startinfo = GUICtrlCreateInput("", 176, 136, 401, 21)
$stop = GUICtrlCreateButton("Stop", 16, 184, 145, 41, 0)
$stopinfo = GUICtrlCreateInput("", 176, 192, 401, 21)
$hide = GUICtrlCreateButton("Hide Window", 16, 240, 145, 41, 0)
$hideinfo = GUICtrlCreateInput("To open it press CTRL+ALT+E", 176, 248, 401, 21)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE


Now I need to know how to make something happen when I press a button. Im making a desktop ball, but I need to run the ball sepratley.

Edited by Secure_ICT

Share this post

Link to post
Share on other sites

I have also made a GUI for a small game I made but I cant get the buttons to work either, and I'm not sure how to use the helpfiles code.

[center][font="Arial"]If practise makes perfect and no-ones perfect whats the point of practise?[/font]Sorry for my rude attitude when I started here.[/center]

Share this post

Link to post
Share on other sites

Oh. I thought you were gonna help me then :lmao:

But as you can't do it either then were both stuffed.

Have you looked at the Helpfile GUICTRLCreateButton() ? you might get a hint there ... ;)

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
Live for the present,
Dream of the future,
Learn from the past.

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  

  • Create New...