Challenge: Work with the new mIRC 7.15 and use its scripting engine to create an HTML web server script.
mIRC is by far one of the most popular IRC chat clients on the planet. With millions of downloads and hundreds of thousands of "scripters" world-wide it is a great application for chatting with friends, sharing files with them and participating on multiple networks from around the world. I personally have used it for over 13 years.
Using mIRC's uber cool scripting engine, scripters can easily build utility scripts for doing everything from simple "Hello World" scripts to advanced scripts with networking features, binary data manipulation, file handling or even executing dlls written in other languages.
Your challenge is to download the mIRC chat program from the mIRC Download link, install and connect to a network. Then from the "Scripts editor" (fifth icon from the left on the toolbar) code up a basic web server for serving static HTML content. You can test it by opening up a browser and trying to fetch documents using your loopback IP address (127.0.0.1) or your internal network IP. To allow others to access it, make sure you configure your firewalls to let requests through and that they can access your IP from the outside.
To get you started learning the language, try selecting the mIRC .chm file that comes with the program's exe. In there you will find a comprehensive list of commands, events and functions they call "aliases". You will find mIRC: Help Resources also very useful for learning various program features and general Internet information that you can use with your scripts. At www.mirc.com you will also find a helpful community of scripters who have been playing with the language for years (some even over a decade).
To show you how easy it is, try entering the following alias into your scripts editor under the "Remote tab"...
alias hello.world {
echo -a Hello World!
}
Then in any mIRC window type /hello.world to see your "Hello World!" message appear on screen.
Other types of scripts you can experiment with and make are:
* Away script which lets other chatters know you are away, will accept messages and logs them, then lets you return showing how long you have been gone.
* A script they refer to as a "Talker" which allows you to write in rainbow colors, highlight nicknames etc.
* The ever popular Mp3 Player which allows you to play music files on your computer and tells others what music you are playing.
* Operator tools for making channel management easier and kicking or banning trouble makers
* ASCII art player for showing ASCII made art in the channel for others to see
* A channel bot for maintaining your channel, welcoming users or even serving them fantasy drinks through the channel.
* A script which reads the weather for people who type out their area code and echos the content into the channel or privately.
* An RSS reader which reads subscription news to channels you are on.
Resources:
* mIRC Homepage
* mIRC.net which has tutorials and scripts
* mircscripts.org (Great place to find the latest in scripts)
* mIRC Scripting Help Forum
How To Get Started:
Download the program from mIRC.com - Download Page, install it and join any of the IRC networks listed in the program or join friends on their IRC networks. You can find some people from DIC on the irc.geekshed.net network in #dreamincode. But once you install the program, you have full access to the scripting features and don't have to have any extra libraries or anything. You are not limited to making chat related scripts either. You can make all sorts of utilities with dialogs, windows, pictures, graphics, music and more. It is also a great way to get into programming and teach you some of the basics which are related to all sorts of programming languages.
An example script will be provided by me soon after the challenge has been posted for awhile. If I haven't posted something within 2 weeks after this post is "Officially posted" then just ask me. I already have the example coded and I can simply post it. Post your scripts/scriptlets for the world to see!
Thanks!
Martyr2 (DIC Mentor)

New Topic/Question
Reply





MultiQuote






|