mIRC Homepage
Posted By: HobophobE URL Catcher autocomplete - 29/09/04 05:00 AM
While I realize you could probably accomplish an autocompletion script to utilize urls from the URL catcher, it would not be that easy. The ultimate solution would be some sort of amalgamation of the url catcher and (at least) your default browser's autocomplete url cache, but this would require a .dll for a script. Basically, my feature suggestion is to add autocomplete to encompass the URL Catcher. I realize this has been suggested for aliases and identifiers before, and probably for the system's hard drive directory structures, but I feel like mIRC could still benefit from an expanded autocomplete feature.

Thanx.

hobophobe
Posted By: Coolkill Re: URL Catcher autocomplete - 29/09/04 05:54 AM
Although its not a bad idea, personally i'd use something like.

alias f12 {
var %m, %n, %i = $url(0), %t = $gettok($editbox($active),-1,32)
while (%i) {
if ($+(%t,*) iswm $url(%i)) { var %m = $url(%i) | inc %n 1 }
dec %i
}
if ((%n == 1) && (%m)) { editbox $reptok($editbox($active),$gettok($editbox($active),-1,32),%m,1,32) }
}

Examples, include, adding the following;

/url -i ? http://url-1.com URL-1
/url -i ? http://url-2.com URL-2
/url -i ? http://url-3.com URL-3

in the editbox, type http://url- then hit F12, nothing happens since theres multiple urls but i suppose you could have it pick one.

type http://url-2 then hit F12 it replaces it with url-2.com.

Not ideal, but workable i suppose.

Eamonn.
© mIRC Discussion Forums