Okay in this Tutorial we are going to Make a Basic HTML file called Hello.html using mIRC Scripting.
Okay open up mIRC and press [ALT] + [R].
If you are not lookng at remotes click the Remotes Tab.
If it isn't empty goto file > new
Ok the first thing to do is to make the Alias for the HTML loader
Typing /html will not do anything at the moment but by the end of this lesson it should, hopefully, make a HTML file, and tell you it has.
Before we make the HTML file we want an Alias to run it.
Add this below the bit you added before. All this does is once the HTML file has been made, it will open that file.
Creating the HTML File
Ok you remember the first alias we added?
Change it to the following:
Lets Break this down.
Quote
alias HTML {
remove Hello.html
write Hello.html <html><head><title>Hello</title></head><body>
}
Red: This states that we are making an alias where you can type /command.
Bold: Name of the alias. In this case you type /HTML
Blue: mIRC Command.
Green: Name of File.
Italics: HTML Tags.
the remove Command removes any existing file we already have to make sure that the same information is not written twice =].
the write command writes anything after it to the file specified in green, Hello.html
Now type /VHTML and a Internet window will open and you will see a blank page.. BUT... Look at the title bar and you will see it says "Hello".
Lets add information to the Page.
Change the HTML alias to:
Quote
alias HTML {
remove Hello.html
write Hello.html <html><head><title>Hello</title></head><body>
Write Hello.html Hello World
Write Hello.html</body></html>
}
Now we have a full web page. When you type /VHTML it will load up a window that says Hello =]
Experiment on usign different HTML tags and adding more information. I'l give more examples in the next making HTML tutorial.