Sign in to follow this  
Followers 0
mike1305

unresponsive buttons?

3 posts in this topic

#1 ·  Posted (edited)

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.

Share this post


Link to post
Share on other sites



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)


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

thanks! I knew it would be simple. :whistle:


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

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  
Followers 0