Sign in to follow this  
Followers 0
Jussip

Simple Proplem

2 posts in this topic

#1 ·  Posted (edited)

How on the world i could get this working?

#include <GUIConstants.au3>

$form2 = guicreate("message", 170, 93, 303, 219)
$message = guictrlcreateInput("", 24, 16, 121, 21)
$send =guictrlcreateButton("send", 48, 56, 75, 25, 0)

GUISetState(@SW_SHOW)

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

        Case $Send
            msgbox(0,"You Typed" , " You Typed " & ($Message))
    EndSwitch
WEnd
Edited by Jussip

Share this post


Link to post
Share on other sites



#include <GUIConstants.au3>

$form2 = guicreate("message", 170, 93, 303, 219)
$message = guictrlcreateInput("", 24, 16, 121, 21)
$send = guictrlcreateButton("send", 48, 56, 75, 25, 0)

GUISetState(@SW_SHOW)

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

        Case $Send
            msgbox(0,"You Typed" , " You Typed " & GUICtrlRead($Message))
    EndSwitch
WEnd


Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet()

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