Jump to content

single I can read a variable (GUICtrlRead)


 Share

Recommended Posts

single I can read the $server

MsgBox (4096, "drag drop file", GUICtrlRead(""&$server&","&$user&","&$pwd&""))

it shows in the window the result of $server, I need that I show the results of all the variables ($server, $user and $pwd)

I nedd Help....

--------------------------------------------------------------------------------------------------------------

#include <GUIConstants.au3>

GUICreate("Inventory v.1.0", 230, 210, 100, 100)

GUICtrlCreateLabel("Ingrese Nombre o IP del Servidor Altiris", 15, 5, 300)

$server = GUICtrlCreateInput("", 15, 20, 200, 20)

GUICtrlCreateGroup("Credenciales", 10, 50, 210, 115)

GUICtrlCreateLabel("Dominio\Usuario", 15, 65, 200)

$user = GUICtrlCreateInput("", 15, 80, 200, 20)

GUICtrlCreateLabel("Password", 15, 110, 200)

$pwd = GUICtrlCreateInput("", 15, 125, 200, 20,$ES_PASSWORD)

; BUTTON

$btn = GuiCtrlCreateButton("OK", 20, 170, 80, 30)

GuiCtrlCreateButton("Clear", 131, 170, 80, 30)

GUISetState (@SW_SHOW)

$msg = 0

While $msg <> $GUI_EVENT_CLOSE

$msg = GUIGetMsg()

Select

Case $msg = $btn

exitloop

EndSelect

Wend

MsgBox (4096, "drag drop file", GUICtrlRead(""&$server&","&$user&","&$pwd&""))

--------------------------------------------------------------------------------------------------------------------

Link to comment
Share on other sites

Change last line to

MsgBox (0, "drag drop file", GUICtrlRead($server) & GUICtrlRead($user) & GUICtrlRead($pwd))


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

ok, I want that the information is seen of the following form in the message Box:

-------------------------

Server: explorer

User: victor

Pwd: ******

-------------------------

as I can make it....

help my please...

Line should now read

MsgBox (0, "drag drop file", " Server: " & GUICtrlRead($server) & @LF & " User: " & GUICtrlRead($user) & @LF & " Password: " & GUICtrlRead($pwd))


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

Thaks for you help...........

:">

No Probs


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

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