Jump to content

unresponsive buttons?


Recommended Posts

when the script hits this section the two buttons will not be clicked, but can be selected using the arrows and activated using enter/space. It was working before I made the simple change of adding a "back" button and giving it a use. All help is appriciated.

#include <IE.au3>
#include <process.au3>
#include <GUIConstants.au3>
#include <WinAnimate.au3>

    GUICreate("INSTRUCTIONS", 300, 300)
    GUICtrlCreateLabel("This feature is for advanced users only.", 25, 25, 250, 25)
    GUICtrlCreateLabel("It allows you to change the program's script to suit the latest program updates, and add new programs as they arise.  Here are some notes to make sure that this works properly:  When entering new version numbers, always use the format X.X.X.X because that is the syntax the program understands, IE: 9.15.22.444 or 0.1.1.6 .", 25, 50, 250, 225)
    $OK=GUICtrlCreateButton("Continue", 25, 250, 100, 25)
    $back=GUICtrlCreateButton("Back", 150, 250, 100, 25)
    GUISetState()
    While 1
        $msg = GUIGetMsg()
        If $msg = $OK Then
            MsgBox(0, "ok", "continue was pressed")
        ElseIf $msg = $back Then
            MsgBox(0, "back", "back was pressed.")
        ElseIf $msg = $GUI_EVENT_CLOSE Then
            exit
        EndIf
    WEnd
Edited by mike1305

Amp Energy Drink: the official sponsor of me scripting at 2AM.

Link to comment
Share on other sites

  • Developers

The second label overlaps the 2 buttons try:

GUICtrlCreateLabel("It allows you to change the program's script to suit the latest program updates, and add new programs as they arise. Here are some notes to make sure that this works properly: When entering new version numbers, always use the format X.X.X.X because that is the syntax the program understands, IE: 9.15.22.444 or 0.1.1.6 .", 25, 50, 250, 200)

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

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...