|
Joined: Jun 2003
Posts: 40
Ameglian cow
|
OP
Ameglian cow
Joined: Jun 2003
Posts: 40 |
I want to make mirc open a browser and refresh the page every 10 seconds, I know it has something to do with nHTMLn.dll and I have that file. Although I have the file I am not sure how to make it do what I want, if you could help me I will appreciate it very much so. ~rpg~
|
|
|
|
Joined: Dec 2002
Posts: 1,922
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,922 |
nHTMLn.DLL comes with a nice html documentation. Here's an example that opens yahoo.com and refreshes the page every 30 seconds: //window @@ | dll $nhtmln attach $window(@@).hwnd | dll $nhtmln navigate w[/i]ww.yahoo.com | .timerREFRESH 0 30 dll $nhtmln refresh
($nhtmln is a custom identifier that returns the path to nHTMLn.dll. I recommend you to use it this way.)
|
|
|
|
Joined: Feb 2004
Posts: 201
Fjord artisan
|
Fjord artisan
Joined: Feb 2004
Posts: 201 |
Where do ya get this dll from?
|
|
|
|
Joined: Dec 2002
Posts: 1,922
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,922 |
|
|
|
|
Joined: Feb 2004
Posts: 201
Fjord artisan
|
Fjord artisan
Joined: Feb 2004
Posts: 201 |
Cheers Mate!
|
|
|
|
Joined: Jun 2003
Posts: 40
Ameglian cow
|
OP
Ameglian cow
Joined: Jun 2003
Posts: 40 |
NVM I got it fixed. Thanks lots.
Last edited by rpg_gamer; 02/03/04 11:50 AM.
|
|
|
|
Joined: Mar 2003
Posts: 187
Vogon poet
|
Vogon poet
Joined: Mar 2003
Posts: 187 |
the help file is very simple, in fact i havent come across a hard help file yet. <name calling deleted by moderator>
<moderator note: there's no need for name calling and insults, please use common courtesy here>
Last edited by ParaBrat; 07/03/04 05:48 AM.
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
in fact i havent come across a hard help file yet.
Oh well excuse the rest of the human race for not meeting your exceptional standards.
|
|
|
|
Joined: Mar 2003
Posts: 187
Vogon poet
|
Vogon poet
Joined: Mar 2003
Posts: 187 |
I cant remember what name-calling I used now =\ oh well.
"Oh well excuse the rest of the human race for not meeting your exceptional standards. "
No seriously, people who write help files make them very simple, and easy to understand, I know this because I have written .hlp s myself. There is nothing hard about the mIRC help, MDX help, nHTMLn help, DmU help, any help file I have come across is very easy for the user to understand. How it is challenging, someone has yet to explain to me. It's laziness on the users part to actually read the documentation is what it is.
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
You called the other user a moron which does nothing to promote the advantages of help forums whether they are message boards, help rooms, email service or whatever. If helpers are to be trusted and appreciated then some of them need to lose the "I'm God" attitude and appreciate that some people either find English difficult to understand or help files, which are hardly ever written in a layman's version of English, difficult to understand.
I have written help files, tutorials, help pages on websites (including my own) and have been an oper for a number of years on the IRC network I use. At no stage did I need to call someone a moron because they required me to elaborate on instructions/assistance.
Some people find it difficult to ask others for help - it's either embarrassing for them or they may lack the communications skills to ask the question without looking stupid, especially in this computerised world we live in, where knowing little or nothing about computers renders one liable to be placed in a knowledge underclass by those that think they know it all.
For all you know the user may have read the help file that came with Necroman's DLL, or the user may have got the DLL from a script instead of the official download and therefore may not have come with the help file - the user didn't mention either way. The DLL has come with my script for at least three years and I don't include the help file with it as I include all the functions required as part of the script.
If the user does have the help file, it's not a crime to remind them of this fact but you could have been far more dimplomatic about it, even if only noting what I said in the first paragraph.
|
|
|
|
Joined: Jun 2003
Posts: 40
Ameglian cow
|
OP
Ameglian cow
Joined: Jun 2003
Posts: 40 |
Another problem, I erased my hard drive and now I have everything downloaded and put back the way it was before. But now it won't show the graphics. If you know how to fix this, post. Thanks in advance.
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
You mean the images from a website won't show in mIRC? Not sure why as I tried a few ways of breaking my alias and nothing gave me an image-free site. Try this in your alias file and see if it works. (Don't forget to change the filepath to the DLL, and of course the homepage) ie {
window -ak0p @Browser 0 0 800 600
var %bs.bs $dll(nHTMLn.dll,attach,$window(@Browser).hwnd)
var %bd.bd $dll(nHTMLn.dll,navigate,http://iserv.com.au/)
}
|
|
|
|
Joined: Mar 2003
Posts: 612
Fjord artisan
|
Fjord artisan
Joined: Mar 2003
Posts: 612 |
No seriously, people who write help files make them very simple, and easy to understand you wanna read the turbo pascal help file. I have been trying to use that for ages but its not as clear as you would hope, this is one of the main reasons i script in mIRC, fantastic help files.
billythekid
|
|
|
|
Joined: Jun 2003
Posts: 40
Ameglian cow
|
OP
Ameglian cow
Joined: Jun 2003
Posts: 40 |
I think I have everything in order and I'm trying to get it working again after my wipe, so I type //window @@ | dll $nhtmln attach $window(@@).hwnd | dll $nhtmln navigate www.yahoo.com | .timerREFRESH 0 30 dll $nhtmln refresh in the bar and press enter and it says: * /dll: unable to open 'C:\Program Files\mIRC\attach' What is the problem, I have tried renaming the file cause it was nhtml_2.9.dll or something like that and I thought it might not recognize it, but that didn't help any, if anyone could figure this out I'd appreciate it very much so. Thanks in advance.
|
|
|
|
Joined: Jul 2004
Posts: 169
Vogon poet
|
Vogon poet
Joined: Jul 2004
Posts: 169 |
maybe your script should be in dir that dont contain spaces (Program Files)... why just not use \Script\subfolder\... with no spaces... imo
|
|
|
|
Joined: Jun 2003
Posts: 40
Ameglian cow
|
OP
Ameglian cow
Joined: Jun 2003
Posts: 40 |
that doesn't seem to work....is there something I need to add in my remotes or aliases or anything like that? I really wish I could get this working again.
|
|
|
|
Joined: Jun 2003
Posts: 40
Ameglian cow
|
OP
Ameglian cow
Joined: Jun 2003
Posts: 40 |
I got the thing fixed with the error, but now when I open it, the screen of that box where it's supposed to display the internet page, it is only a brownish color and it seems to be loaded when I mouse over things it changes like I can click it, but I still have no graphics... How do I fix this? thanks to anyone who knows it.
|
|
|
|
Joined: Dec 2002
Posts: 1,922
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,922 |
Try to open a picture window: /window -p @@
If that doesn't help, paste all your code so we can try it ourselves.
|
|
|
|
Joined: Jun 2003
Posts: 40
Ameglian cow
|
OP
Ameglian cow
Joined: Jun 2003
Posts: 40 |
{ window -ak0p @Browser 0 0 800 600 var %bs.bs $dll(nHTMLn.dll,attach,$window(@Browser).hwnd) var %bd.bd $dll(nHTMLn.dll,navigate,http://iserv.com.au/)}
got that in alias, using the nhtmln.dll in my mirc folder, and alias nhtmln { return nHTMLn.dll}
that in remotes.
Do I need anything else?
|
|
|
|
Joined: Jun 2003
Posts: 40
Ameglian cow
|
OP
Ameglian cow
Joined: Jun 2003
Posts: 40 |
Nevermind, I got it running again. Thanks anyways.
|
|
|
|
|