Step 15: Bye

Thank you for reading this instructable. Comment anything cool you come up with so we can all share our discoveries. 
<p>Take the line:<br>variable=msgbox (&quot;Message goes here&quot;,0+16,&quot;Title goes here&quot;)</p><p>For whatever message box you want the input on. You may want to change &quot;variable&quot; to something more relevant. Step 7 has more information on if-then conditionals, but the idea is, you want to make the conditional check to see if your variable is equal to a constant defined by the script host. It should be the button's text with &quot;vb&quot; in front of it, for example...</p><p>if variable = vbYes then</p><p> [your code here]</p><p>end</p><p>In that example, the code will only run if the yes button is clicked.</p>
<p>is there any way that when the you click yes on msgbox its makes a custom response, I have searched online, but it gives me error...</p>
<p>n = inputbox (&quot;Number to loop&quot;,&quot;Text2Speech&quot;,&quot;&quot;)<br><br>do While n &gt; 0<br>speech = inputbox (&quot;Text to speak&quot;,&quot;Text2Speech&quot;,&quot;&quot;)<br>Set Sapi = Wscript.CreateObject(&quot;SAPI.SpVoice&quot;)<br>Sapi.speak speech<br>n = n - 1<br>loop</p><p>or, to make someone go crazy make it loop forever</p><p>do<br>speech = inputbox (&quot;Text to speak&quot;,&quot;Text2Speech&quot;,&quot;&quot;)<br>Set Sapi = Wscript.CreateObject(&quot;SAPI.SpVoice&quot;)<br>Sapi.speak speech<br>loop</p>
Thank you for making this instructable. It has been very informative. I can't wait for you to make another one or add to this one.
very good job.<br>but I want some vb scripts about replacing words and sentences in a text,so can you provide it for me please.
I'll add that to this instructable soon.
I know you touched on this in the tutorial but can you please update (or message me) on how to make one of the text input msgboxes where it only goes away if they enter the user that it running the file's password
So you mean an inputbox that won't go away until the correct password is entered?
Check my instructable<br> <a href="http://www.instructables.com/id/How-to-make-a-Computer-Lock/" rel="nofollow">How to make a computer lock</a>
Your welcome.
A brain <br>LOL!
cool! <br>

About This Instructable


24 favorites


Bio: I find a quote from Bill Gates makes a very good description. "Be nice to nerds. Chances are you'll end up working for one."
More by Super_Nerd: Make an assistant for your computer in 5 minutes Track Computer Usage in 2.5 minutes How to be a MAD Scientist! MU-AH HA HA HA!
Add instructable to: