[Tutorial] Writing HTML files on mIRC. Lesson 1
 
Post new topic   Reply to topic    Hawkee.com Forum Index -> mIRC Tutorials
 
LucSatise  -  Sat Feb 02, 2008 11:25 am Reply with quote
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

Code
 


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.
Code
 

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:
Code
 

Lets Break this down.

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:
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.


Last edited by LucSatise on Sat Mar 01, 2008 9:18 am; edited 1 time in total
Mpdreamz  -  Tue Feb 05, 2008 12:51 am Reply with quote
you could use the -c switch on the first write. Could use some more examples as to why its useful to write HTML through mIRC (dynamic content).
LucSatise  -  Tue Feb 05, 2008 3:52 am Reply with quote
i know there was a switch just culdn't remember.

I wrote this page with mIRC:

Click Here

Its recording all the users on the specific channel and uploading it.
mountaindew  -  Tue Feb 05, 2008 12:52 pm Reply with quote
you might wanna include in this tutorial about how you can upload files to your server via script also (.bat files and cmd i believe)
Freckle  -  Sat Feb 16, 2008 6:30 am Reply with quote
Typo:

Alis VHTML {
run Hello.html
}

Alias VHTML {
run Hello.html
}
Display posts from previous:   
Post new topic   Reply to topic    Hawkee.com Forum Index -> mIRC Tutorials All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.