Snippets
  • Uploaded By: maroon
  • Added: 9 months ago
  • Updated: Never
  • mIRC Version: v7.52+
  • Hits: 461
  • Size: 1.75KB
  • Downloads: 3
  • Review By: entropy



$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.

  
  4    0  Login to Vote.


Source Code:
  1. /*
  2. { $fupdate 1.0 by maroon
  3. fupdate level that's remembered after mIRC restart: /fupdate [0|1-100]
  4. display current setting:
  5. /fupdate
  6. or
  7. //echo -a $fupdate
  8.  
  9. Fupdate is "fast update" that allows you to speed up screen output that would otherwise
  10. slow down or freeze your client. The fupdate command was added version 7.52, and the setting
  11. is not remembered each time you restart the client.
  12.  
  13. The fupdate number can be any number from 0-100, 0 or non-numeric is off and 100 is the fastest.
  14. The effect of different settings depends on your computer's speed, especially your video card.
  15.  
  16. This alias allows the /fupdate setting to be preserved as a global variable
  17. so it can be restored the next time mIRC restarts. It monitors the use of /fupdate
  18. to save the new value. It can also be called as an $identifier so you can save the setting,
  19. then change it for some screen output, then restore it later.
  20.  
  21. Example of restoring the original fupdate setting after briefly setting to 100:
  22.  
  23. //var %a $fupdate | fupdate 100 | noop $findfile($mircdir,*,0,99,echo -s $1-) | fupdate %a
  24.  
  25. This snippet can easily be copied into an existing script.
  26. If the other script has an ON START event handler, you should move the line inside
  27. this script's :START: event into the other script's :START: handler then delete this :START: event
  28. }
  29. */
  30. alias fupdate {
  31. if ($isid) { if (%fupdate isnum 0-100) return $v1 | echo $iif($~fromeditbox,-ac,-sc) info * fupdate: variable not set. Assuming 0 | return 0 }
  32. if (!$0) { !fupdate | return }
  33. var %a $int($calc($1)) | if (%a !isnum 0-100) var %a 0 | if (%a != %fupdate) set %fupdate %a | !fupdate $1 | return
  34. }
  35. on *:START:{
  36. if (%fupdate == $null) set %fupdate 0 | fupdate %fupdate
  37. }


Comments
No Comments.

Login to Comment.