Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Vbscript custom message box button titles

Posted on 2010-08-31
3
Medium Priority
?
1,050 Views
Last Modified: 2012-05-10
hi all,

im wondering if i can have custom msgbox button titles?

eg.

"welcome user please press set me up to begin setup or if you are already set up please press cancel now"
[Set Me Up] [Cancel]

also how do i put "(speech marks) in text?

Thanks
0
Comment
Question by:awilderbeast
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 8

Accepted Solution

by:
Mikkk earned 2000 total points
ID: 33565502
0
 
LVL 1

Author Closing Comment

by:awilderbeast
ID: 33565537
thanks
0
 
LVL 5

Expert Comment

by:MaxSoullard
ID: 33565541
you can try this HTA code. Just add your set up script on the SetMeUp Sub
<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Set Me Up</title>
<HTA:APPLICATION 

     ID="objSysUtility" 
     APPLICATIONNAME="Set Me Up"
     SCROLL="no"
     SINGLEINSTANCE="yes"
     navigable="yes"
	 hta:application icon="netshell.dll" sysmenu="yes" minimizebutton="yes" maximizebutton="no">   

  
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	background-image: url(binary.jpg);
	background-repeat: no-repeat;
}

-->
</style>
</head>


<SCRIPT Language="VBScript">

'Resize the internet explorer window and center it in the middle of the screen
Sub Window_onLoad
	Window.ResizeTo 400, 200
    Window.moveTo (screen.width-450)/2, (screen.height-380)/2

End Sub

Sub SetMeUp
msgbox("Set Me Up button activated")
'*****************************************************************
'						SCRIPT GOES HERE
'						SCRIPT GOES HERE
'						SCRIPT GOES HERE
'						SCRIPT GOES HERE
'						SCRIPT GOES HERE
'						SCRIPT GOES HERE
'*****************************************************************

End Sub


Sub Cancel
	Window.close()
End Sub

</SCRIPT>


<body bgcolor="#D4D0C8">

<table width="374" border="0" align="left" cellpadding="0" bordercolor="#333333" class="style2" id="signature" cellspacing="0">
  <tr>
    <td width="374" colspan="3">
	<p align="center">&nbsp;</form><span class="style3">&nbsp;</span><span class="value"><span class="pBody postableBody"><br>
	<font face="Arial">&quot;welcome user please press set me up to begin setup or if 
	you are already set up please press cancel now&quot;</font></span></span></p>
	<p align="center">&nbsp;</td>
  </tr>
  <tr>
    <td width="185">
		<input id="CreateSub" type="button" value="Set Me Up" name="B2" onclick="SetMeUP" style="float: right"></td>
	    <td width="15">&nbsp;</td>
	    <td width="174">
		<input id="CreateSub" type="button" value="   Cancel   " name="B1" onclick="Cancel" style="float: left"></td>
  </tr>
  <tr>
    <td width="185">
	&nbsp;</td>
	    <td width="15">&nbsp;</td>
	    <td width="174">&nbsp;</td>
  </tr>
  <tr>
    <td width="185">
		</td>
	    <td width="15">&nbsp;</td>
	    <td width="174">
		</td>
  </tr>
  <tr>
    <td width="185">
	&nbsp;</td>
	    <td width="15">
		<p align="center">
		</td>
	    <td width="174">
		&nbsp;</td>
  </tr>
  <tr>
    <td width="185">
	&nbsp;</td>
	    <td width="15">
		&nbsp;</td>
	    <td width="174">
		&nbsp;</td>
  </tr>
  </table>
<p>
	&nbsp;</p>


</form>
<p align="center">&nbsp;</p>


</form>

</body>

</html>

Open in new window

0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we want to have a look at the directory attributes which are used by Microsoft to store the so called Security Identifiers (SID). These SIDs plays an important role in delegating and granting permissions and in authentication of trus…
This script will sweep a range of IP addresses (class c only, 255.255.255.0) and report to a log the version of office installed. What it does: 1.)      Creates log file in the directory the script is run from (if it doesn't already exist) 2.)      Sweep…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question