SerLanceloth

Help with guicntrlsetdata

3 posts in this topic

#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

Share this post


Link to post
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~

 

Share this post


Link to post
Share on other sites

SirLanceLoth,

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

kylomas

1 person likes this

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

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