mIRC Homepage
Posted By: pod2oo5 nHTMLn - 11/01/03 05:15 PM
i need a progress bar & back forward stop refresh useing NHTMLn.dll
and a status bar... i only know how to do the browser...i have read the manual over and over...can anyone please help me???
Posted By: Zmodem Re: nHTMLn - 12/01/03 04:13 AM
The back, forward stop and refresh are ALL documented for nHTMLn. As for the progressbar, I would suggest two solutions:

1.) Wait for mIRC to support it.
2.) Create your own by using 10-50 icon sets on a dialog. Then, increase them based on the page load percentages. It can be done, I've done it myself.
Posted By: Online Re: nHTMLn - 12/01/03 04:26 AM
Are you sure you have the latest reference of nhtmln.dll? Because here it states clearly how to use the back/forward/etc funtions. it can be downloaded here.

Here's an example:
Code:
dialog test {
  size -1 -1 400 400
  box "test", 1, 5 5 390 390
}
on *:dialog:test:init:0:{
  var %hwnd = $dll($nhtmln,find,test)
  dll $nhtmln attach %hwnd
  dll $nhtmln navigate www.mirc.com
  .timer 1 5 dll $nhtmln refresh 0
}

Open the dialog, let lt to load, and after 5 seconds the page will be refreshed.

The 0 parameter after the word 'refresh' is ignored by the dll, so you can put there whatever you want. instead of 'refresh' you can put 'back', 'forward', 'stop', 'search' or 'home'.
© mIRC Discussion Forums