home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format 107
/
af107sub.adf
/
gui4cli.LZX
/
Gui4Cli
/
Dir
/
Dir.avail
next >
Wrap
Text File
|
2003-12-15
|
1KB
|
68 lines
G4C
WinBig 10 14 250 80 "Available Memory"
xOnLoad
CLI 'resident c:eval add PURE'
CLI 'resident c:avail add PURE'
setvar .av_used 0
setvar .av_totused 0
setvar av_old 0
guiopen dir.avail
CLI 'avail total >env:.av'
setvar av_old $.av
update dir.avail 1 $.av
xOnRMB
Status
xOnClose
guiquit dir.avail
CLI 'resident c:eval remove'
CLI 'resident c:avail remove'
Text 5 10 140 14 "Available" 100 NOBOX
Text 105 10 140 14 "" 100 BOX
gadid 1
Text 5 25 140 14 "Used Last" 100 NOBOX
Text 105 25 140 14 "" 100 BOX
gadid 2
Text 5 40 140 14 "Total Used" 100 NOBOX
Text 105 40 140 14 "" 100 BOX
gadid 3
xButton 5 60 60 14 Avail
CLI 'avail total >env:.av'
update dir.avail 1 '$.av'
CLI 'eval >env:.av_used $av_old - $.av'
CLI 'eval >env:.av_totused $.av_totused + $.av_used'
setvar av_old $.av
update dir.avail 2 $.av_used
update dir.avail 3 $.av_totused
xButton 185 60 60 14 Reset
CLI 'avail >NIL: flush'
CLI 'avail >NIL:'
setvar .av_used 0
setvar .av_totused 0
setvar .av_old $.av
update dir.avail 2 $.av_used
update dir.avail 3 $.av_totused
xButton 95 60 60 14 Flush
CLI 'avail >NIL: flush'
CLI 'avail total >env:.av'
update dir.avail 1 '$.av'
CLI 'eval >env:.av_used $av_old - $.av'
CLI 'eval >env:.av_totused $.av_totused + $.av_used'
setvar av_old $.av
update dir.avail 2 $.av_used
update dir.avail 3 $.av_totused