« Home « Chủ đề ứng dụng lập trình

Chủ đề : ứng dụng lập trình


Có 55+ tài liệu thuộc chủ đề "ứng dụng lập trình"

Microsoft WSH and VBScript Programming for the Absolute Beginner Part 39

tailieu.vn

objFirstHero.DisplayIdentity() ‘Execute the SuperHero object’s method. objsecondHero.DisplayIdentity() ‘Execute the SuperHero object’s method. ‘the SuperHero object is instantiated MsgBox “In a blast of smoke and lightning another new super “ &. As the script runs, pop-up dialogs will be displayed as shown in Figures 11.8 and 11.9 demon- strating the execution of the Class_Initialize event and the object’s DisplayIdentity() method.. Figure...

Microsoft WSH and VBScript Programming for the Absolute Beginner Part 40

tailieu.vn

‘Description: This script is a VBScript implementation of the. ‘of the Tic Tac Toe game board Dim blnGameOver ‘Boolean variable that determines when to end game Dim blnPlayerTypedQuit ‘Variable used to track whether a player typed Quit Dim blnStopGame ‘Variable used in Main Processing section to. ‘determine when to stop the game. Dim intNoMoves ‘Variable used to keep track of...

Microsoft WSH and VBScript Programming for the Absolute Beginner Part 41

tailieu.vn

Function MarkPlayerSelection() ‘Mark an X or O in the appropriate cell If strPlayerInput = “A1” Then. A1 = strPlayer End If. If strPlayerInput = “A2” Then A2 = strPlayer. End If. If strPlayerInput = “A3” Then A3 = strPlayer. If strPlayerInput = “B1” Then B1 = strPlayer. If strPlayerInput = “B2” Then B2 = strPlayer. If strPlayerInput = “B3” Then...

Microsoft WSH and VBScript Programming for the Absolute Beginner Part 42

tailieu.vn

If strPlayerInput. Then ‘Player must type something strNotificationMsg = “Missing entry. End If. ‘Check each cell to make sure that it has not already been selected If strPlayerInput = “A1” Then. If A1 <>. End If End If. If strPlayerInput = “A2” Then If A2 <>. If strPlayerInput = “A3” Then If A3 <>. If strPlayerInput = “B1” Then If...

Microsoft WSH and VBScript Programming for the Absolute Beginner Part 43

tailieu.vn

In this chapter, I’ll introduce you to a number of commonly used XML tags, and I’ll provide examples of how they’re used to build Windows Script Files.. <?job ?>. Specifies the Windows Script File’s XML level.. <comment>. </comment>. Embeds comments within Windows Script Files.. Identifies the beginning and ending of a script within a Windows Script File.. <job>. </job>. Identifies...

Microsoft WSH and VBScript Programming for the Absolute Beginner Part 44

tailieu.vn

//Verify that the user wants to open the VBScript Game Console intReply = DisplayInitialSplashScreen();. //intReply will be set equal to 2 if the user clicks on the Cancel if (intReply. //Close the VBScript Game Console WScript.Quit();. //This procedure prompts the user for confirmation function DisplayInitialSplashScreen(). One way to develop each of the three scripts used in this Windows Script File...

Microsoft WSH and VBScript Programming for the Absolute Beginner Part 45

tailieu.vn

It displays the game’s closing splash screen and is designed in the same basic manner as the first JScript, using the WshShell object’s Popup() method to display its graphical pop-up dialog.. //Description: This JScript displays the .WSF file’s closing splash. strMessage = “Thank you for using the VBScript Game Console. Before you run it for the first time, be sure...

Microsoft WSH and VBScript Programming for the Absolute Beginner Part 46

tailieu.vn

At this point, you should have a solid understanding of both VBScript and the Windows Script Host and should feel confident, not just of your game development capabilities, but also in your ability to apply the knowledge and skills that you’ve learned here in real-world situations.. Modify the Windows Script File so the Windows Game Console script does not have...

Microsoft WSH and VBScript Programming for the Absolute Beginner Part 47

tailieu.vn

‘use the objWshNetwork object’s MapNetworkDrive() method to map to drive objWshNet.MapNetworkDrive DriveLetter, NetworkPath. You can use the WshNetwork objects’ RemoveNetworkDrive() method to disconnect a mapped drive when it’s no longer needed. For example, you might want to do this at the end of the script that created the drive mapping, after it has completed its assigned task. The syntax of...

Microsoft WSH and VBScript Programming for the Absolute Beginner Part 48

tailieu.vn

‘Call the procedure that schedules the execution of VBSCripts ScheduleTheScripts(). ‘Use the WshShell object’s Run() method to run the AT command. objWshShl.Run “at 20:00 /every:M,T,W,Th,F cmd /c GenerateRpts.vbs”, 0, “True”. objWshShl.Run “at 21:00 /every:M,T,W,Th,F cmd /c CopyFiles.vbs”, 0, “True”. objWshShl.Run “at 22:00 /every:M,T,W,Th,F cmd /c ClearOutFolders.vbs”, 0, “True”. The Windows Scheduler. If you prefer to point and click your way...

Microsoft WSH and VBScript Programming for the Absolute Beginner Part 49

tailieu.vn

‘Use the Document object’s Close() method to close the document objWord.ActiveDocument.Close(). Dim objExcel ‘Used to establish a reference to Excel Application object. ‘Visible is a property of the Application object. ‘prevent Excel from appearing as the script executes objExcel.Visible = False. ‘WorkBooks collection that opens a new empty spreadsheet objExcel.WorkBooks.Add. ‘Use the Columns object’s ColumnWidth property to set column widths...

Microsoft WSH and VBScript Programming for the Absolute Beginner Part 50

tailieu.vn

Chapter 1 Greeting.vbs Collects the user’s name and displays a greeting message. Hello-1.vbs Displays the classic “Hello World!” message. Hello-2.vbs Displays a message using the WshShell object’s Popup() method. Hello-3.vbs Displays a message using the WScript object’s Echo() method. KnockKnock.vbs A “Knock Knock” joke game. Chapter 2 EventLogger.vbs Demonstrates how to write messages to the Windows application event log. Greeting.vbs...

Microsoft WSH and VBScript Programming for the Absolute Beginner Part 51

tailieu.vn

To learn more about ModelWorks SitePad Pro, or to purchase a licensed copy, visit http://www .modelworks.com/products.html.. The MSDN Scripting Web page (at http://www.msdn.microsoft.com/scripting), shown in Fig- ure D.1, is Microsoft’s official site for all things VBScript and WSH. The Win32 Scripting Web site (at http://cwashington.netreach.net), shown in Figure D.2, pro- vides an abundance of information for a number of scripting...

Tìm hiểu về Stand Alone Express

tailieu.vn

I – Gi i thiêu vê Stand Alone Expess : ơ. III – H ướ ng dân vê cach s dung Stand Alone Express. ượ c điêm cua Stand Alone Express. Va Stand Alone Express la môt công cu. đê tôi ưu hoa cho Visual Basic, đây la môt chương trinh co chưc. năng đong goi phân mêm hô trơ ...

Bài giảng: Phương pháp lập trình

tailieu.vn

Ch ươ ng 1. Chú thích trong ch ươ ng trình. F4: ch ạ y ch ươ ng trình đế n v ị trí con tr ỏ. F8: Ch ạ y ch ươ ng trình theo t ừ ng l ệ nh trong hàm chính.. F9: D ị ch và liên k ế t ch ươ ng trình. Ctrl-F9: Ch...