mIRC Home    About    Download    Register    News    Help

Print Thread
URL Catcher autocomplete #99147 29/09/04 05:00 AM
Joined: Dec 2002
Posts: 29
H
HobophobE Offline OP
Ameglian cow
OP Offline
Ameglian cow
H
Joined: Dec 2002
Posts: 29
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

Re: URL Catcher autocomplete #99148 29/09/04 05:54 AM
Joined: Dec 2002
Posts: 788
C
Coolkill Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
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.