Jump to content

Recommended Posts

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
Posted

#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()

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...