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

Microsoft WSH and VBScript Programming for the Absolute Beginner by Jerry Lee Ford Part 38. 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,. | 350 Microsoft WSH and VBScript Programming for the Absolute Beginner Second Edition These new programming techniques provide you with tools for externalizing script configuration information allowing you to change your script configuration settings without having to make direct modifications to your scripts and without having to worry about making mistakes while you do it. In addition I showed you how to use text files as another source of data input for your VBScripts. Challenges 1. Create new collection of word files to increase the number of categories available to the player. 2. Add an error-handling routine to the script and use it to report any problems that may occur when the script attempts to perform the RegWrite method. 3. Modify display a pop-up dialog that asks the user to agree to abide by any terms that you choose to specify to play the game. Store a value indicating whether or not the user has accepted the terms in the Registry. Check this value each time the Hangman game is started allowing the user to play only if the terms have been accepted and prompting the user to accept the terms again if they have not been accepted yet. 4. Create and store a variable in the Registry and modify to increment it every time the game is started. Use this value to track the number of games played. Check this value each time the game starts to determine whether it exceeds a value of 20. Then if the user has not yet accepted your terms prevent the game from running and force the user to accept your terms to play. - a chapter Working with Built-In VBScript Objects To get any real work done VBScript depends on access to objects and their associated properties and methods. So far you have learned how to work with objects provided by the WSH and the VBScript run-time object model. Besides these collections of objects your VBScripts have access to a small collection of built-in or core objects. Using these built-in VBScript

Đã 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.