Sign in to follow this  
Followers 0
spiderkayak

single I can read a variable (GUICtrlRead)

6 posts in this topic

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&""))

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

Share this post


Link to post
Share on other sites



Change last line to

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



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites

Change last line to

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

Share this post


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


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites

Line should now read

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

:">

Share this post


Link to post
Share on other sites

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

:">

No Probs


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

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