TAILIEUCHUNG - Microsoft WSH and VBScript Programming for the Absolute Beginner Part 44

Microsoft WSH and VBScript Programming for the Absolute Beginner by Jerry Lee Ford Part 44. If you are new to programming with Microsoft WSH and VBScript and are looking for a solid introduction, this is the book for you. Developed by computer science professors, books in the for the absolute beginner series teach the principles of programming through simple game creation. You will acquire the skills that you need for more practical WSH and VBScript programming applications and will learn how these skills can be put to use in real-world scenarios. Best of all, by the time you finish this book,. | Microsoft WSH and VBScript Programming for the Absolute Beginner Second Edition Main Processing Section 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 2 Close the VBScript Game Console Procedure Section This procedure prompts the user for confirmation function DisplayInitialSplashScreen strTitleBarMsg getResource cTitlebarMsg Display popup dialog using the WshShell object s Popup method intResults strWelcome strlnstructions 0 strTitleBarMsg 1 Return the result to the calling statement return intResults One way to develop each of the three scripts used in this Windows Script File is to create each script as a stand-alone script and get them all working as expected and then to cut and paste the scripts into the Windows Script File in the areas identified for each script by the XML tags. As you can see this JScript is broken down into the same three sections that I ve been using to organize this book s VBScripts that is the initialization section the main processing section and the procedure section . Comments in JScript are created using the characters and I have added a number of them to the script to explain its operation. The script s only Chapter 12 Combining Different Scripting Languages function DisplayInitialSplashScreen is responsible for displaying the VBScript Game Console s initial splash screen which it does using the WshShell object s Popup method. JScript does not provide any functions that work similarly to the VBScript MsgBox or InputBox functions. Therefore to display text in a pop-up dialog using JScript you must use either the WshShell object s Popup method or the WScript object s Echo method. Developing the VBScript Game Console The VBScript portion of the VBScript Game Console contains the bulk of the complexity and programming logic. The first step in developing this VBScript is to insert .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.