mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2003
Posts: 29
Y
Ameglian cow
OP Offline
Ameglian cow
Y
Joined: Mar 2003
Posts: 29
Here's the script word for word:

on *:UNLOAD:hsave -bo main main.hash

I can get the hash table to save manually by typing "/hsave -bo main main.hash" (and yes, the main.hash file is there to be overridden), but when I put it in the unload event it it doesn't work. I think this is a bug, but if you see a mistake please tell me. Thanks in advance!

Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
The code looks OK. What happens if you put an echo in there instead?

Also, just to be sure, you do realise that the on UNLOAD event only triggers when the script file the event is in is unloaded, and it's not triggered when mIRC closes?


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Mar 2003
Posts: 29
Y
Ameglian cow
OP Offline
Ameglian cow
Y
Joined: Mar 2003
Posts: 29
Well, I did some more "debugging" and it turns out even when I put an echo in, it still didn't trigger. Puzzled, I opened up the script in mIRC's editor instead of my normal text editor w/ syntax highlighting, and somehow (by accident) the underline character (ctrl+u in mIRC) had gotten in front of the "on *:text:..." event and wasn't showing up in the text editor! Thanks for the help, I owe you one grin.


Link Copied to Clipboard