Sign in to follow this  
Followers 0
Nexx

Read an input with button.

2 posts in this topic

Hey, what's up. Please could you answer me this newbie question? How could I make this script...:

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 615, 438, 192, 126)
GUICtrlCreateInput("", 40, 24, 145, 21)
GUICtrlSetBkColor(-1, 0xFFFFFF)
$Button1 = GUICtrlCreateButton("Read", 88, 64, 97, 57)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

    EndSwitch
WEnd

...to say that when it clicks on "read" (the button), it creates a msgbox saying the text on the input?

thanks!

Share this post


Link to post
Share on other sites



- you need to assign a variable to your input (as you did with $Button

- You need to add a new case in your msg loop for $Button

- under that case you need to use GuiCtrlRead for your input

Check examples under GUICtrlRead from the help file.


SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

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