HTML Viewer
mIRC Code
+ 2 likes
Please Register to submit score.
| Average Score | 5.2 (of 9 scores) |
| Date Added | Sep 25, 2008 |
| Last Updated | Sep 29, 2008 |
| Tags | dialog dialogs html mirc script socket sockets viewer |
Introduction

First off, thanks to Lindrian for helping me with the html.search alias. $didwm and $didreg on their own were being kinda gay, but whatever.
--------------------------------------
NOTICE
--------------------------------------
This script is probably useless for a lot of people, but it can come in great use when someone is say, making a socket script. If you have no use for this, please don't post stating so.
--------------------------------------
Put this in your remotes and type /html.
This is the HTML Viewer I made, seeing as I've learned sockets now, I decided to make something around HTML itself. Pretty original idea, that's what I wanted, and I don't think I've seen one of these before.
What this does is view the HTML of the site that you put into the dialog. I can see a hell of a load of posts coming my way on "how do I use this?", so let me clarify.
Steps:
1) Get a website you want to use (obviously).
2) In the HOST edit box, put the host. So whatever site you are using, this is the main bit. For example, if I were to search anywhere in hawkee, the host would be: www.hawkee.com. Basically, put whatever is in your internet browser before any subdirectories of the site, excluding the http://
3) Choose the socket name. Not that this really matters.
4) Input the directory. Example: if I was viewing http://www.hawkee.com/profile/img/2158/, I would put /profile/img/2158/ as the directory.
5) Choose your port. If you're using this script you should know what you're doing. If you don't by any chance, use 80, as it's usually the best.
6) Choose your HTTP protocol. Not much difference between them really.
7) Press OK.
Woo! Now you've loaded some HTML into the viewer. Obviously, you're gonna want to be able to have edit options to ease your use.
Features:
;Search
A really good option. If you need to find some text, use this! You can also search with regex, which is a neat option too.
;HTMLFREE
This strips what's in the list of its HTML.
;Clear
Um.. no explanation needed. :/
;Del Numbers
This deletes any added numbers (see Add Numbers).
;Add Numbers
This adds line numbers to the HTML so you can easily find what you're looking for.
;Clipboard
Copies the selected line to your clipboard for pasting.
Suggestions and feedback would be much appreciated. Enjoy!
mIRC Snippet:
HTML Viewer
Posted on Sep 25, 2008 12:48 pm
Posted on Sep 25, 2008 12:48 pm
Update: 25/9/08
Added socket error checking and added loads of $input. Also made the search function disable and enable the buttons according to text.
Added socket error checking and added loads of $input. Also made the search function disable and enable the buttons according to text.
mIRC Snippet:
HTML Viewer
Posted on Sep 25, 2008 1:05 pm
Posted on Sep 25, 2008 1:05 pm
When I get around to it, i'll help you improve it! :P
I still have a bunch of ideas and even more improvements in mind now!
You know where to find me bud ;)
I still have a bunch of ideas and even more improvements in mind now!
You know where to find me bud ;)
mIRC Snippet:
HTML Viewer
Posted on Sep 25, 2008 1:07 pm
Posted on Sep 25, 2008 1:07 pm
A note to add (just from looking at the image), HTML should be coded with lowercase tags. i.e.
<li>
rather than
<LI>
<li>
rather than
<LI>
mIRC Snippet:
HTML Viewer
Posted on Sep 25, 2008 1:15 pm
Posted on Sep 25, 2008 1:15 pm
Woops! Yeah, I just noticed that the screenshot I took was of an error because that site uses a script that won't let me access the true HTML. Sorry about that, I'll get another screenshot.
Also, about the caps thing. Other sites DO show in lowercase, as far as I've tested.
Also, about the caps thing. Other sites DO show in lowercase, as far as I've tested.
mIRC Snippet:
HTML Viewer
Posted on Sep 25, 2008 1:18 pm
Posted on Sep 25, 2008 1:18 pm
XHTML is all uppercase..
I perfer to use lowercase tbf. But anyways, nice one Nips
7/10
Just fyi; port 80 is the http port. others like 8080 is generally a streaming port. but im not that good on servers/ports so dont ask me for more info :P
I perfer to use lowercase tbf. But anyways, nice one Nips
7/10
Just fyi; port 80 is the http port. others like 8080 is generally a streaming port. but im not that good on servers/ports so dont ask me for more info :P
mIRC Snippet:
HTML Viewer
Posted on Sep 25, 2008 1:20 pm
Posted on Sep 25, 2008 1:20 pm
Just updated the screenshot to the exact same page we're on right now. You can see that it's now in lowercase.
mIRC Snippet:
HTML Viewer
Posted on Sep 25, 2008 1:23 pm
Posted on Sep 25, 2008 1:23 pm
Er, never used anything like it before, so how could I retrieve the IP/DNS of the currently socketing site? I could add it in as a 'lil extra feature.
mIRC Snippet:
HTML Viewer
Posted on Sep 25, 2008 1:28 pm
Posted on Sep 25, 2008 1:28 pm
mIRC Snippet:
HTML Viewer
Posted on Sep 25, 2008 1:46 pm
Posted on Sep 25, 2008 1:46 pm
Oh my bad :P other way round xDxD. I take it back, sorry.
mIRC Snippet:
HTML Viewer
Posted on Sep 25, 2008 3:21 pm
Posted on Sep 25, 2008 3:21 pm
Er, what's with the suddenly-gone-quite-low rating?
Can people actually explain themselves?
Can people actually explain themselves?
mIRC Snippet:
HTML Viewer
Posted on Sep 25, 2008 3:22 pm
Posted on Sep 25, 2008 3:22 pm
I voted 7 mate.. i'll probably boost it to 10 to increase. i hate people who rate w/o explination. :|
mIRC Snippet:
HTML Viewer
Posted on Sep 25, 2008 3:24 pm
Posted on Sep 25, 2008 3:24 pm
The thing I can't stand is when people rate out of jealously. :<
If this script is of no use to you, please don't rate.
If this script is of no use to you, please don't rate.
mIRC Snippet:
HTML Viewer
Posted on Sep 25, 2008 3:27 pm
Posted on Sep 25, 2008 3:27 pm
| Code: |
if (!$did(4).text) { did -b $dname 5 } else { did -e $dname 5 } |
I'd use $iif there
| Code: |
did $iif($did(4).text,-e,-b) $dname 5 |
mIRC Snippet:
HTML Viewer
Posted on Sep 25, 2008 4:51 pm
Posted on Sep 25, 2008 4:51 pm
You should just have a single field for the domain, directory and port. Just parse the URL and pull apart the values yourself. It's much easier for somebody to paste a URL than break it apart themselves.
mIRC Snippet:
HTML Viewer
Posted on Sep 25, 2008 5:04 pm
Posted on Sep 25, 2008 5:04 pm
I think I'll do that.
Although you can't pull a port to use.
Although you can't pull a port to use.
mIRC Snippet:
HTML Viewer
Posted on Sep 25, 2008 5:05 pm
Posted on Sep 25, 2008 5:05 pm
if its of no use.....
/me rates 3
^_^
and no I havnt actually rated yet ;@
/me tests
/me rates 3
^_^
and no I havnt actually rated yet ;@
/me tests
mIRC Snippet:
HTML Viewer
Posted on Sep 25, 2008 5:09 pm
Posted on Sep 25, 2008 5:09 pm
| Code: |
Although you can't pull a port to use. |
I guess you could do "http://www.somesite.com/something.html:80". But it'd probably be better to just leave the port field.
mIRC Snippet:
HTML Viewer
Posted on Sep 25, 2008 5:14 pm
Posted on Sep 25, 2008 5:14 pm
You do the port like this: http://www.hawkee.com:80/snippets/ but the default should just be 80 if it's not in the URL.
mIRC Snippet:
HTML Viewer
Posted on Sep 25, 2008 5:57 pm
Posted on Sep 25, 2008 5:57 pm
well ill use this,
excellent work neptune,
very handy
excellent work neptune,
very handy
mIRC Snippet:
HTML Viewer
Posted on Sep 25, 2008 6:20 pm
Posted on Sep 25, 2008 6:20 pm
thats one f&(@#$ dialog =/
mIRC Snippet:
HTML Viewer
Posted on Sep 25, 2008 7:39 pm
Posted on Sep 25, 2008 7:39 pm
What ever happened to good ole /echo -s r: %read
mIRC Snippet:
HTML Viewer
Posted on Sep 26, 2008 2:07 am
Posted on Sep 26, 2008 2:07 am
Hmm, OK. I'll work on that after school.
By the way, are ALL website ports 80?
By the way, are ALL website ports 80?
mIRC Snippet:
HTML Viewer
Posted on Sep 26, 2008 9:47 am
Posted on Sep 26, 2008 9:47 am
Just about all of them are on port 80. The only time you'll see a different port is on a secure connection like cpanel or webmail.
mIRC Snippet:
HTML Viewer
Posted on Sep 26, 2008 10:35 am
Posted on Sep 26, 2008 10:35 am
/me agrees with Napa
mIRC Snippet:
HTML Viewer
Posted on Sep 29, 2008 1:11 pm
Posted on Sep 29, 2008 1:11 pm
Sorry about parsing the address in one line, I just really haven't gotten around to do it. Although, the HTML now has spaces and isn't bunched up to the left. Not gonna bother with updating the pic.. you should know what indented HTML looks like :>
mIRC Snippet:
HTML Viewer
Posted on Jan 30, 2009 10:27 am
Posted on Jan 30, 2009 10:27 am
Change the box from a listbox to a rich edit box. That way, all of the emphasis on the spaces will be saved, ie: indentations.
mIRC Snippet:
HTML Viewer
Posted on Mar 14, 2009 9:39 pm
Posted on Mar 14, 2009 9:39 pm
all right lets see where to begain....
1. for those of you who have problem with html being in upper case. sorry it does not matter html can be in both cases and still be valid code with w3c validator
2. As for the purpose of the script i love. I am a html code for Freecode Team so i very much like this. because i have those times when i am chatting with the rest of freecode and going back and forth to our dev site looking at the source. good job!
3. sorry neptune but indented html is very messy. i think u should have left it the way the page is coded. but thats just me so not taking any rating points off for tht :p
4. the mirc code itself it nice. think it could go into a .mrc file but this works too.
5. ur score is 7
1. for those of you who have problem with html being in upper case. sorry it does not matter html can be in both cases and still be valid code with w3c validator
2. As for the purpose of the script i love. I am a html code for Freecode Team so i very much like this. because i have those times when i am chatting with the rest of freecode and going back and forth to our dev site looking at the source. good job!
3. sorry neptune but indented html is very messy. i think u should have left it the way the page is coded. but thats just me so not taking any rating points off for tht :p
4. the mirc code itself it nice. think it could go into a .mrc file but this works too.
5. ur score is 7
mIRC Snippet:
HTML Viewer
Posted on Mar 18, 2009 5:11 pm
Posted on Mar 18, 2009 5:11 pm
Yea, the main concern should be to change the source output edit box to a 'rich' type editbox, that way the indentations will be left alone.














