home *** CD-ROM | disk | FTP | other *** search
/ BUG 12 / BUGCD1998_03.ISO / util / hackman / _setup.1 / checks.hmp < prev    next >
Encoding:
Text File  |  1998-01-10  |  718 b   |  33 lines

  1. Checksum of selection
  2. ; Copyrighted by ZoRtRaN - American Power
  3. ; Hey folkz! You've done a great job
  4. ; Use this cool plugin for the checksum
  5. ; of selection! Thanx for publishing ma
  6. ; stuff boyz! See ya later...
  7. [Initialize]
  8. Plugin = Checksum of selection
  9. Name = ZoRtRaN
  10. Version = 133
  11. Height = 2000
  12. Checked = No
  13.  
  14. [GetData]
  15. ;Get selection 
  16. VHowMany = SelNum (1)
  17.  
  18. [SetData]
  19. ;Check if there IS a selection
  20. If not Selection Stop
  21. ;Hey guys - the following line is crap isn't it?
  22. VSum = 0
  23. Loop Counter from 1 to VHowMany step 1
  24.  Vsum = Vsum + SelItem (Counter)
  25. End Loop
  26.  
  27. [Output]
  28. ;Okay - let's print the results! (Easy)
  29. OUT = Checksum result is:
  30. OUT = Decimal @ Vsum
  31. OUT = Hex @ #Vsum
  32.  
  33. [Stop]