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

Microsoft WSH and VBScript Programming for the Absolute Beginner by Jerry Lee Ford Part 36. 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,. | 330 Microsoft WSH and VBScript Programming for the Absolute Beginner Second Edition Creating the Setup Script In stage 1 you ll create a VBScript called . This script will create and store a Registry key called Hangman in the HKEY_CURRENT_USER root key referred to in the script as HKCU . Within this key a value called ListLocation will be created and assigned a string identifying the location where you plan to store your Hangman word files. The script will be developed in three steps. 1. Create a new script adding your VBScript template and defining the variables and objects used by this VBScript. 2. Set up the controlling logic in the Main Processing Section first prompting for confirmation before continuing and then finally calling the procedure that creates the Registry key and value. 3. Set up the Procedure Section by adding the SetHangmanKeyAndValue function which performs the actual modification of the Registry. Defining Variables and Objects By now this step should be very familiar to you. Begin by copying over your VBScript template and filling in information about the new script. Script Name Author Jerry Ford Created 12 14 02 Description This script configures Registry entries for the game. Initialization Section Option Explicit Next define the variables and objects required by the script. As you can see here this is a very simple script with only a few items that need to be defined Dim objWshShl intResponse Set objWshShl The first variable represents the WshShell object and the second variable stores the user s response when asked whether he or she wants to make the Registry change. Chapter 10 Using the Windows Registry to Configure Script Settings Get Confirmation First The Main Processing Section prompts the user for confirmation and then tests the results returned by the InputBox function before proceeding. If the value returned is equal to 6 then the user

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.