Snippets Project Page
Author: maroon
Added: 5y
Updated: Never
mIRC: v7.52+
Hits: 1,825
Downloads: 17
Review: entropy
Size: 1.82KB
3 0
Login to vote.
$fupdate
v1.0
Remembers your /fupdate setting each time you restart mIRC, instead of having it reset to 0 (off) each time.
also offers $fupdate value which returns the current /fupdate setting.
Download
JSON
▲ Review
▼ Source
/* { $fupdate 1.0 by maroon fupdate level that's remembered after mIRC restart: /fupdate [0|1-100] display current setting: /fupdate or //echo -a $fupdate Fupdate is "fast update" that allows you to speed up screen output that would otherwise slow down or freeze your client. The fupdate command was added version 7.52, and the setting is not remembered each time you restart the client. The fupdate number can be any number from 0-100, 0 or non-numeric is off and 100 is the fastest. The effect of different settings depends on your computer's speed, especially your video card. This alias allows the /fupdate setting to be preserved as a global variable so it can be restored the next time mIRC restarts. It monitors the use of /fupdate to save the new value. It can also be called as an $identifier so you can save the setting, then change it for some screen output, then restore it later. Example of restoring the original fupdate setting after briefly setting to 100: //var %a $fupdate | fupdate 100 | noop $findfile($mircdir,*,0,99,echo -s $1-) | fupdate %a This snippet can easily be copied into an existing script. If the other script has an ON START event handler, you should move the line inside this script's :START: event into the other script's :START: handler then delete this :START: event } */ alias fupdate { if ($isid) { if (%fupdate isnum 0-100) return $v1 | echo $iif($~fromeditbox,-ac,-sc) info * fupdate: variable not set. Assuming 0 | return 0 } if (!$0) { !fupdate | return } var %a $int($calc($1)) | if (%a !isnum 0-100) var %a 0 | if (%a != %fupdate) set %fupdate %a | !fupdate $1 | return } on *:START:{ if (%fupdate == $null) set %fupdate 0 | fupdate %fupdate }
Changelog:
0
0