Jump to content

Help with guicntrlsetdata


Recommended Posts

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 615, 438, 192, 124)
$Label1 = GUICtrlCreateLabel("Label1", 16, 16, 36, 17)
$Input1 = GUICtrlCreateInput("Input1", 64, 16, 121, 21)
$Edit1 = GUICtrlCreateEdit("", 16, 48, 185, 89)
GUICtrlSetData(-1, "Edit1")
$Button1 = GUICtrlCreateButton("Button1", 272, 32, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
 Case $Button1
            GUICtrlSetData($Edit1, GUICtrlRead($Input1)& @CRLF, 1)
    EndSwitch
WEnd

hello guys, i need to set a string and then the input on a single command, this is an example of what im using

GUICtrlSetData($Edit1, GUICtrlRead($Input1)& @CRLF, 1)

here i will need to add an string

GUICtrlSetData($Edit1, "text to appear in the input :" GUICtrlRead($Input1)& @CRLF, 1)

thnks for the help in advance

Link to comment
Share on other sites

String for what? I don't really get what u want because 80% of your Post is only Code that makes me confussed >.<

  • C++/AutoIt/OpenGL Easy Coder
  • I will be Kind to you and try to help you
  • till what you want isn't against the Forum
  • Rules~

 

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