English
Forum

Updatechecker

 

Gary12345
Hello,
CompileMarkSeparation
Window %MaxX*0.1,%Maxy*0.1-%MaxX*0.3,%MaxX*0.3
WindowTitle "Updatechecker"
WindowStyle 31
declare Ende&,Diskgröße!

Proc DiskGröße

    Parameters Laufwerkbuchstabe$'String
    set("decimals",2)
    Diskgröße!=DiskSize(Laufwerkbuchstabe$)/(1024*1024*1024) + " GB"
    ROUND(Diskgröße!,3)

    If Diskgröße!=0

        print %Error
        MESSAGEBOX("Laufwerk nicht vorhanden oder nicht lesbar!","Error X0001",0)

    Else

        Return Diskgröße!

    EndIf

EndProc

'#################################
'APPENDMENU
PopUp "&Programm"
AppendMenu 101, "Updatestatus ermitteln"
AppendMenu 102, "Festplattenstatus ermitteln"
AppendMenu 103, "AutoStartLister"
AppendMenu 104, "Aktuelle Updates"
PopUp "&Sonstiges"
SubPopUp "Sonstiges"
AppendMenu 105, "Über den Autor"
AppendMenu 106, "Über das Programm"
AppendMenu 107, "Spende"
EndSub
AppendMenu 108, "Beenden"
'################################
print %Error
DiskGröße("C:")
print %Error

Whilenot Ende&=1

EndWhile


what goes there schief? stupid question, but I white not further. might evtl. one Sammelthread go, there this one größeres proposition is.

Thank you!
 
XProfan X2
MfG
Gary12345
02/18/13  
 




Julian
Schmidt
you shining the logische Operator "!=" not integrally clear To his. i'd moreover rather Verify whether small same 0.
your Zweiter-Error are Umlaute in variables.
 
XProfan X2
Win7 Professional, SP1, AMD FX(tm)-8350 Eight-Core Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
02/18/13  
 



@Julian:

whom Operator != as Substitute for "not" there in XProfan not.

@Garry: Diskgröße! is of type Float, means a Fließkommazahl -
ergo is Diskgröße!=DiskSize(Laufwerkbuchstabe$)/(1024*1024*1024) + " GB"
wrong there You here a Stringzusammenführung anweist (+" GB").

additionally, ROUND(Diskgröße!,3) rundet but the gerundete Result lay You nirgends
ex How z.B. diskgröße!=round(diskgröße!,3).

fundamentally: its from different Found not recommendable Umlaute äöüß
in Bezeichnern To use, even if XProfan so get by likes.
 
02/18/13  
 




Julian
Schmidt
iF (18.02.13)
whom Operator != as Substitute for "not" there in XProfan not.


Jo, small read-Error Überfliegen.
reading Diskgröße!!=0 instead of Diskgröße!=0.
not desdotrotz existing != in XProfan not, separate only <>.
 
XProfan X2
Win7 Professional, SP1, AMD FX(tm)-8350 Eight-Core Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
02/18/13  
 




Gary12345
the are days where I me over ands over again think: "Wie stupid be I eig?" and these Error knows one eig. one finds tappt im dunkeln only not. either is the Köpfchen not there or one has not understands. I plädiere on drop1.
 
MfG
Gary12345
02/18/13  
 




Gary12345
now another question: gives it a XPROFAN commands/function, the whom whole main memory read can and the belegten RAM moreover. unless, How would The dazugehörige API lauten. If I to main memory API and msdn library Search, find I no korrekte API.
 
XProfan X2
MfG
Gary12345
02/18/13  
 




RGH
Hi,
its guter Programmierstil to and to Operators and Gleicheitszeichen one Leefeld To let. the increased The Lesbarkeit the Codes terrific!
to that second: ex XProfan X2 supply Disksize the Result too as Quadint back and can one Quadinit allocated go. with large Festplatten lead The Zuweisung To Floats To Ungenauigkeiten.

Greeting
Roland
 
XProfan X2
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
02/18/13  
 




Gary12345
thanks RGH Irgendeine a idea to API?
 
XProfan X2
MfG
Gary12345
02/18/13  
 




Julian
Schmidt
before You here ask position Please first Forum search. Sinnvolle Sucherbegriffe would about Ram, Mem, Mermory, memory etc.
 
XProfan X2
Win7 Professional, SP1, AMD FX(tm)-8350 Eight-Core Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
02/18/13  
 




Julian
Schmidt
Find z.B. that here. shining though not always To funzen.
CompileMarkSeparation
Proc ShowMemoryStatus

    Parameters Wert%' 1=Gesamter Ram, 2=Ram Frei, 3= Ram belegt, 4=Ram-Verbrauch in %
    declare ramfrei&,gesamterram&,prozent&,ramverwendet&,MemStat#
    Def GlobalMemoryStatus(1) !"KERNEL32","GlobalMemoryStatus"
    Def Mbyte(1) Round(&(1)/$0100000,0)
    Dim MemStat#,32
    Long MemStat#,0=32
    GlobalMemoryStatus(MemStat#)
    prozent&=Long(MemStat#,4)
    gesamterram&=MByte(Long(MemStat#,8))

    if gesamterram&<0

        ramfrei&=MByte(Long(MemStat#,12))
        ramfrei&=ramfrei&*100
        gesamterram&=ramfrei&/prozent&

    Endif

    ramfrei&=MByte(Long(MemStat#,12))
    ramverwendet&=gesamterram&-ramfrei&
    Dispose MemStat#
    case Wert%=1 : return gesamterram&
    case Wert%=2 : return ramfrei&
    case Wert%=3 : return ramverwendet&
    case Wert%=4 : return prozent&

EndProc

Cls
Decimals 0

while 1

    print Str$(ShowMemoryStatus(4)) + "% Physikalischer Speicher verwendet"
    print Str$(ShowMemoryStatus(1)) + "MB Physikalischer Speicher"
    print Str$(ShowMemoryStatus(2)) + "MB Physikalischer Speicher frei"
    print Str$(ShowMemoryStatus(3)) + "MB Physikalischer Speicher belegt"
    sleep 300
    cls

Endwhile

 
XProfan X2
Win7 Professional, SP1, AMD FX(tm)-8350 Eight-Core Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
02/18/13  
 




Gary12345
:/ Have there others Solutions found:
CompileMarkSeparation
Proc ShowMemoryStatus

    Def GlobalMemoryStatus(1) !"KERNEL32","GlobalMemoryStatus"
    Def Mbyte(1) Round(Div(&(1),$0100000),0)
    Dim MemStat#,32
    Long MemStat#,0=32
    GlobalMemoryStatus(MemStat#)
    Print Str$(Long(MemStat#,4))+"% Speicherauslastung"
    Print MByte(Long(MemStat#,8))+"MB gesamter physik. Speicher"
    Print MByte(Long(MemStat#,12))+"MB physik. Speicher frei"
    Print MByte(Long(MemStat#,16))+"MB max. Größe der Swapdatei"
    Print MByte(Long(MemStat#,20 ))+"MB max. in Swapdatei belegbar"
    Print MByte(Long(MemStat#,24))+"MB max. virtueller Speicher für Prozess"
    Print MByte(Long(MemStat#,28))+"MB max. virtueller Speicher für Prozess aktuell verfügbar"
    Dispose MemStat#

XProfan X2
MfG
Gary12345
02/18/13  
 




Julian
Schmidt
Such time Div in the XProfan-Help. come already yet on it

is supra too differently ^^
 
XProfan X2
Win7 Professional, SP1, AMD FX(tm)-8350 Eight-Core Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
02/18/13  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

20.058 Views

Untitledvor 0 min.
Gast.081507/16/24
Peter Max Müller11/13/17
Claus de Lieth10/18/17
Herby08/15/17
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie