mIRC Home    About    Download    Register    News    Help

Print Thread
#224758 17/08/10 06:48 PM
Joined: Aug 2010
Posts: 5
D
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Aug 2010
Posts: 5
I am using the new 7.1 Version but get this error from the xdcc klipper search engine
* $read: error opening c:\program files\xdcc klipper\keywords.tmp (line 52, searchengines.mrc)
-
any ideas please

David

David140 #224760 17/08/10 07:20 PM
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
You are receiving this error because the script it performing a $read on the file "c:\program files\xdcc klipper\keywords.tmp" which does not exist.

Since 7.1 mIRC now returns an error instead of returning $null.
You should probably check the script and adjust it, or contact the person who wrote it.
Scripts should not perform $reads on files that do not exist, or should at least first check if they do exist.

5618 #224763 17/08/10 11:52 PM
Joined: Aug 2010
Posts: 5
D
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Aug 2010
Posts: 5
this was the script in search engine mrc in the program files please could you tell me what I need to look at

David


on *:start: {
echo 14 -a - Successfully Loaded the Search Engines Addon for XDCC Klipper v $+ %vversion $+ .
echo 15 -a - XDCC Klipper v $+ %vversion now Running ...
virscan
olb-loader
if ($lines(" $+ $scriptdirklipper\mask.txt") > 0) {
clearmask
if ($exists(" $+ $scriptdirklipper\mask.txt") == $true) hload -n chanmask " $+ $scriptdirklipper\mask.txt"
}
if ($readini(" $+ $scriptdirklipper\klipper.ini",config,stasks) > 1) && $isfile(" $+ $scriptdirklipper\StatusWin.bak") && ($lines(" $+ $scriptdirklipper\StatusWin.bak") != 0) && ($hget(statuswin,0).data == 0) {
echo 4 -a The Status Window seem to be empty while its backup is not. This might suggest that it got corrupted.
echo 4 -a If you want to restore the backup, then write: 1/restorexsw
}
if ($hget(status-run) == $null) statusrun
}
on *:unload: {
echo 7 -a - Successfully Unloaded the Search Engines Addon for XDCC Klipper v $+ %vversion $+ .
}
dialog searchengine {
option dbu
title "Search engines"
size -1 -1 140 100
text "Choose Search Engine:", 1,5 5 65 10
text "Enter Keyword:", 2,5 18 45 10
combo 3, 65 3 70 80,extsel,sizevsbar,drop
combo 4, 65 17 70 80,extsel,sizevsbar,drop,edit
button "Search" ,5, 90 30 30 12,ok
button "Set Default Search Engine" ,6, 2 30 70 12
button "Clear History" ,9, 2 45 40 12
box ,7, 3 75 120 20
text "" ,8,5 80 100 12
}
on *:DIALOG:searchengine:init:*: {
did -a searchengine 3 IRCKlipper.info
did -a searchengine 3 PacketNews.com
did -a searchengine 3 Gogloom.com
did -a searchengine 3 nforce.nl
did -a searchengine 3 VCDQuality.com
did -a searchengine 3 IMDB.com
did -a searchengine 3 Astalavista.com
did -c searchengine 3 $readini(" $+ $scriptdirklipper\klipper.ini",searchengines,dse)
if ($exists(" $+ $scriptdirkeywords.tmp") != $false) .loadbuf 10 -o searchengine 4 " $+ $scriptdirkeywords.tmp"
did -c searchengine 4 1
}
on *:dialog:searchengine:*:*:{
if ($devent == sclick) {
if ($did == 6) {
writeini " $+ $scriptdirklipper\klipper.ini" searchengines dse $did(searchengine,3).sel
did -a searchengine 8 Default Search engine has been set....
}
if ($did == 5) {
if ($read(" $+ $scriptdirkeywords.tmp",w,$did(searchengine,4).text) == $null) && ($did(searchengine,4).text != $null) write -il1 " $+ $scriptdirkeywords.tmp" $did(searchengine,4).text
elseif ($did(searchengine,4).text != $null) { write -il1 " $+ $scriptdirkeywords.tmp" $did(searchengine,4).text | write -dl $+ $calc($readn +1) " $+ $scriptdirkeywords.tmp" }
write -dl11 " $+ $scriptdirkeywords.tmp"
if ($did(searchengine,3).text == PacketNews.com) {
var %3 = $replace($did(searchengine,4).text,$chr(32),$chr(43))
run http://www.packetnews.com/search.php?net=all&kw= $+ %3 $+ &t=packs&io=1
return
}
if ($did(searchengine,3).text == MyDownloader.com) {
var %3 = $replace($did(searchengine,4).text,$chr(32),$+ $chr(37) $+ 20)
run http://www.mydownloader.com/search.asp?searchstring= $+ %3
return
}
if ($did(searchengine,3).text == Isohunt.com) {
var %3 = $replace($did(searchengine,4).text,$chr(32),$chr(43))
run http://isohunt.com/files.php?ihq= $+ %3 $+ &ext=&op=and
return
}
if ($did(searchengine,3).text == XdccSurfer.com) {
var %3 = $did(searchengine,4).text
run http://www.xdccsurfer.com/html/search.php?item=Pack_Name&string= $+ %3 $+ &order=Pack_Name
return
}
if ($did(searchengine,3).text == VCDQuality.com) {
var %3 = $replace($did(searchengine,4).text,$chr(32),$chr(43))
run http://www.vcdquality.com/index.php?genre=1&searchstring= $+ %3
return
}
if ($did(searchengine,3).text == Ircspy.com) {
var %3 = $replace($did(searchengine,4).text,$chr(32),$chr(43))
run http://www.ircspy.com/search.asp?searchtype=xdcc&searchtext= $+ %3
return
}
if ($did(searchengine,3).text == IRCKlipper.info) {
var %3 = $replace($did(searchengine,4).text,$chr(32),$chr(43))
run http://www.ircklipper.info/search.php?Description= $+ %3
return
}
if ($did(searchengine,3).text == IRCfrog.com) {
var %3 = $replace($did(searchengine,4).text,$chr(32),$chr(43))
run http://www.ircfrog.com/search.php?Description= $+ %3
return
}
if ($did(searchengine,3).text == XDCCZ.com) {
var %3 = $replace($did(searchengine,4).text,$chr(32),$chr(43))
run http://www.xdccz.com/?search_string= $+ %3
return
}
if ($did(searchengine,3).text == Gogloom.com) {
var %3 = $replace($did(searchengine,4).text,$chr(32),$chr(43))
run http://gogloom.com/XDCC2?q= $+ %3
return
}
if ($did(searchengine,3).text == IRCDig.com) {
var %3 = $replace($did(searchengine,4).text,$chr(32),$chr(43))
run http://www.ircdig.com/cgi-bin/dig?action=search&phrase= $+ %3
return
}
if ($did(searchengine,3).text == nforce.nl) {
var %3 = $did(searchengine,4).text
run http://www.xdccklipper.info/nforce.php?qr= $+ %3
return
}
if ($did(searchengine,3).text == IMDB.com) {
var %3 = $did(searchengine,4).text
run http://www.imdb.com/find?tt=on;nm=on;mx=20;q= $+ %3
return
}
if ($did(searchengine,3).text == Astalavista.com) {
var %3 = $replace($did(searchengine,4).text,$chr(32),$chr(43))
run http://astalavista.box.sk/cgi-bin/robot?srch= $+ %3
return
}
if ($did(searchengine,3).text == Google.com) {
var %3 = $did(searchengine,4).text
run http://www.xdccklipper.info/google.php?qr= $+ %3
return
}
if ($did(searchengine,3).text == Mamma.com) {
var %3 = $replace($did(searchengine,4).text,$chr(32),$chr(43))
run http://www.ircklipper.info/mamma.php?qr= $+ %3
return
}
}
if ($did == 9) { write -c " $+ $scriptdirkeywords.tmp" | .loadbuf 10 -ro searchengine 4 " $+ $scriptdirkeywords.tmp" }
}
}


Link Copied to Clipboard