1. Dashboard
  2. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  3. Forenregeln
  4. Forum
    1. Unerledigte Themen
  • Anmelden
  • Registrieren
  • Suche
Alles
  • Alles
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche
  1. AutoIt.de - Das deutschsprachige Forum.
  2. Mitglieder
  3. Xenobiologist

Beiträge von Xenobiologist

  • HTPC

    • Xenobiologist
    • 22. Juli 2008 um 08:02

    Hi Oscar,

    da gebe ich dir natürlich recht. Das habe ich bis heute auch nicht verstanden, warum diese Industrieidioten immer versuchen alles möglichst klein zu bauen. Ich hätte kein Problem damit, wenn mein DesktopTower einfach 10 cm breiter wäre und dafür leiser und natürlich wäre es weltklasse, wenn die HTPCs meinetwegen auch größer wären und man dafür etwas Kühlung einsparen kann.

    Ist mir ehrlich gesagt unbegreiflich, wer der Industrie gesagt hat: es MUSS so klein wie möglich sein. So ein Quatsch! Ich kaufe doch nicht mehr das kleinste Handy oder das kleinste Auto, sondern das Gesamtpaket muss stimmen und bei HTPCs ist eben auch die Kühlung/Lautstärke wichtig.

    Ich werde mal sehen, was man wirklich benötigt und dann gucken wo ich evtl. noch ein bißchen drauflege. Ich denke CPU und GraKa sind hier auch nicht unwichtig, wenn eine hohe Auflöung erzielt werden soll/muss.

    Mega

    P.S.: Wir könnten ja mal versuchen einen für 1000 € und einen für 2000 € zusammenzustellen. :rock:

  • HTPC

    • Xenobiologist
    • 21. Juli 2008 um 20:52

    Hi,

    der ist schick, aber ich denke einfach zu schwach auf der Brust.

    Mega

  • Parameterübergabe an EXE mit doppelten Anführungzeichen macht Probleme

    • Xenobiologist
    • 21. Juli 2008 um 18:40
    [autoit]

    Func LDEcho($msg)
    RunWait(@ProgramFilesDir & '\diedeldum\diedeldum.exe /msg="' & $msg & '"', "")
    EndFunc ;==>LDEcho

    [/autoit]
  • HTPC

    • Xenobiologist
    • 21. Juli 2008 um 17:45

    Hi zusammen,

    hat sich irgendwer von euch schon mal mit dem Thema HTPC auseinander gesetzt? Ich hatte ja vor einiger Zeit mal nach technischen Spielereien gefragt. :D
    So wie es aussieht brauche ich nun so ein Ding.

    Es muss ja nicht unbedingt : Link sein. :rolleyes:

    Wäre nett, wenn ihr eure Erfahrungen teilen könntet und am besten noch gleich ein paar Kaufempfehlungen parat habt.

    Ich vermute mal, dass zu diesem Thema wenig Leute bei Mediamarkt usw. Ahnung haben. :thumbdown:

    Mega

  • Button mit Icon aus Ressource

    • Xenobiologist
    • 21. Juli 2008 um 17:41

    @progandy: Hatten wir das nicht schon mal? Habe ich nicht bei diesem Thema schon mal gesagt, es geht nicht und ... :thumbup:

  • Button mit Icon aus Ressource

    • Xenobiologist
    • 21. Juli 2008 um 16:33

    Hi,

    das geht meines Wissens nicht bei Buttons.

    Mega

  • ProcessList mit CPU-Last in %?

    • Xenobiologist
    • 19. Juli 2008 um 16:39

    Hi,

    vielleicht hilft dir dies. Wenn 100 % erreicht dann würde ich kurz warten dann noch mal checken und wenn dann immer noch 100 % dann ProcessClose.

    Spoiler anzeigen
    [autoit]

    #include <ProgressConstants.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>

    [/autoit] [autoit][/autoit] [autoit]

    Opt("GUIOnEventMode", 1)

    [/autoit] [autoit][/autoit] [autoit]

    Local $CenterWidth = (@DesktopWidth - 200) / 2
    Local $CenterHeight = (@DesktopHeight - 300) / 2

    [/autoit] [autoit][/autoit] [autoit]

    $wbemFlagReturnImmediately = 0x10
    $wbemFlagForwardOnly = 0x20
    $colItems = ""
    $strComputer = "localhost"
    $objWMIService = ObjGet("winmgmts:\\" & $strComputer & "\root\CIMV2")

    [/autoit] [autoit][/autoit] [autoit]

    ; ============================================================================
    ; GUI Definition
    ; ============================================================================

    [/autoit] [autoit][/autoit] [autoit]

    $gui = GUICreate("CPU Meter", 200, 300, $CenterWidth, $CenterHeight, -1, $WS_EX_TOPMOST)
    GUISetOnEvent(-3, "_Exit_Event", $gui)
    GUISetIcon(@SystemDir & "\shell32.dll", 12)

    [/autoit] [autoit][/autoit] [autoit]

    GUICtrlCreateLabel("CPU1", 5, 3, 40, 20, $SS_CENTER)
    $progressbar_core1 = GUICtrlCreateProgress(10, 20, 30, 250, $PBS_VERTICAL)
    $label_core1 = GUICtrlCreateLabel("", 10, 275, 30, 20, $SS_CENTER)

    [/autoit] [autoit][/autoit] [autoit]

    GUICtrlCreateLabel("CPU2", 55, 3, 40, 20, $SS_CENTER)
    $progressbar_core2 = GUICtrlCreateProgress(60, 20, 30, 250, $PBS_VERTICAL)
    $label_core2 = GUICtrlCreateLabel("", 60, 275, 30, 20, $SS_CENTER)

    [/autoit] [autoit][/autoit] [autoit]

    GUICtrlCreateLabel("CPU3", 105, 3, 40, 20, $SS_CENTER)
    $progressbar_core3 = GUICtrlCreateProgress(110, 20, 30, 250, $PBS_VERTICAL)
    $label_core3 = GUICtrlCreateLabel("", 110, 275, 30, 20, $SS_CENTER)

    [/autoit] [autoit][/autoit] [autoit]

    GUICtrlCreateLabel("CPU4", 155, 3, 40, 20, $SS_CENTER)
    $progressbar_core4 = GUICtrlCreateProgress(160, 20, 30, 250, $PBS_VERTICAL)
    $label_core4 = GUICtrlCreateLabel("", 160, 275, 30, 20, $SS_CENTER)

    [/autoit] [autoit][/autoit] [autoit]

    GUISetState()

    [/autoit] [autoit][/autoit] [autoit]

    ; ============================================================================
    ; Main Loop
    ; ============================================================================

    [/autoit] [autoit][/autoit] [autoit]

    While 1
    $colItems = $objWMIService.ExecQuery ("SELECT LoadPercentage FROM Win32_Processor", "WQL", $wbemFlagReturnImmediately + $wbemFlagForwardOnly)
    If IsObj($colItems) Then
    $i = 0
    For $objItem In $colItems
    If $i = 0 Then
    GUICtrlSetData($progressbar_core1, $objItem.LoadPercentage)
    GUICtrlSetData($label_core1, $objItem.LoadPercentage & "%")
    ElseIf $i = 1 Then
    GUICtrlSetData($progressbar_core2, $objItem.LoadPercentage)
    GUICtrlSetData($label_core2, $objItem.LoadPercentage & "%")
    ElseIf $i = 2 Then
    GUICtrlSetData($progressbar_core3, $objItem.LoadPercentage)
    GUICtrlSetData($label_core3, $objItem.LoadPercentage & "%")
    ElseIf $i = 3 Then
    GUICtrlSetData($progressbar_core4, $objItem.LoadPercentage)
    GUICtrlSetData($label_core4, $objItem.LoadPercentage & "%")
    EndIf
    $i += 1
    Next
    Else
    MsgBox(0, "WMI Output", "No WMI Objects Found for class: " & "Win32_Processor")
    EndIf
    WEnd

    [/autoit] [autoit][/autoit] [autoit]

    ; ============================================================================
    ; Functions
    ; ============================================================================

    [/autoit] [autoit][/autoit] [autoit]

    Func _Exit_Event()
    Exit
    EndFunc ;==>_Exit_Event

    [/autoit]

    Mega

  • Zeit in Inidatei als key

    • Xenobiologist
    • 19. Juli 2008 um 16:11

    Nein, du musst einfach lernen nicht nach einer Lösung zu fragen, sondern dein Problem vernünftig zu beschreiben! Aus einer guten Anforderungsbeschreibung kommt dann sicher auch ne gute Lösung.

    Mega

  • Kleines Projekt, brauche Hilfe

    • Xenobiologist
    • 19. Juli 2008 um 14:50

    Kein Problem hat mich 30 Sekunden meines Lebens gekostet :D

    Viel Spaß beim nächsten Projekt.

    Mega

  • MP3 zu XML

    • Xenobiologist
    • 19. Juli 2008 um 14:30

    Hi,

    ich hatte mal dies gemacht:

    Spoiler anzeigen
    [autoit]

    #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
    #AutoIt3Wrapper_icon=..\..\..\Icons\Music-icon.ico
    #AutoIt3Wrapper_outfile=..\..\..\..\Dokumente und Einstellungen\xf01145\Desktop\printPlaylist.exe
    #AutoIt3Wrapper_Res_Comment=Erstellen einer Playlist.txt
    #AutoIt3Wrapper_Res_Description=Erstellen einer Playlist.txt
    #AutoIt3Wrapper_Res_LegalCopyright=Mega
    #AutoIt3Wrapper_Res_Language=1031
    #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
    #include<File.au3>

    [/autoit] [autoit][/autoit] [autoit]

    Global $SongLength = 55, $songCounted = 0
    Global $directory = FileSelectFolder("Ordner auswählen aus dem die MP3-Dateien zu einer Playlist umgewandelt werden sollen: ", "", 6)
    If @error Then Exit (0)
    If StringLen($directory) > 3 Then $directory &= "\"

    [/autoit] [autoit][/autoit] [autoit]

    Global $FileList = _FileListToArray($directory, '*.mp3')

    [/autoit] [autoit][/autoit] [autoit]

    If (Not IsArray($FileList)) And (@error = 1) Then
    MsgBox(0, "", "No Files\Folders Found.")
    Exit
    EndIf
    Global $file = FileOpen(@DesktopDir & '\Playlist_' & @MDAY & '_' & @MON & '_' & @YEAR & '.txt', 2 + 8)

    [/autoit] [autoit][/autoit] [autoit]

    If $file = -1 Then
    MsgBox(0, "Error", "Unable to open file.")
    Exit
    EndIf

    [/autoit] [autoit][/autoit] [autoit]

    ; Headline
    FileWriteLine($file, 'Nr.' & " | " & fullfill($SongLength + 1, "Song", " ") & "| " & 'Duration')
    FileWriteLine($file, '--------------------------------------------------------------------------')

    [/autoit] [autoit][/autoit] [autoit]

    For $i = 1 To UBound($FileList) - 1
    $info_A = _GetMP3Info ($directory & $FileList[$i])
    If StringLen($FileList[$i]) >= $SongLength Then
    FileWriteLine($file, StringFormat('%0.3d', $i) & " | " & StringLeft($FileList[$i], $SongLength) & " | " & _checkTime($info_A[5]))
    Else
    FileWriteLine($file, StringFormat('%0.3d', $i) & " | " & fullfill($SongLength, $FileList[$i], ' ') & " | " & _checkTime($info_A[5]))
    EndIf
    Next
    FileWriteLine($file, '--------------------------------------------------------------------------')
    MsgBox(64, 'Info', 'Die Playlist wurde in' & @CRLF & @CRLF & _
    @DesktopDir & '\Playlist_' & @MDAY & '_' & @MON & '_' & @YEAR & '.txt' & @CRLF & @CRLF & "gespeichert.")
    FileClose($file)

    [/autoit] [autoit][/autoit] [autoit]

    Func _GetExtProperty($sPath, $iProp)
    Local $iExist, $sFile, $sDir, $oShellApp, $oDir, $oFile, $aProperty, $sProperty
    $iExist = FileExists($sPath)
    If $iExist = 0 Then
    SetError(1)
    Return 0
    Else
    $sFile = StringTrimLeft($sPath, StringInStr($sPath, "\", 0, -1))
    $sDir = StringTrimRight($sPath, (StringLen($sPath) - StringInStr($sPath, "\", 0, -1)))
    $oShellApp = ObjCreate("shell.application")
    $oDir = $oShellApp.NameSpace ($sDir)
    $oFile = $oDir.Parsename ($sFile)
    If $iProp = -1 Then
    Local $aProperty[35]
    For $i = 0 To 34
    $aProperty[$i] = $oDir.GetDetailsOf ($oFile, $i)
    Next
    Return $aProperty
    Else
    $sProperty = $oDir.GetDetailsOf ($oFile, $iProp)
    If $sProperty = "" Then
    Return 0
    Else
    Return $sProperty
    EndIf
    EndIf
    EndIf
    EndFunc ;==>_GetExtProperty

    [/autoit] [autoit][/autoit] [autoit]

    Func _checkTime($time)
    Return StringRegExpReplace($time, '\b\d:\d\d', 0 & '\0')
    EndFunc ;==>_checkTime

    [/autoit] [autoit][/autoit] [autoit]

    Func fullfill($maxLength, $string, $fullFillChar)
    ; $maxLength = maximum string size
    ; $fullFillChar = char to fullfill the string
    While 1
    If StringLen($string) < $maxLength Then
    $string &= $fullFillChar
    ContinueLoop
    EndIf
    ExitLoop
    WEnd
    Return $string
    EndFunc ;==>fullfill

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Description: Retrieve MP3 (MP2, MPA) basic information
    ; Parameter(s): File name
    ; Requirement(s): None
    ; Return Value(s): On Success - array with data:
    ; 0 - MPEG version
    ; 1 - Layer
    ; 2 - Bitrate
    ; 3 - Frequency
    ; 4 - Channel Mode
    ; 5 - Duration
    ; 6 - Frames
    ; 7 - CRC protected
    ; 8 - Copyrighted
    ; 9 - Original
    ; On Failure empty string and sets @ERROR:
    ; 1 - Info not found
    ; Author(s): YDY (Lazycat) <[email='mpc@nm.ru'][/email]>
    ; Version: 1.2.00
    ; Date: 30.12.2004
    ; Note(s): None
    ;
    ;===============================================================================
    Func _GetMP3Info($file)
    Local $data[10], $offset = 1, $isValid = 0, $isVBR = 0
    Local $aVersion = StringSplit("MPEG 2.5|Undefined|MPEG 2.5|MPEG 1", "|")
    Local $aLayer = StringSplit("Undefined|Layer III|Layer II|Layer I", "|")
    Local $sBitrate = ""
    Local $sFrequency = ""
    Local $aChanMode = StringSplit("Stereo|Joint stereo|Dual channel|Mono", "|")
    Local $aFlags = StringSplit("No|Yes", "|")
    Local $head, $nVer, $nLay

    [/autoit] [autoit][/autoit] [autoit]

    If _FileReadAtOffsetHEX ($file, 1, 3) = "494433" Then ; ID3v2 tag found
    $offset = _HEXToSSInt(_FileReadAtOffsetHEX ($file, 7, 4)) + 10 ; End of ID3v2 tag
    Endif

    [/autoit] [autoit][/autoit] [autoit]

    For $ic = $offset to 4096 + $offset
    $marker = _FileReadAtOffsetHEX ($file, $ic, 2)
    $marker = StringLeft($marker, 3)
    If StringInStr("FFF,FFE", $marker) Then ; Assume that is frame start
    $head = _HexToBin(_FileReadAtOffsetHEX ($file, $ic, 4))
    $nVer = _GetRBits($head, 19, 2)
    $nLay = _GetRBits($head, 17, 2)
    If ($nVer <> 1) and ($nLay <> 0) Then
    If _FileReadAtOffsetHEX ($file, $ic+36, 4) = "58696E67" Then $isVBR = 1 ; Is this a right way?..
    $isValid = 1
    Exitloop
    Endif
    Endif
    Next

    [/autoit] [autoit][/autoit] [autoit]

    If not $isValid Then
    SetError(1) ; Frame not found (not mp3 data?)
    Return ("")
    Endif

    [/autoit] [autoit][/autoit] [autoit]

    Select
    Case $nVer = 3
    $sFrequency = "44100|48000|32000|Undefined"
    Case $nVer = 2
    $sFrequency = "22050|24000|16000|Undefined"
    Case $nVer = 0
    $sFrequency = "11025|12000|8000|Undefined"
    EndSelect
    Local $aFrequency = StringSplit($sFrequency, "|")
    $data[3] = _GetData($aFrequency, _GetRBits($head, 10, 2))

    [/autoit] [autoit][/autoit] [autoit]

    Local $pad = 0, $bitrate, $framesize, $frames, $length, $fps
    If _GetRBits($head, 9, 1) Then $pad = 1

    [/autoit] [autoit][/autoit] [autoit]

    If $isVBR Then
    $data[2] = "Variable"
    Else
    Select
    Case $nVer = 3 and $nLay = 3
    $sBitrate = "Free|32|64|96|128|160|192|224|256|288|320|352|384|416|448|Undefined"
    Case $nVer = 3 and $nLay = 2
    $sBitrate = "Free|32|48|56|64|80|96|112|128|160|192|224|256|320|384|Undefined"
    Case $nVer = 3 and $nLay = 1
    $sBitrate = "Free|32|40|48|56|64|80|96|112|128|160|192|224|256|320|Undefined"
    Case $nVer = 2 and $nLay = 3
    $sBitrate = "Free|32|48|56|64|80|96|112|128|144|160|176|192|224|256|Undefined"
    Case ($nVer = 2 and $nLay = 2) or ($nVer = 2 and $nLay = 1)
    $sBitrate = "Free|8|16|24|32|40|48|56|64|80|96|112|128|144|160|Undefined"
    EndSelect
    Local $aBitrate = StringSplit($sBitrate, "|")
    $data[2] = _GetData($aBitrate, _GetRBits($head, 12, 4))
    $bitrate = 1000 * $data[2]
    If $nLay = 3 Then
    $framesize = (((12 * $bitrate) / $data[3]) + $pad) * 4
    $fps = $data[3]/384
    Else
    $framesize = ((144 * $bitrate) / $data[3]) + $pad
    $fps = $data[3]/1152
    Endif
    $frames = FileGetSize($file) / $framesize
    $length = $frames / $fps
    Endif

    [/autoit] [autoit][/autoit] [autoit]

    $data[0] = _GetData($aVersion, $nVer)
    $data[1] = _GetData($aLayer, $nLay)
    $data[4] = _GetData($aChanMode, _GetRBits($head, 6, 2))
    $data[5] = StringFormat("%d:%02d", Int($length / 60), $length - Int($length / 60) * 60)
    $data[6] = Int($frames)
    $data[7] = _GetData($aFlags, not _GetRBits($head, 16, 1)) ; CRC
    $data[8] = _GetData($aFlags, _GetRBits($head, 3, 1)) ; Private
    $data[9] = _GetData($aFlags, _GetRBits($head, 2, 1)) ; Original
    Return($data)
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Support functions ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    [/autoit] [autoit][/autoit] [autoit]

    Func _GetRBits($str, $pos, $size)
    Local $ic, $res = 0, $bStr = StringMid($str, 33 - $pos - $size, $size)
    For $ic = 0 to $size-1
    If StringMid($bStr, $size-$ic, 1) == "1" Then $res = $res + 2^$ic
    Next
    Return ($res)
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    Func _GetData(ByRef $array, $val)
    If $val > UBound($array)-1 Then Return("Undefined")
    Return ($array[$val+1])
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Common functions ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    [/autoit] [autoit][/autoit] [autoit]

    Func _HEXToSSInt($sHexStr)
    Local $iCnt, $iLen, $sTempStr = "", $iReturn = 0
    For $iCnt = 1 to StringLen($sHexStr) Step 2
    $sTempStr = $sTempStr & StringTrimLeft(_HexToBin(StringMid($sHexStr, $iCnt, 2)), 1)
    Next
    $iLen = StringLen($sTempStr)
    For $iCnt = 0 To $iLen - 1
    $iReturn = $iReturn + Number(StringMid($sTempStr, $iLen - $iCnt, 1)) * 2^$iCnt
    Next
    Return($iReturn)
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    Func _HexToBin($str)
    Local $res="", $i
    While StringLen($str) > 0
    $val = Dec(StringRight($str, 1))
    $str = StringTrimRight($str, 1)
    For $i = 1 to 4
    $res = String(Mod($val, 2)) & $res
    $val = Int($val/2)
    Next
    Wend
    Return ($res)
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    Func _FileReadAtOffsetHEX ($file, $offset, $bytes)
    Local $tfile = FileOpen($file, 0)
    Local $tstr = "", $i
    FileRead($tfile, $offset-1)
    For $i = $offset To $offset + $bytes - 1
    $tstr = $tstr & Hex(Asc(FileRead($tfile, 1)), 2)
    Next
    FileClose($tfile)
    Return ($tstr)
    Endfunc

    [/autoit]

    Mega

  • Kleines Projekt, brauche Hilfe

    • Xenobiologist
    • 19. Juli 2008 um 13:49

    Hi,

    so ungefähr???

    [autoit]

    Global $anzahl = 1000, $ergebnis
    For $i = 1 To $anzahl
    $ergebnis += (1 / ($i^2))
    Next
    MsgBox(64, 'Ergebnis bei ' & $anzahl & ' Brüchen', 'Ergebnis : ' & Sqrt($ergebnis *6))

    [/autoit]

    Mega

  • StringRegExp bringt Skript zum Absturz

    • Xenobiologist
    • 18. Juli 2008 um 16:27

    Hi,

    kannst du alles so anonymisieren, dass ich es mal testen kann? Kannst es ja per PN schicken.

    Mega

  • Bild in Exe datei

    • Xenobiologist
    • 18. Juli 2008 um 16:08

    http://www.autoitscript.com/forum/index.php?showtopic=51103

  • Kleines Problem

    • Xenobiologist
    • 18. Juli 2008 um 15:20
    [autoit]

    For $y = 65 To 90
    For $i = 65 To 90
    ConsoleWrite(Chr($i) & Chr($y) & @CRLF)
    Next
    Next

    [/autoit]
  • Menu in ListView ???

    • Xenobiologist
    • 18. Juli 2008 um 15:01

    Na siehste! Am Ende wird alles gut :rolleyes:

  • TCPListen Problem

    • Xenobiologist
    • 18. Juli 2008 um 14:37

    Hi,

    es gibt doch schon so viele Bsp für CS warum willst du das Rad neu schreiben :D

    Mega

  • msi ausführen?

    • Xenobiologist
    • 18. Juli 2008 um 14:29

    Oh oh, wir schmeißen Empirum bald raus. Frag mich aber nicht warum. (Ich glaube nur wegen der Kosten)

    Mega

  • ProcessList mit CPU-Last in %?

    • Xenobiologist
    • 18. Juli 2008 um 14:03

    Hi,

    das ist auch Quatsch. Was soll das bringen? Es gibt viele Prozesse die kurzfr. 100 % CPU einnehmen.

    Mega

  • Art des Speichers auslesen

    • Xenobiologist
    • 18. Juli 2008 um 14:01

    Hi,

    hilft das?

    Spoiler anzeigen
    [autoit]

    #include<Array.au3>
    Local $re
    _ComputerGetMemory($re)
    _ArrayDisplay($re)

    [/autoit] [autoit][/autoit] [autoit]

    Func _ComputerGetMemory(ByRef $aMemoryInfo)
    Local $colItems, $objWMIService, $objItem
    Dim $aMemoryInfo[1][28], $i = 1

    [/autoit] [autoit][/autoit] [autoit]

    $objWMIService = ObjGet("winmgmts:\\" & $cI_Compname & "\root\CIMV2")
    $colItems = $objWMIService.ExecQuery("SELECT * FROM Win32_PhysicalMemory", "WQL", $wbemFlagReturnImmediately + $wbemFlagForwardOnly)

    [/autoit] [autoit][/autoit] [autoit]

    If IsObj($colItems) Then
    For $objItem In $colItems
    ReDim $aMemoryInfo[UBound($aMemoryInfo) + 1][28]
    $aMemoryInfo[$i][0] = $objItem.Name
    $aMemoryInfo[$i][1] = $objItem.BankLabel
    $aMemoryInfo[$i][2] = $objItem.Capacity
    $aMemoryInfo[$i][3] = $objItem.CreationClassName
    $aMemoryInfo[$i][4] = $objItem.Description
    $aMemoryInfo[$i][5] = $objItem.DataWidth
    $aMemoryInfo[$i][6] = $objItem.DeviceLocator
    $aMemoryInfo[$i][7] = $objItem.FormFactor
    $aMemoryInfo[$i][8] = $objItem.HotSwappable
    $aMemoryInfo[$i][9] = $objItem.InterleaveDataDepth
    $aMemoryInfo[$i][10] = $objItem.InterleavePosition
    $aMemoryInfo[$i][11] = $objItem.Manufacturer
    $aMemoryInfo[$i][12] = $objItem.MemoryType
    $aMemoryInfo[$i][13] = $objItem.Model
    $aMemoryInfo[$i][14] = $objItem.OtherIdentifyingInfo
    $aMemoryInfo[$i][15] = $objItem.PartNumber
    $aMemoryInfo[$i][16] = $objItem.PositionInRow
    $aMemoryInfo[$i][17] = $objItem.PoweredOn
    $aMemoryInfo[$i][18] = $objItem.Removable
    $aMemoryInfo[$i][19] = $objItem.Replaceable
    $aMemoryInfo[$i][20] = $objItem.SerialNumber
    $aMemoryInfo[$i][21] = $objItem.SKU
    $aMemoryInfo[$i][22] = $objItem.Speed
    $aMemoryInfo[$i][23] = $objItem.Status
    $aMemoryInfo[$i][24] = $objItem.Tag
    $aMemoryInfo[$i][25] = $objItem.TotalWidth
    $aMemoryInfo[$i][26] = $objItem.TypeDetail
    $aMemoryInfo[$i][27] = $objItem.Version
    $i += 1
    Next
    $aMemoryInfo[0][0] = UBound($aMemoryInfo) - 1
    If $aMemoryInfo[0][0] < 1 Then
    SetError(1, 1, 0)
    EndIf
    Else
    SetError(1, 2, 0)
    EndIf
    EndFunc ;_ComputerGetMemory

    [/autoit]

    Mega

  • FileWrite geht nicht!!

    • Xenobiologist
    • 18. Juli 2008 um 13:56

    Ich würde workingdir sowie ersetzen. Z.b. durch ScriptDir.

    Mega

Spenden

Jeder Euro hilft uns, Euch zu helfen.

Download

AutoIt Tutorial
AutoIt Buch
Onlinehilfe
AutoIt Entwickler
  1. Datenschutzerklärung
  2. Impressum
  3. Shoutbox-Archiv
Community-Software: WoltLab Suite™