alias DCCHelp {
  if $dialog(DCCmanager).title != $null {
    var %tab = $dialog(DCCManager).tab
    if %tab == 1 {

    }
    elseif %tab == 2 {

    }
    elseif %tab == 3 {

    }
    else if %tab == 4 {

    }
    elseif %tab == 5 {
      ;  if $1 > 31 && $1 < 209 && $2 > 35 && $2 < 45 {
      ;     did -ra DCCManager 410 DCC Send Bandwidth is a bandwidth cap you can set for each DCC sent. If you for example set this to 10000 then each send will be limited to a max speed of 10kbs. If you you had a this set to 20000 and a max sends total set to 3 then you would have virtually set the Total Server Bandwidth to 60kbs. This setting will superceed the Total Server Bandwidth Setting. To Disable this and use the TSB setting or no bandwidth limiting at all set this to 0.
      ;    }
      if $1 > 31 && $1 < 209 && $2 > 55 && $2 < 65 {
        did -ra DCCManager 410 Automatic Requeue of Failed Sends when enabled will requeue a dcc send that has failed. When a DCC Send Fails it will go on to send the next queue if one exists and then put the the transfer back on top of the queue in slot 1. This gives the person that was trying to receive the file a bit of time to free up bandwidth or do whatever to improve their chances of success the next time. The Max Retries is just that. The maxiumum times it will try again to send it. 
      }
      elseif $1 > 31 && $1 < 209 && $2 > 75 && $2 < 85 {
        did -ra DCCManager 410 Minimum DCC Send Speed is the minimum cps speed a send can drop to before it is considered to slow and is automatically halted. This doesn't mean a person doing well over the min cps speed that suddenly pauses for a few seconds due to internet congestion will be imediately halted. The function looks at the history of averages as well. The person must drop below the min cps for some time before the send is halted. This amount of time depends on how much faster he was going over the min cps and how far below he is of it currently. You can set this to 0 to disable it. 
      }
      elseif $1 > 31 && $1 < 209 && $2 > 95 && $2 < 105 {
        did -ra DCCManager 410 Minimum DCC Minimum CPS Check Delay is the time in seconds that it will routinely take a look at how fast the current send are going and ensures they are above the minimum set if it is. These samples are averaged out as to avoid making haste decisions in cutting off a send due to temporary lag conditions.
      }
      ; elseif $1 > 46 && $1 < 220 && $2 > 115 && $2 < 129 {
      ;   did -ra DCCManager 410 Direct Sending to IP when enabled will let the Queue handler try and send to the last known IP of the queue holder in the event they are not online at the time of send. The receiver must have be running the the mIRC DCC server that listens for dcc sends suck as later versions of Invision 2.0. This feature can be nice under heavy net split conditions.
      ; }
      elseif $1 > 46 && $1 < 220 && $2 > 115 && $2 < 129 {
        did -ra DCCManager 410 Auto /dccallow is for Dalnet and any other network that requires you to do a /dccallow <nick> before you can dcc them in anyway. This has been implemented by the network(s) for the protection of you and others. 
      }
      elseif $1 > 46 && $1 < 220 && $2 > 132 && $2 < 146 {
        did -ra DCCManager 410 Priority queue lets you have two isolated queues. One (Standard Default) for normal users and a second queue for those that meet the criteria you selected. This can be one of 3 settings. Elite only, Fellow Ops or higher, or Friends or higher. When a qualifying user queues a file there queues will be redirected to the priority queue. This queue takes prioity over the standard queue and has send preference.
      }
      elseif $1 > 46 && $1 < 220 && $2 > 149 && $2 < 164 {
        did -ra DCCManager 410 SmartSends is feature that adjust the amount of Max Sends Total on the fly in order to ensure maximium queue flow while maintaining the TSB (Total Server Bandwidth) set. If for example you set a TSB of 60kbs and a MST (Max Sends Total) at 2 then the first send would be sent with a limit of 30kbs. The second send would go out also with a 30kbs limit. If however one of the send was only moving at say 10kbs and SmartSends is enabled, then a third send would be sent with a limit set at 20kbs (the remaining bandwidth available).
      }
      elseif $1 > 46 && $1 < 220 && $2 > 172 && $2 < 183 {
        did -ra DCCManager 410 DCC Server Logging when enabled will keep a text log file of all DCC sends, Fails, Gets, and Fserve Actions which can be viewed by going to the Invision Menu on the menu bar and choosing Invision Tools > System Logs 
      }
      elseif $1 > 46 && $1 < 220 && $2 > 192 && $2 < 203 {
        did -ra DCCManager 410 Isolate DCC Notices will capture DCC Sends, Gets, and Fails to a seperate window which when first created is minimized on the switchbar. This can be a nice history if you are running a Fserve.
      }
      elseif $1 > 46 && $1 < 220 && $2 > 213 && $2 < 224 {
        did -ra DCCManager 410 DCC Watch when enabled will ensure that those that are receiving files from you stay in a common channel as you or a channel you have specified in the DCC Watch Channels box. If the user leaves the channel do to a quit they have a few minutes to come back before their sends are killed. This is to allow for normal netsplits.
      }
      elseif $1 > 46 && $1 < 220 && $2 > 234 && $2 < 245 {
        did -ra DCCManager 410 DCC Daily Limit when enabled will limit the amount in bytes that each user can download from your File Server per day. The 24hr time span is started when the user first receives a file from you. 24hrs from this the accumulated bytes from files downloaded will be erased for that user and the process will start over again. This option is to allow those that want to stop people from being a leech pig. =)
      }
      elseif $1 > 46 && $1 < 220 && $2 > 255 && $2 < 266 {
        did -ra DCCManager 410 DCC Reverse Inits is used when you are behind a network firewall (school, business, not personal software) and need to use the ctcp passive protocol and the DCC Server on the remote connections machine in order to establish connection. The mIRC default port is 59 but this usually is blocked on most firewalls so the Invision Default is 6060 but you can change it to when works for you. When this is enabled DCC sends will be delayed approx. 20 seconds while a notice is sent to the receiver instructing them on the setting of their DCC server in order to receive. 
      }
      elseif $1 > 34 && $1 < 170 && $2 > 285 && $2 < 304 {
        did -ra DCCManager 410 PDCC is a setting to help speed up transfers. This is the amount of packets it will send ahead before needing an acknowledgement from the previous. Generally you want this set on.
      }
      elseif $1 > 50 && $1 < 150 && $2 > 310 && $2 < 322 {
        did -ra DCCManager 410 FastSends is a transfer option that will speed up your transfers. You will most likely never want this turned off. Default is Enabled
      }
      elseif $1 > 32 && $1 < 310 && $2 > 335 && $2 < 346 {
        did -ra DCCManager 410 DCC Per Send Bandwidth is a bandwidth cap you can set for each DCC sent. If you for example set this to 10000 then each send will be limited to a max speed of 10kbs. If you you had a this set to 20000 and a max sends total set to 3 then you would have virtually set the Total Server Bandwidth to 60kbs. This setting will superceed the Total Server Bandwidth Setting. To Disable this and use the TSB setting or no bandwidth limiting at all set this to 0.
      }
      elseif $1 > 32 && $1 < 310 && $2 > 357 && $2 < 367 {
        did -ra DCCManager 410 Total Server Bandwidth is only in use if set to something higher then 1000 (1kbs) and DCC Send Bandwidth is disabled (set to 0). When these conditions are met TSB will govern how much bandwidth is used by your servers. If you set Max Total Sends to say 3 and you have TSB set at 60000 then each send will be givin a speed cap of 20kbs (3 x 20kbs = 60kbs). This allows you to change the amount of Max Total Sends without worrying about refiguring what the new 'per send' speed should be and having to reset that as well.
      }
      elseif $1 > 247 && $1 < 316 && $2 > 270 && $2 < 389 {
        did -ra DCCManager 410 Packet Size is an important setting. If you have it set to low (512) transfer speed will suffer. If you have it set to high and you have a lot of packet loss then you will also experience reduced transfer speeds. Usaully a setting of 2048 or 4096 is optimal. One very IMPORTANT thing to note is that the packet size has a direct impact on the maximum speed that can be achieved if using bandwidth limiting. You can figure it like so.. a packet size of 2048 will impose a top speed of 20kbs per send, 4096 will impose roughly 40kbs, and 8192 will impose roughly 81kbs. 
      }
      elseif $1 > 350 && $1 < 587 && $2 > 321 && $2 < 397 {
        did -ra DCCManager 410 Priority Queue Level is the where you can set minimal level needed for that persons queues to be placed in the Priority Queue when active. If for example you where to set it to Friends then anyone in your user lists that was a friend or higher would be placed in the the Priority Queue.
      }
      elseif $1 > 350 && $1 < 587 && $2 > 41 && $2 < 312 {
        did -ra DCCManager 410 DCC Watch Channels: Here you can set specific channels that users must be in in order to receive files from you. If they should leave and not be present in at least one of the channels thier sends will be canceled with no requeuing. 
      }
      else {
        ; did -ra DCCManager 410 $1 $2
      }
    }
  }
}
alias MainHelp {
  if $dialog(InvisMain).title != $null {
    var %tab = $dialog(InvisMain).tab
    if %tab == 1 {
      if $1 > 36 && $1 < 104 {
        if $2 > 92 && $2 < 100 {
          did -ra InvisMain 1502 Titlebar > Lagmeter : When enabled will add the lag meter to the titlebar. If graphical is enabled in the Lagmeter setting above then it will be a grpahical representation of the amount of lag with each bar representing appoximately .1 seconds.
          halt
        }
        elseif $2 > 112 && $2 < 120 {
          did -ra InvisMain 1502 Titlebar > Active Chan Stats : When enabled will cause the users stats for the active channel to appear in the Titlebar. The stats will be amount of Ops, Halfops, Voices, and Regular users in that channel.
          halt
        }
        elseif $2 > 130 && $2 < 138 {
          did -ra InvisMain 1502 Titlebar > Open Socks : When enabled will display the current amount of open sockets in use by mirc scripts (not mirc itself). This is good when you want to see exactly what happening socket wise.
          halt
        }
        elseif $2 > 145 && $2 < 154 {
          did -ra InvisMain 1502 Titlebar > Invision Name : When enabled will add the Invision Name to the begging of the titebar. This is the original Invision display method but has been made optional to allow more room for other options and user preferences.

        halt        }
      }
      if $1 > 160 && $1 < 224 {
        if $2 > 92 && $2 < 100 {
          did -ra InvisMain 1502 Titlebar > Server Name : When enabled will add the name of the server you are currently connected to along with port number.
          halt
        }
        elseif $2 > 112 && $2 < 120 {
          did -ra InvisMain 1502 Titlebar > Away Status : When enabled will display you current /away status in the titlebar.
          halt
        }
        elseif $2 > 130 && $2 < 138 {
          did -ra InvisMain 1502 Titlebar > Idle Time  : When enabled will display The amount time you have been Idle once you have exceeded 5 min. Anything below 5 min you wont see anything in the titlebar.
          halt
        }
        elseif $2 > 145 && $2 < 154 {
          did -ra InvisMain 1502 Titlebar > Sends/Queues : When enabled will display the current Sends and Queues pending globally. You will see nothing when there is none.
          halt
        }
      }
      if $1 > 280 && $1 < 338 {
        if $2 > 92 && $2 < 100 {
          did -ra InvisMain 1502 Titlebar > Current Time : When enabled will add the current time to the titlebar.
          halt
        }
        elseif $2 > 112 && $2 < 120 {
          did -ra InvisMain 1502 Titlebar > Nick + Modes : When enabled will display your current nick name and any modes you have set in the titlebar.
          halt
        }
        elseif $2 > 130 && $2 < 138 {
          did -ra InvisMain 1502 Titlebar > Linked Bots  : When enabled will display the total amount of active DCC links you have to bots using the bot command via DCC menu options (not manually made dcc chat sessions to bots). 
          halt
        }
        elseif $2 > 145 && $2 < 154 {
          did -ra InvisMain 1502 Titlebar > mp3 in play : This will cause the artist - title to be displayed of the currently playing mp3 if there is one.
          halt
        }
      }
      if $1 > 36 && $1 < 160 {
        if $2 > 184 && $2 < 192 {
          did -ra InvisMain 1502 Stealth Mode when enabled will suppress the Invision logo from being displayed in any outgoing displays and will also block all ctcp version replys except for the mIRC Client reply itself. Only you will see the Invision logo on your end for things like script messages and so on.
          halt
        }
        if $2 > 202 && $2 < 214 {
          did -ra InvisMain 1502 Enabling this will force the extended mp3 info like bitrate, filesize, id3tag info and so on to appear in the Active Window rather then the Status window by default.
          halt
        }
        if $2 > 224 && $2 < 233 {
          did -ra InvisMain 1502 Channel Scan when enabled will cause you to scan those that join channels that you are currently on. It then proceeds to attach a list of the channels visible to you to that persons nick. It will display any other channels you can see (besides the one he just joined) following the join message in the channel. You can also see these channels when you right click in the nick. You can also use this when doing a common channel scan.
          halt
        }
        if $2 > 242 && $2 < 254 {
          did -ra InvisMain 1502 Auto Notice Reply Prompt when enabled will automatically put a /notice <nick of person who noticed you> in the editbox of the active window when someone notices you a message. It will not auto prompt on Fserve Ad Notices nor DCC notices. 
          halt
        }
        if $2 > 264 && $2 < 272 {
          did -ra InvisMain 1502 Isolated Info Responses when enabled will cause all info replies like /whois , /dns, etc.. to be directed to a isolated window rather then appear in the active window itself. Note that when you mass info query more then one nick at a time the isolated window will open up anyway even if this is disabled. To see an example highlight a few nicks in the nicklist of a channel and then right click and choose 411 > Whois. You will see a new window form with the results being added as they are received.
          halt
        }
      }
      if $1 > 200 && $1 < 270 {
        if $2 > 184 && $2 < 192 {
          did -ra InvisMain 1502 BlackIce Support will enable a menu which will appear in the nicknames right click popup menu to appear. From this menu you can select whether to Trust, Block, or Remove the person highlighted to your BlackIce Firewall. To learn more about or purchase Blackice you can go to www.networkice.com. (No I don't get paid for supoorting it in any way. I just like it.) 
          halt
        }
        if $2 > 202 && $2 < 214 {
          did -ra InvisMain 1502 Display mp3 Buttons when enabled will add Play Controls to the tool bar menu. Click the Play Arrow button to select a mp3 Directory to randomly play from or hold the CTRL key while clicking the Play Arrow Button to select a single mp3 to play. 
          halt
        }
        if $2 > 224 && $2 < 233 {
          did -ra InvisMain 1502 Fast Index Method when enabled will use an external process when building File Index Caches for the File Server and mp3 Server. In most cases you will want to have this enabled but in some cases the mp3 Server will build faster with it disabled. If you plan to run a mp3 Server its best to try both methods. If for some reason it is not building index files for you try this disabled.
          halt
        }
        if $2 > 242 && $2 < 254 {
          did -ra InvisMain 1502 Auto Updates when enabled will check for new versions of Invision when you connect to a irc server. If a newer version exists you will be prompted with an option to update. You will also receive any news updates there might be which maybe bug notices etc. If you are running through a proxy server this will not work and you will have to download any updates via the website and manually install them. This option is enabled by default.
          halt
        }
        if $2 > 264 && $2 < 272 {
          did -ra InvisMain 1502 Part channels to regain nick is a feature which will cause you to part channels you are in which may be preventing you from successfully changing your nick. 
          halt
        }
      }
      if $1 > 36 && $1 < 129 {
        if $2 > 299 && $2 < 310 {
          did -ra InvisMain 1502 Enable Messenger: This feature when enabled allows Invision to check for messages you have queued in the User List Manager for people that are not online at the time but you want to get them a message to them asap. You can set it to send the message either when they are seen joining a channel your on or wait until they are seen saying something in a channel your in by selecting the mode on the ADV tab. Disabling this can reduce script lag.
          halt
        }
        if $2 > 321 && $2 < 331 {
          did -ra InvisMain 1502 Enable !Seen will track those that are a friend or higher in your user lists. By track I mean it will keep track of when it last saw the person on iRC. In turn people can do a !Seen <nick> in channel to inquire about people that qualify. The !seen reply is sent to the person via /notice in order to avoid flooding the channel.
          halt
        }
        if $2 > 340 && $2 < 350 {
          did -ra InvisMain 1502 Auto !ping Reply will auto ping those that use the !ping request in a common channel with you. 
          halt
        }
        if $2 > 358 && $2 < 368 {
          did -ra InvisMain 1502 Nick Alert when enabled will echo any line of text said in a channel window that is currently not in focus to the window that is. So if you are on two channels like #one and #two and #one is minimized and someone in #one says "Hi <your nick>" it would show that in #two including what channel it was said in.
          halt
        }
        if $2 > 379 && $2 < 389 {
          did -ra InvisMain 1502 Dclk Nick Repond will cause there to appear a /> prompt in the text box of a channel when you double click on someones nick. The cursor will be set right after this prompt for you to type in what you want to say to that person. When entered you will see what you said preceeded by a nick tag for that person. This is good practice in busy channels where you want to be clear who you are responding to. When enabled you can at any time hold the CTRL key down while double clicking on a nick to get the standard query window for that person instead. 
          halt
        }
      }
      if $1 > 156 && $1 < 198 {
        if $2 > 299 && $2 < 310 {
          did -ra InvisMain 1502 msg history revive: This will cause the last so many lines of a private message conversation to be added to a private message window that is opened. So if you were having a private chat in a message window and you closed it, the previous dialog lines would show up when they messaged you again. This should only be effective for that day.
          halt
        }
        if $2 > 321 && $2 < 331 {
          did -ra InvisMain 1502 Pager Always On will allow people to ctcp page you at any time rather then just when you are in away mode.
          halt
        }
        if $2 > 340 && $2 < 350 {
          did -ra InvisMain 1502 Capture Notice Ads will force File Server Ads sent to you via notice when you do a !list to appear in a seperated window along with that it will extract the triggers from all the ads and put then in the right side box of that window where you can just double click on them to say them in the channel or send them ctcp if they are ctcp type. This can save a lot of typing and/or copying and pasting. Doing a !list in the channel will automatically close any existing Serve Ad Window for that channel and open a new one.
          halt
        }
        if $2 > 358 && $2 < 368 {
          did -ra InvisMain 1502 Capture Text Ads will force File Server Ads seen in the channels to a seperated window along with that it will extract the triggers from all the ads and put then in the right side box of that window where you can just double click on them to say them in the channel or send them ctcp if they are ctcp type. Ads will be updated as they appear each time rather then simply adding to the window repeats. There maybe cases where at times it can't erase the previous ads and therefor near dupes may appear. This should be rare though.
          halt
        }
        if $2 > 379 && $2 < 389 {
          did -ra InvisMain 1502 Gain Ops will try and gain ops in any channel where it comes down to you are the only person left and you dont have ops it will quickly part and rejoin the channel in attempt to gain Op Status. You may want to disable this on some networks where it might be more annoying then good.
          halt
        }
      }
      if $1 > 277 && $1 < 396 {
        if $2 > 299 && $2 < 310 {
          did -ra InvisMain 1502 Data in Bold: This will cause the data in the brackets show in serve ads and other things like system info etc. to appear in bold typeface.
          halt
        }
        if $2 > 321 && $2 < 331 {
          did -ra InvisMain 1502 Leave weak side of splits will cause you to change servers within the same network in the event there should be a net split and you are left on the weak side of that split.
          halt
        }
        if $2 > 340 && $2 < 350 {
          did -ra InvisMain 1502 File Server Explorer is a dialog that will popup in place of the common DCC Chat window when accessing File Servers. This interface is generally considered a much easier way to browse and retrieve files from a Fserve much like that of Windows File Explorer. In the event it is not opening for an fserve try right clicking on the channel window to get the menu then choose Force Fserve Explorer and then enter the trigger. This may be needed for those running File Servers on older versions of mIRC. This can be toggled via F6
          halt
        }
        if $2 > 358 && $2 < 368 {
          did -ra InvisMain 1502 Visufix when enabled will alter colors used in channels in order for you to see them better. If for example someone says something in Black text and you have black background it will alter the color to something visible yet close to the original color like grey in this case. This can also be toggle via the F4 key.
          halt
        }
        if $2 > 379 && $2 < 389 {
          did -ra InvisMain 1502 File Server Anti-Idle will attempt to keep you from Idling out and getting disconnected from a Fserve Session. This refers to when you get the "Closing Idle Connection in blah blah seconds" notice. It does not prevent you from getting terminated due to AntiCamp.
          halt
        }
      }
      if $1 > 9 && $1 < 277 && $2 > 39 && $2 < 73 {
        did -ra InvisMain 1502 The Lag Monitor Section is where you can enable lag monitoring and effect how it is reported. By checking the graphical box your Lag Meter will be in the form of a Bar in the titlebar (when enabled in titlebar section as well). If graphical is disabled then you will get a numerical display in the titlebar. The interval is how often it checks the lag and updates the display. 
        halt
      }
      if $1 > 418 && $1 < 586 && $2 > 285 && $2 < 398 {
        did -ra InvisMain 1502 The Home Channel(s) Section is where you can set Channels you want to maintain presence in. When enabled it will work to make sure you are always in those channels. When you have the Learn Keys option enabled it will automatically update the key for any channel in the list when the key is changed. To enter a channel that needs a key simply include the key following the channel. ie: "#somechannel thekey". This is great if they happen to change the channel key while you are away and then later you drop connection and try and come back.
        halt
      }
      if $1 > 352 && $1 < 586 && $2 > 148 && $2 < 278 {
        did -ra InvisMain 1502 The Auto Greet Section is where you can enable and set which channels if not all that you want to auto greet people. You can set a unique greet message for anyone by right clicking on there nick and choosing User Lists > Auto Greet > Add. It will the prompt you for a greeting message for that user.
        halt
      }
      if $1 > 352 && $1 < 586 && $2 > 79 && $2 < 142 {
        did -ra InvisMain 1502 The Encrypt/Decrypt Section is where you can enable and set the key used for both encrypting and decrypting text. Invision has two encrypt/decrypt methods and the key is used for both. The native engine can be used by doing a /' <text to say encrypted> . The second..  is an ircN (a popular vetran script) compatible engine which allows you to talk encrypted to ircN users by using the /e <text to say encrypted>. The first method allows you to use color codes where as the ircN method doesn't. Dycrypting is done automatically for both methods.
        halt
      }
      if $1 > 283 && $1 < 586 && $2 > 41 && $2 < 74 {
        did -ra InvisMain 1502 Nick Section is where you should set your common nickname used. If you elect to enable the Maintain Nick feature it will always work to keep that nick (except if you have an away nick set and are away). Inthe event you ping out and reconnect to the server and your ghost is still there using your nick.. it will regain the nick as soon as it drops. Note that anytime you do a /nick <newnick> command it will change the nick in this section to that nick.   
        halt
      }
      if $2 > 400 && $2 < 430 {
        did -ra InvisMain 1502 Here you have 3 choices for how mp3's are played back. First (from left to right) is the bilt in mIRC method which uses /splay. Second is the Original Invision Winamp method using a supplied DLL to utilize the winamp engine but not the GUI of winamp. This method is limited to Winamp Versions pre 3.xx. Third is the new AMIP plugin support which you can download a plugin from http://amip.tools-for.net for either new or old versions of winamp. This method is best if you want to use winamp as it allows you to use the GUI of winamp and/or Invision. 
        halt
      }

    }
    elseif %tab == 2 {
      if $1 > 39 && $1 < 138 && $2 > 187 && $2 < 200 {
        did -ra InvisMain 1502 Logo Ban = Primary Script color will make the colored ban in the invision logo match your primary script color for a smoother look.
        halt
      }
      if $1 > 10 && $1 < 585 && $2 > 283 && $2 < 417 {
        did -ra InvisMain 1502 Full time User Lists Scheme will color nicks in the channel nicklists according to how they rank in your user lists. This is a full time effect of when you press the F12 key. Although this is a very nice feature to use it is some what demanding of the cpu. This will often lead to 'freezing' or pausing at times if used on machines of lower cpu speeds or even just heavily occupied channels. If you enable this and experience periodical freezing you should consider disabling it. 
        halt
      }
      if $1 > 10 && $1 < 586 && $2 > 40 && $2 < 147 {
        did -ra InvisMain 1502 Nicklist Colors when enabled will apply colors to the nick names in the channel nicklist according to channel status. Set the colors you want in the appropriate boxes.
        halt
      }
      if $1 > 360 && $1 < 586 && $2 > 160 && $2 < 270 {
        did -ra InvisMain 1502 Speech Color when enabled will automatically color your text outgoing to channels or querys. This is not same as 'Own Text Color' setting in mIRC in that the text will appear in this color to everyone and not just you.
        halt
      }
      if $1 > 10 && $1 < 360 && $2 > 161 && $2 < 270 {
        did -ra InvisMain 1502 Select Two colors used by the script. Usually you make the Primary the darker of the two but of course you can do whatever you like.
        halt
      }
    }
    elseif %tab == 3 {
      did -ra InvisMain 1502 Here you can select which Invision sound events you would like to hear for the stated events. You will notice that the sounds used here in Invision are not the common sound effects found in most scripts but yet prerecorded artificial speech. I did this simply because I hate having to remember what sound means what. Especially those events that dont happen often enough. I figure this way it just flat out tells you what the heck is going on.
    }
    else if %tab == 4 {
      if $1 > 35 && $1 < 273 {
        if $2 > 58 && $2 < 70 {
          did -ra InvisMain 1502 Block /MSG from those not in a mutual channel when enabled will block all messages sent to you from those that are not in at least one channel with you. Those in your friends/fellow ops/elite user lists will not be blocked by this. This is a good feature to prevent a lot of spam (besides the spam filter itself) since a lot of spammers use bots outside the channel to send the spam message to avoid being caught.
          halt
        }
        if $2 > 78 && $2 < 90 {
          did -ra InvisMain 1502 Block /MSG from those not in in your friends/fellow ops/elite user lists will block all messages from those not in one of these groups. This is great for the unsocial iRCer =)
          halt
        }
        if $2 > 98 && $2 < 110 {
          did -ra InvisMain 1502 Block /CTCP from those not in in your friends/fellow ops/elite user lists will block all /CTCPs from those not in one of these groups. This is can add protection but will block Incoming Server triggers if you are running the Fserve or mp3 Server. This can also get you kicked off some irc networks where the server ctcp versions you on connect.
          halt
        }
        if $2 > 118 && $2 < 130 {
          did -ra InvisMain 1502 Block /CTCP from those not in a mutual channel when enabled will block all /CTCPs sent to you from those that are not in at least one channel with you. Those in your friends/fellow ops/elite user lists will not be blocked by this. This can also get you kicked off some irc networks where the server ctcp versions you on connect.
          halt
        }
        if $2 > 138 && $2 < 150 {
          did -ra InvisMain 1502 Block File Server Ads when enabled will filter out and File Server Ads that are displayed in the channel(s). It will not filter out ads sent to you via /notice when you do a !list
          halt
        }
        if $2 > 158 && $2 < 170 {
          did -ra InvisMain 1502 Block Triggers will screen out common triggers said in the channel(s) you are on. This is basically any trigger that is preceeded by a ! , @, etc.
          halt
        }
        if $2 > 178 && $2 < 190 {
          did -ra InvisMain 1502 Spam Filter when enabled will block most spam messages sent to you. The messages are automatically blocked and a short message will appear in the active window stating spam was blocked and by who. It will also send a message back to the user informing them that their /msg was in fact blocked and then go on to insult there mother.
          halt
        }
      }
      if $1 > 318 && $1 < 561 {
        if $2 > 58 && $2 < 70 {
          did -ra InvisMain 1502 Block /CTCP mp3/SLOT when enabled will block the common /CTCP SLOT or /CTCP mp3 requests you may encounter in a lot of channels.
          halt
        }
        if $2 > 78 && $2 < 90 {
          did -ra InvisMain 1502 Block DCC Auto Gets from those not permitted. This will block incoming DCC Sends from those that you have not given either Temp DCC Permission or that have the DCC Permissions Flag set in the User Lists Manager under Default Template. TO grant someone temporary DCC Permission right click on their nick and then DCC > Grant Temp DCC. The Temporary DCC permission will last 1 hr by default.
          halt
        }
        if $2 > 98 && $2 < 110 {
          did -ra InvisMain 1502 Block DCC Chats from those not friend or higher. This will block all incoming DCC Chat requests from anyone that is not at least a friend in the user lists.
          halt
        }
        if $2 > 118 && $2 < 130 {
          did -ra InvisMain 1502 Block  /Notices from those not in channel will block all notices that are from anyone that is not in at least one common channel with you.
          halt
        }
        if $2 > 138 && $2 < 150 {
          did -ra InvisMain 1502 Block FTP Ads will screen out any FTP Ads it detects said in the channel(s) you are on.
          halt
        }
        if $2 > 158 && $2 < 170 {
          did -ra InvisMain 1502 Block XDCC Ads will screen out any XDCC Ads it detects said in the channel(s) you are on the best it can.
          halt
        }
        if $2 > 178 && $2 < 190 {
          did -ra InvisMain 1502 This will cause all server notices sent to be captured to an isolated window rather then to the status and/or active window. 
          halt
        }
      }
      if $2 > 260 && $1 > 210 {
        did -ra InvisMain 1502 You can enter your nicknames and the passwords for the Nicks which are automatically sent to NickServ when requested.
        halt
      }
      if $2 > 260 && $1 < 210  {
        did -ra InvisMain 1502 The trusted nicknames are the names of bots like NickServ, ChanServ, X, W, etc.  These nicknames wont trigger your personal flood protection.
        halt
      }
    }
    elseif %tab == 6 {
    }
    elseif %tab == 7 {
      if $1 > 10 && $1 < 584 && $2 > 58 && $2 < 160 {
        did -ra InvisMain 1502 The Mass Flood Protection system will help prevent you from being flooded off the network. Here you can set the amount of lines in a set amount of time in wich to consider it a flood. The default setting for Text Flood would be 20 lines in 1 seconds. Now if you are experiencing lag and net splits you will most likely encounter false triggers. The Difference between this and User Flood Protection is that this counts all lines as though from a single source. So it can try and protect you from joint flood attacks say from a bot pack.
        Halt
      }
      elseif $1 > 10 && $1 < 584 && $2 > 166 && $2 < 293 {
        did -ra InvisMain 1502 The User Flood Protection system will help prevent you from being flooded off the network. Here you can set the amount of lines in a set amount of time in wich to consider it a flood. The default setting for Text Flood would be 10 lines in 3 seconds. Now if you are experiencing lag and net splits you will most likely encounter false triggers as well since it will appear from your end that a person might have just said 12 lines all at once when in fact they said them over 30 seconds but you were lagged and didnt get them one at a time but all at once.
        Halt
      }
      if $1 > 165 && $1 < 296 && $2 > 308 && $2 < 417 {
        did -ra InvisMain 1502 Immune Scripts are those scripts that you know are loaded and you know they are ok to run. By default all the native Invision Scripts are loaded in here. Any Scripts loaded through the Addon Manager will also be automatically added to here as well. Any Script not in here will cause a Warning to appear in the active window at script startup. This can be a very valuable security feature as a lot of hacker (and wanna be hackers) like to add there own scripts to your iRC and this will alert you immediately at startup if there is an unknown Script loaded.
        Halt
      }
      if $1 > 465 && $1 < 575 && $2 > 308 && $2 < 467 {
        did -ra InvisMain 1502 Scanned Ports Section is where you can set which ports you want scanned at startup. By Default only Common Ports is enabled as these are usually enough for most people. If you are running a good Virus/Trojan Scanner and keep it updated you shouldn't need to worry about this. Note that windows commonlu assigns ports 1024 and up to currently running winsock apps so it's not uncommon to see ports in this range in use most times.
        Halt
      }
      if $1 > 35 && $1 < 163 {
        if $2 > 320 && $2 < 332 {
          did -ra InvisMain 1502 ScriptGuard when enabled will scan all scripts loaded at startup and report a warning for any scripts found loaded that are not in the immune lists. To add a script to the immune list click the "+" button above the list and navigate to the script.
          Halt
        }
        if $2 > 340 && $2 < 352 {
          did -ra InvisMain 1502 ScriptCheck when enabled will scan all scripts loaded at startup and report any native scripts that have been altered or corrupted from original release. This is also a good security measure to protect you from anyone that might have gained access to your system then added a few of there own lines to a native script page. Note that if you make any changes to any of the script pages they will come up as corrupter or altered at startup scan.
          Halt
        }
        if $2 > 360 && $2 < 372 {
          did -ra InvisMain 1502 PortCheck whenenabled will scan selected local ports (your own system) to see which ports are in use. This can be usefull if you suspect something might be using a port or listening that you don't want. If you run a up to date virus & trojan scanner I wouldn't be too alarmed but anything you see in here. See Scanned Ports help for more info.
          Halt
        }
        if $2 > 380 && $2 < 392 {
          did -ra InvisMain 1502 Log All CTCPs is a good option as it will keep a record of all CTCPs that are sent to you. In the event something unexplained should happen you could look here to see if anyone sent you a /CTCP here. You can also see DCC action here as well. To view this log look in the Invision Menu in the menubar under Invision Tolls > System Logs. 
          Halt
        }
        if $2 > 400 && $2 < 412 {
          did -ra InvisMain 1502 Log All Defense option will record any Channel Ops actions you take to a log file so you can see anything you did in the event you were away or whatever and missed it. So if say you Kicked someone for trading in the channel yuou could see it in here. To view this log look in the Invision Menu in the menubar under Invision Tolls > System Logs. 
          Halt
        }
      }
      if $1 > 315 && $1 < 452 {
        if $2 > 308 && $2 < 417 {
          did -ra InvisMain 1502 Use Isolated Report Window when enabled will cause a seperate window to be used for the PortScan results. This method is considerably better in that it will try to provide any commonly known uses for each port detected in use as opposed to the standard in active window report that simply just list the port numbers themselves.
        }
      }
    }
    elseif %tab == 8 {
      if $1 > 35 && $1 < 250 {
        if $2 > 53 && $2 < 65 {
          did -ra InvisMain 1502 Protect Ops when enabled will take action against anyone not in the User Lists as a bot or higher that takes action on someone who is. So if say someone kicks a recognised Fellow op out of the channel you would kick them from the channel and automatically send an invite to the protected op for that channel. It will also send a message to both parties explaining why you did what you did.
          halt
        }
        if $2 > 73 && $2 < 85 {
          did -ra InvisMain 1502 Allow /CTCP OPME. This feature when enabled will allow those users that have the flag for it in the users lists and that have set a password on you to gain ops in the channel via this command. This option has to be enabled for the channel (not default) and every user that you want to have this ability must have the channel entry inthe user list manager along with the Remote Ops flag set for the channel. They also must set a password on your system.
          halt
        }
        if $2 > 93 && $2 < 105 {
          did -ra InvisMain 1502 Deop on Server Ops. This will deop anyone opped in the channel that is not at least a bot in your User Lists.
          halt
        }
        if $2 > 135 && $2 < 147 {
          did -ra InvisMain 1502 Kick on Flood will kick anyone not in your User Lists that text floods the channel. In the event a flood is detected the user is kicked from the channel.
          halt
        }
        if $2 > 155 && $2 < 167 {
          did -ra InvisMain 1502 Kick on trades when enabled will work to enforce no trading in the channel. It will trigger on such words as *trade*, *reward*, etc. The system will track users and start off by just kicking and warning them until the set amount is reached and from then on will kick and ban the offender upon violation. By default the warning count setting is set to 3. So after 3 warnings the offender from that point on will be banned on offense. These accumulations are clear at script start up. 
          halt
        }
        if $2 > 175 && $2 < 187 {
          did -ra InvisMain 1502 Banning of Domain when enabled will cause a domain ban to be set in the event that multiple joins in the number set from those of a common domain are made over the time frame occur. This is usually the case when someone attempt to join a bunch of clones and/or bots in an effort to takeover or simply flood a channel and/or individual. 
          halt
        }
      }
      if $1 > 290 && $1 < 545 {
        if $2 > 53 && $2 < 65 {
          did -ra InvisMain 1502 Bitchmode when enabled will govern op status in the channel. Anyone opped in the channel that is not in your list as at least a bot or higher and has that channel listed in there User Lists Manager profile will automatically be deopped. Only those recognized and qualified will be allowed to remain opped. This feature would naturally require you to maintain an up to date User List of at least Bots and Fellow Ops.
          halt
        }
        if $2 > 73 && $2 < 85 {
          did -ra InvisMain 1502 Deop on Mass Deops when enabled will deop/kick and op that starts mass deopping or kicking people in the channel that is not recognized as a bot or higher in the User Lists. Those recognized will be not be effected.
          halt
        }
        if $2 > 93 && $2 < 105 {
          did -ra InvisMain 1502 Allow Op All Fellow Ops option when enabled will add the "Op all Fellow Ops" Option to the NickList popup menu which allows you to op all recognized Bots or higher that are not already opped in one simple click.
          halt
        }
        if $2 > 135 && $2 < 147 {
          did -ra InvisMain 1502 Ban on flood adds banning action to the Kick on flood option. 
          halt
        }
        if $2 > 155 && $2 < 167 {
          did -ra InvisMain 1502 Kick and ban on Nick Flood. This will cause anyone that is not a recognized friend or higher that changes there nick more then 3 times in a short amount of time to be kicked and banned.
          halt
        }
        if $2 > 175 && $2 < 187 {
          did -ra InvisMain 1502 Banning of Domain when enabled will cause a domain ban to be set in the event that multiple joins in the number set from those of a common domain are made over the time frame occur. This is usually the case when someone attempt to join a bunch of clones and/or bots in an effort to takeover or simply flood a channel and/or individual. 
          halt
        }
      }

      if $1 > 270 && $1 < 545 {
        if $2 > 218 && $2 < 230 {
          did -ra InvisMain 1502 Wallop Explaination of Actions when enabled will send a notice to all the other ops about you what defensive action you took and why. 
          halt
        }
        if $2 > 238 && $2 < 250 {
          did -ra InvisMain 1502 Learn New Channel Keys - With this enabled you will auto adapt to new keys set by those in you User Lists as a bot or higher for that channel. So if you are enforcing the +k key to something and a recognized bot or Fellop changes the key then you will now enforce that key. If a bot/fellow op does a -k and doesnt set a new key then you will enforce -k until you or another bot/fellow op sets one. I recommend you use this and keep your User Lists up to date if you plan to enforce +k.
          halt
        }
        if $2 > 258 && $2 < 292 {
          did -ra InvisMain 1502 Allow Remote Control - This will allow others that know your channel ops password to turn on and off indivual features of channel defense in the event that you are /away. Only those in your Fellow Ops list that have the remote control flag set in the User List Manager can access this even if they do know the password. To see a list of comands a Fellow Op can do a /ctcp <yournick> Help to you and get a list of all the commands and there syntax.  
          halt
        }
        if $2 > 302 && $2 < 338 { 
          did -ra InvisMain 1502 Maintian Channel Occupancy - This will maintian the limit (+l) of the channel. You can specify the interval to how often it ajust the limit as well as to how much.
          halt
        }
        if $2 > 342 && $2 < 376 {
          did -ra InvisMain 1502 Moderate and Lockdown under multifloods - In the event that there are a lot of actions being taken such as kicks and bans by not just you but other ops this will react by temporarily locking down the channel. During this time the channel is made invite only, moderated, secrete, and so on. The topic is changed to what is happening. After the time you specify is up it will restore all previous modes and the topic. You can specify the amount of time for lockdown and the sensitivity as well. I recommend you keep lockdown times 1 or 2 minutes.
          halt
        }
      }
      if $2 > 380 && $2 < 392 {
        if $1 > 270 && $1 < 387 {
          did -ra InvisMain 1502 This will let you +v (voice) people automatically when they run an Fserve Ad.
          halt
        }
        if $1 > 397 && $1 < 498 {
          did -ra InvisMain 1502 This will let you +v (voice) people automatically when they run an FTP Ad.
          halt
        }
      }
      if $2 > 402 && $2 < 414 {
        if $1 > 270 && $1 < 397 {
          did -ra InvisMain 1502 This will let you +v (voice) people automatically when they run an XDCC Ad.
          halt
        }
        if $1 > 397 && $1 < 498 {
          did -ra InvisMain 1502 This will let you +v (voice) people automatically when they run an mp3 Ad.
          halt
        }
      }
      if $1 > 9 && $1 < 242 && $2 > 200 && $2 < 274 {
        did -ra InvisMain 1502 Channel Modes - Here you can choose which channel modes you wish to enforce or not enforce. You can set them either + or - or click the UNSET button to not enforce it either way. Select the mode in the list and then click either + or - for that mode. IMPORTANT! MAKE SURE YOU HAVE THE CORRECT CHANNEL selected in the channel list below or you will be setting the mode as default or possible the wrong channel. WHEN SETTING +K enter the KEYNAME FIRST then click +. if you click + first you can always enter the keyname and just click on + again to set it.
        halt
      }
      if $1 > 9 && $1 < 242 && $2 > 280 && $2 < 395 {
        did -ra InvisMain 1502 Channels Effected - Here you can choose which channels you wish to enforce or not enforce. All settings on this tab are unique for each channel in the list. Select the channel FIRST before making any other changes. IMPORTANT! you may need to reselect the channel in the list after clicking the APPLY button. 
        halt
      }
    }
    elseif %tab == 9 {
      if $1 > 9 && $1 < 298 && $2 > 34 && $2 < 183 {
        did -ra InvisMain 1502 Time Stamp - This section should be self explanitory by what it say in the box. This effects the time stamps for most of the script functions.
        halt
      }
      if $1 > 9 && $1 < 298 && $2 > 185 && $2 < 213 {
        did -ra InvisMain 1502 Update IAL on Channel Join: This enabled has been the normal operation for all prior invision releases before 2.0 Build 2020. Some people reported having problems connecting to large channels though do to this operation so it is now user optional. Although numerous alterations have been made to make this operation not necessary you might want to try enabling it if you are experiencing undesirable performance of other features. 
        halt
      }
      if $1 > 9 && $1 < 585 && $2 > 219 && $2 < 257 {
        did -ra InvisMain 1502 WinAmp Directory - This should be set to your WinAmp Plugin directory if you plan to use Winamp support for mp3 playback. If it is not set correctly then it wont play.
        halt
      }
      if $1 > 9 && $1 < 585 && $2 > 262 && $2 < 298 {
        did -ra InvisMain 1502 BlackIce Directory - This should be set to your BlackIce directory if you plan to use BlackIce support and you have BlackIce installed as your firewall. If it is not set correctly then it wont work.
        halt
      }
      if $1 > 9 && $1 < 204 && $2 > 303 && $2 < 361 {
        did -ra InvisMain 1502 Messenger Mode - This is where you can set how the messenger mode will attempt to deliver your messages you have sent through the User List Manager. If set to Join mode then it will msg them about the message waiting when then join the channel. If set to Text mode (prefered) then it will notify them when they say something in the channel. It will only notify them once every 2hrs not over and over every time they say something. Same for join mode.
        halt
      }
      if $1 > 9 && $1 < 204 && $2 > 367 && $2 < 419 {
        did -ra InvisMain 1502 !Seen Tracking - Here you can set who you want the Seen Engine to track. Friends or higher will track just those in your user lists as a friend or higher. Everyone is just that.. EVERYONE. if you are in a lot of large channels and the channels are very active you may not want to use this mode.
        halt
      }
      if $1 > 217 && $1 < 585 && $2 > 303 && $2 < 361 {
        did -ra InvisMain 1502 Halfops Support - This is where you can set networks in which full halfop support will be enabled. To add the current network you are on the box that has the Current Network name has to be something other then unknown. Unknown networks cannot be added. If you are on a network that you are sure supports halfops but shows up unknown you can check force box to enable it.
        halt
      }
      if $1 > 242 && $1 < 480 && $2 > 379 && $2 < 394 {
        did -ra InvisMain 1502 Do not scan local drives is an option you can set which will prevent the scanning for local drives when the File Server Explorer initiates upon connecting to an Fserve. This maybe necessary in some cases where you have networked or detachable drives which make the explorer stall for long periods and in some cases timing out the Fserve Connection..
        halt
      }
      if $1 > 220 && $1 < 586 && $2 > 395 && $2 < 415 {
        did -ra InvisMain 1502 Nick tag is where you can customize the invision nick tag used when you either do a nick: in the edit box or when you have DblClk Respond enable and then double click on a nick giving you the tag response prompt "/>" in the editbox. Use "nick" where you want the nick to appear in the tag and if you want to use a comma character you need to use $chr(36) $+ chr(44) instead. An example would be " $chr(36) $+ + nick $chr(36) $+ +  $chr(36) $+ + $chr(36) $+ chr(44)" without the quotes. This would produce a nick tag with the nick in Bold followed by a comma. The block character is Ctrl + B for bold
        halt
      }
      ;  did -ra InvisMain 1502 $1 $2
    }
  }
}
alias AwayHelp {
  if $dialog(AwayMgr).title != $null {
    var %tab = $dialog(AwayMgr).tab
    if %tab == 1 {
      if $1 > 20 && $1 < 297 && $2 > 40 && $2 < 98 {
        did -ra AwayMgr 1502 The Away nick if one is set will be used when you are in /away mode. When you come back out of away mode it will revert back to what it was before provided the nick is available. A common practice would be something like cRYOa_Awy for someone that went by cRYOa normally.
        halt
      }
      if $1 > 311 && $1 < 580 && $2 > 46 && $2 < 280 {
        did -ra AwayMgr 1502 The Active Channels section is where you can set which if not all channels you want the away system to be (or not to be) active in. If you set the channel mode to "include" mode then all channels specified will be active to the away system. This includes things like the Auto Away Messages to the channel(s). If you choose "Exclude" mode then it will function just the opposite in that all channels specified will not be active and they will not be sent any away type messages. This is good for channels that appreciate you informing them of your away status at any time.
        halt
      }
      if $1 > 312 && $1 < 438 && $2 > 287 && $2 < 343 {
        did -ra AwayMgr 1502 Away Message is where you can enable a repeating timed away message informing the channel(s) that you are currently away as well as how long you have been away and wether or not your pager is on.
        halt
      }
      if $1 > 451 && $1 < 580 && $2 > 287 && $2 < 343 {
        did -ra AwayMgr 1502 Auto Away when enabled will automatically put you in away mode when you have been idle the amount of time you have set. 
        halt
      }
      if $1 > 20 && $1 < 580 && $2 > 350 && $2 < 393 {
        did -ra AwayMgr 1502 Personal Auto Away Message when enabled will use the message you enter here instead of the default "<Nick> is AFK" Message. For example you might want to put something more personal such as "passed out again" or something more to your liking. =)
        halt
      }
      if $1 > 50 && $1 < 200 {
        if $2 > 123 && $2 < 135 {
          did -ra AwayMgr 1502 Messages to a single Window when away will cause messages sent to you to be sent to the single message window rather then a seperate window like normal. If you normally use the Single Message Window option in mIRC Options anyway then this doesn't really matter since they would go there anyway. This just allows you to channel them there only when your /away.
          halt
        }
        if $2 > 143 && $2 < 155 {
          did -ra AwayMgr 1502 Deop in channels when away will cause you to automatically deop yourself in all channels you are opped in when you enter away mode.
          halt
        }
        if $2 > 163 && $2 < 175 {
          did -ra AwayMgr 1502 Auto Reply when enabled will send your away message in the event someone private messages you or trys to dcc you. 
          halt
        }
        if $2 > 183 && $2 < 195 {
          did -ra AwayMgr 1502 Turn on Pager & Logger will do just that. It will turn on the pager if not already on and log pages sent to you while you are away.
          halt
        }
        if $2 > 203 && $2 < 215 {
          did -ra AwayMgr 1502 Auto Refuse DCC Chats will refuse and dcc chats that people try and initiate while you are in away mode.
          halt
        }
        if $2 > 223 && $2 < 235 {
          did -ra AwayMgr 1502 Display Away Message on Nick Use. This will cause the Away Message to be annouced in the event someone uses your nick in a channel you are on. The Away Message will only be displayed in the channel it was said on. It will only annouce the away message at most once every 3 min. So if someone is using your nick repeatedly it will not spam the channel to death.
          halt
        }
      }
    }
    if %tab == 2 {
      did -ra AwayMgr 1502 Here you can create your own custom away messages.The description is what will appear in your Set Away Menus. The Message is what will be the actual away message set. 
    }
  }
}
