mIRC Home    About    Download    Register    News    Help

Print Thread
#42061 15/08/03 03:33 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
dialog ram {
size -1 -1 772 19
title "Dialog"
text "Ram:",1,103 1 134 17
text "30 0 100",2,-1 2 100 15
}
on *:dialog:ram:init:*:{
dll mdx.dll SetMircVersion $version
dll mdx.dll MarkDialog $dname
dll mdx.dll SetControlMDX $dname 2 ProgressBar smooth > ctl_gen.mdx
did -a $dname 2 $calc($disk(c:).size - $disk(c:).free) 0 $disk(c:).size
did -a $dname 1 $left($percent($disk(c:).free,$disk(c:).size),2) $+ %
}
$calc($disk(C:).size - $disk(c:).free) should return the disk space being used?
it doesnt, any help greatly appreciated grin


new username: tidy_trax
#42062 15/08/03 03:42 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Diskspace has nothing to do with RAM.

#42063 15/08/03 04:00 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
edited.
i meant disk use.


new username: tidy_trax
#42064 15/08/03 04:13 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
For me $calc($disk(C:).size - $disk(c:).free) does return the amount of free diskspace, remember it is it bytes, not megabytes.

#42065 15/08/03 04:15 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
i know, but my $percent alias has worked on anyhting i have tried it on, but this it returns 80% and i only use 4gb out of 28gb..... and the progress bar is near full..


new username: tidy_trax
#42066 15/08/03 04:36 PM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
Well, if the $percent identifier is apparantly causing a problem, don't you think it would be a good idea to post the code for that here rather than the whole dialog??


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#42067 15/08/03 04:42 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
nope, because $percent isnt use in the actual progress bar...
and my progress bar is nearly full


new username: tidy_trax

Link Copied to Clipboard