... solve the “ & _
“equation?”, 36, cTitlebarMsg)
If ProveIt = 6 Then ‘Player wants to see the solution
97
Chapter 3 • VBScript Basics
90
Microsoft WSH and VBScript Programming for the Absolute Beginner, ... application to solve the equation
WScript.Sleep 2000
WshShl.SendKeys 5 & “{*}”
WScript.Sleep 2000
WshShl.SendKeys 9
Microsoft WSH and VBScript Prog...
... VBScript Programming for the Absolute Beginner, Second Edition
Figure 2.1
The script begins
by displaying the
rules of the game.
Figure 2.2
The player then
types in a
selection.
Figure 2.3
The script
randomly ... dis-
playing the message “Knock Knock,” it displays the message “Panther” and then waits for
the player to type in a response (that is, “Panther who?”)...
... for the Absolute Beginner, Second Edition
54
Microsoft WSH and VBScript Programming for the Absolute Beginner, Second Edition
The steps involved in configuring the WScript execution host from the ... find
the message added by the script. Double-click it; you should see the Event Properties dialog
for the event, as shown in Figure 2.11.
HINT
TRAP
Micros...
... 86
Microsoft WSH and VBScript Programming for the Absolute Beginner, Second Edition
For example, to display a pop-up dialog that displays the OK button without any icon, ... result, as shown in Figure 3.8.
Microsoft WSH and VBScript Programming for the Absolute Beginner, Second Edition
84
In addition to these two WSH options, VBScript gives you two fu...
... variable.
Microsoft WSH and VBScript Programming for the Absolute Beginner, Second Edition
134
Microsoft WSH and VBScript Programming for the Absolute Beginner, Second Edition
Now, let’s look at one ... &_
The second argument is “ & strSecondArg & vbCrLf & _
The third argument is “ & strThirdArg & vbCrLf
Microsoft WSH and VB...
... number of built-in VBScript functions.
Microsoft WSH and VBScript Programming for the Absolute Beginner, Second Edition
Figure 5.1
The game’s splash
screen invites
the user to take
the quiz.
Figure ... arrays for more
efficient storage and processing, and to develop scripts that can process input passed to
them at execution time.
Microsoft WSH and VBScrip...
... ,cGreetingMsg
strOkToEnd = “yes”
End If
Microsoft WSH and VBScript Programming for the Absolute Beginner, Second Edition
186
These steps are
1. Add the standard documentation template and define any variables, ... something
goes wrong. Of course, there is no substitute for good program design and careful testing.
Microsoft WSH and VBScript Programming for...
... at the beginning of the script and the other within a function:
Option Explicit
Dim intFirstRandomNumber
Microsoft WSH and VBScript Programming for the Absolute Beginner, Second Edition
210
The ... whether he or she would like another card and
determines when the player has either busted or decided to hold.
Microsoft WSH and VBScript Programming for...
... the temporary string
For intLetterCounter = 1 to Len(strTempStringOne)
Microsoft WSH and VBScript Programming for the Absolute Beginner, Second Edition
that are used to track the status of the ... by the Previous For Next loop
strTempStringOne = strTempStringTwo
‘Clear out the value of the strDisplayString variable
Microsoft WSH and VBScript Programm...
... allows
you to execute any job within the Windows Script File.
Microsoft WSH and VBScript Programming for the Absolute Beginner, Second Edition
The <package> and </package> tags were not ... these scripts and then double-click on the Windows Script File, you’ll
see that both scripts will execute and display their pop-up dialog in sequence.
Microsoft...