mIRC Home    About    Download    Register    News    Help

Print Thread
#159402 16/09/06 09:47 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
How about adding a switch to /hmake to make mIRC save a hash table automatically in the same way it does for global variables. I'd say around 90%+ of all hash table related scripts I see fall into a category of being simple code with a small amount of data in the table, but needing to be saved and loaded on exit and startup of mIRC. It seems there's all these basic hash table based scripts going around each with their on *:start:hload myhashtable myhashtable.txt / on *:exit:hsave myhashtable myhashtable.txt events, none of them needing to make use of the fancier switches available in hload/hsave, so why not have something like /hmake -p myhashtable and have mIRC handle it instead, saving all hash tables which use the new switch into an INI file or something.

While I'm on hash tables, adding an N switch parameter to /hadd -m (where N is the number of slots) would be handy. Also, it'd be good if this switch was available in /hload


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#159403 17/09/06 05:03 AM
Joined: May 2006
Posts: 122
J
Vogon poet
Offline
Vogon poet
J
Joined: May 2006
Posts: 122
Signed


If only women came with popup menus and online help.
#159404 17/09/06 09:13 AM
Joined: Apr 2004
Posts: 759
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 759
an optional third parameter to specify a custum location for "save to file" might be handy as well. Custum locations being written as binary dumps by default.


$maybe
#159405 21/09/06 07:42 PM
Joined: Feb 2004
Posts: 201
J
Jae Offline
Fjord artisan
Offline
Fjord artisan
J
Joined: Feb 2004
Posts: 201
Why not have it so you can just load ini's into memory and access the information from some hash table style manner, yet when you update it updates the hash and the ini at the same time? (if you were saving as ini)... Also very easily scripted with a line or two of code.


Link Copied to Clipboard