Sign in to follow this  
Followers 0
Infinitex0

need some help

8 posts in this topic

#include <GUIConstants.au3>

GUICreate("",        120, 90)
GUICtrlCreateLabel("What's your name?", 1, 1)
$Name = GUICtrlCreateInput("",  2, 20)
$OK = GUICtrlCreateButton("OK", 1, 65, 60)
GUISetState(@SW_SHOW);-1,$GUI_ACCEPTFILES) 

$msg = 0
While $msg <> $GUI_EVENT_CLOSE
       $msg = GUIGetMsg()
       Select
       Case $msg = $OK
ExitLoop
EndSelect
WEnd
MsgBox (4096, "Hi", GUICtrlRead($Name))

I need This to be able to display "Hi, $Name. But It will only display $Name or Hi.


The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center]

Share this post


Link to post
Share on other sites



What is wrong with it?

It displays Hi as the title and shows what you enter into the input control as the msgbox message. Could you be a bit more clear as to what you would like to happen?

What you seem to be trying with GuiSetState, if the comment was removed will not work just for information.

Share this post


Link to post
Share on other sites

I want The "Hi," to be displayed beside the name not in the titlebar.


The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center]

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Msgbox(4096,"","Hi"&Guictrlread($name))

Edited by rambo3889

My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! you’re the best in town Fight!

Share this post


Link to post
Share on other sites

Thanks, Rambo3889 :o


The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center]

Share this post


Link to post
Share on other sites

Np im always willing to help


My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! you’re the best in town Fight!

Share this post


Link to post
Share on other sites

The $name is only the address where you can find it ...


-jaenster

Share this post


Link to post
Share on other sites

The $name is only the address where you can find it ...

I am still looking. What address.... :o

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