heygfy Posted June 13, 2006 Share Posted June 13, 2006 I am looking to make a small app that on run will popup an input box asking for a set of numbers.15 minutes later I would like a second msgBox (I am guessing) to popup and display those numbers.The first part I have running:InputBox ( "Ticket NUmber", "Input your ticket number" , "", " M")sleep(900000)But I am not sure how to pull the numbers from the InputBox. Any help would be great.G Link to comment Share on other sites More sharing options...
jvanegmond Posted June 13, 2006 Share Posted June 13, 2006 (edited) The InputBox returns a String and you have to store that String in a Variable, or the String is just forgotten. Example: $Input = InputBox ( "Ticket NUmber", "Input your ticket number" , "", " M") Variable $Input now contains the return String from the InputBox. To use this do this: MsgBox(0, "Title", $Input) I hope this was clear. Good Luck! [spoiler:] $Input = InputBox ( "Ticket NUmber", "Input your ticket number" , "", " M") Sleep(10000000) MsgBox(0, "Title", $Input) Edited June 13, 2006 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
marfdaman Posted June 13, 2006 Share Posted June 13, 2006 You have to assign a variable to it, eg. $data = InputBox(blablabla), then sleep/set timer, and after a certain amount of time (15 minutes in your case) you could call a MsgBox(0, $data, $data) or something like that. Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Link to comment Share on other sites More sharing options...
heygfy Posted June 13, 2006 Author Share Posted June 13, 2006 Great thank you both. One last part...How would I make the output have more text then just the variable?I was thinking something like....MsgBox(0, "Reminder", "Here is your number" $Input) orMsgBox(0, "Reminder", "Here is your number" + $Input)but the first one crashes it and the second one only shows the text "Here is you number"Thanks again Link to comment Share on other sites More sharing options...
herewasplato Posted June 13, 2006 Share Posted June 13, 2006 (edited) MsgBox(0, "Reminder", "Here is your number " & $Input) Edited June 13, 2006 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
heygfy Posted June 13, 2006 Author Share Posted June 13, 2006 Wow, thanks all for the great and fast responses. Link to comment Share on other sites More sharing options...
herewasplato Posted June 14, 2006 Share Posted June 14, 2006 (edited) Wow, thanks all for the great and fast responses. You are welcome... I should also mention --- use & to join text (a string) and + to add numbers.$a = 1 ;number$a = "1" ;string...and I added a space after your word number - before the " Edited June 14, 2006 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now