Script Walkthroughs | |
This section provides walkthroughs on how to create scripts for each script set from the ground up.
GeneralTo begin creating any script, you must first create the script file and add it to the script set of your choice. Press Alt-T/R to load the Code Editor. Go to the Script Set menu item and select the script set of your choice. We will be using System. Press Ctrl-N to create a new script file. Press Ctrl-D to add the script file to the current script set (System in our case). Because the file has not been saved, it will prompt you to save it before adding it to the set. Select any file name you want; for the walkthrough we will use Script Walkthroughs.lss.
System ScriptsTo write scripts for the MHS system, you must handle the correct events. Events are similar to mIRC script events, such as ON TEXT. First, create a script file by following the steps outlined in General, if you have not already. Our examples used the Script Walkthroughs.lss file created there. On_StartUpFirst we will handle the On_StartUp event. Just add the following shell code: void On_StartUp( HWND hWnd ) {
|
Copyright © 2006 Shawn (L. Spiro) Wilcoxen |