Jump to content
Sign in to follow this  
JavaScript_Freek

Hello "____" HELP

Recommended Posts

Alright somewhere I saw this script. Or if you can tell me the script.

Ok so you run the script a msg box appears and says..

"What is your Name?"

and below is an input box.

Then below it is a "Submit!" button

Then after that you hit Submit the box disspears and a new box (NOT MSG) appears and says whatever you put in the first box up top right.

So in the first box lets say you put "Drew" then you hit submit. Then the box would dissapear and a new box would appear saying Logged In As: Drew top right.

Share this post


Link to post
Share on other sites

Alright somewhere I saw this script. Or if you can tell me the script.

Ok so you run the script a msg box appears and says..

"What is your Name?"

and below is an input box.

Then below it is a "Submit!" button

Then after that you hit Submit the box disspears and a new box (NOT MSG) appears and says whatever you put in the first box up top right.

So in the first box lets say you put "Drew" then you hit submit. Then the box would dissapear and a new box would appear saying Logged In As: Drew top right.

That shouldn't be hard...

#Include <GuiConstants.au3>

$name = InputBox("Log In", "Whats Your Name?")
$Win = GuiCreate("Program", 600, 600, -1, -1)
GuiSetBkColor("0xCCCCCC")
$label = GuiCtrlCreateLabel("Logged in as: "&$name, 10, 10, 75, 50)
GuiSetState()

While 1
$Msg = GuiGetMsg()
If $Msg = $GUI_EVENT_CLOSE Then Exitloop

Wend
Edited by Paulie

Share this post


Link to post
Share on other sites

Could you take out the space so it's

Logged in as: USER

not

Logged in as:

USER

thanks

Done. Edited by Paulie

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  

×
×
  • Create New...