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. FireFlyer

Beiträge von FireFlyer

  • Progresset mit varierbarer zahl genau bestimmen ?

    • FireFlyer
    • 8. Juni 2008 um 02:20

    also erstmal brauchst du etwas absolutes um einen bezugspunkt zu setzen... klar das If $der50 nicht geht denn du musst schon einen operator angeben also vllt so? If $der/2 = ja keine ahnung was.. ist ja quasi immer der fall... was hat denn dein script überhaupt für einen sinn?

    Wenn er die Hälfte der Zahl hat???? das versteh ich auch net... wie kann er denn die hälfte haben wenns immer ne andere Zahl ist?

    Ach jetzt chegg ich das :D

    so?:

    Spoiler anzeigen
    [autoit]

    Local $der
    $der = FileReadLine("file.txt", 1)
    for $i = 1 to $der
    $1 = FileReadLine($filename0,$i)
    $2 = FileReadLine($filename3,$i)
    Inetget($Ip&$1,@ScriptDir &$2)
    $prozent = $i/$der*100
    $prozent = StringSplit($prozent, ".")
    If IsArray($prozent) Then ProgressSet(50,50,$prozent[1]&" %")
    Next
    Sleep(200)
    ProgressOff()

    [/autoit]
  • Text auslesen

    • FireFlyer
    • 6. Juni 2008 um 13:54

    cs rcon und hlsw haben garnix mit autoit zu tun

  • Text auslesen

    • FireFlyer
    • 6. Juni 2008 um 12:42

    oha von was für einem spiel denn?
    also text von nem bild auslesen... ohje das wird übel dafür bräuchtest du ne OCR engine sowas wie scanner zur texterkennung benutzen...
    aber du kannst ja mal schauen wenn du z.B. bei nem CS server das Rcon hast kannst du den chat auch mit HLSW sehen den könntest du problemlos auslesen...

  • Sicher ist Sicher...

    • FireFlyer
    • 5. Juni 2008 um 15:37

    ich wuerde den Pfad zur 7-Zip Datei folgendermassen auslesen:

    [autoit]

    Global $7zip = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\7-Zip", "Path")&"\7z.exe"

    [/autoit]


    Desweiteren: wiso machst du die dateien net gleich in ein 7z format? ist vieel kleiner da es einen besseren algorithmus hat.
    Und ich wuerde an deiner stelle die cmd fenster verstecken mid @sw_hide da man sonst den updatevorgang abbrechen kann :)

    so das waeren meine tipps dazu :) hoffe sie helfen dir etwas, aber an sonsten is dein proggie erste sahne :)

  • Temperaturen auslesen

    • FireFlyer
    • 5. Juni 2008 um 15:13

    Danke schonmal für die Antwort... irgendwann ich weiß nicht wann werd ich dieses Rätsel lösen... ich kann bald schon net mehr schlafen 24 std. dauergoogeln :D


    also wenn das über treiber geht... ich weiß net programme wie everest usw müssten dann ja rieesig sein um das alles auslesen zu können von jeder x-belibigen hardware... ich bin fast immer noch der meinung das es eine "einheitliche" methode geben muss... sonst wäre das ja der wahnsinn!

    8| 8| 8| 8| 8| 8| 8|
    http://www.almico.com/forumsensors.php
    ich glaub die muss man doch unterschiedlich auslesen DAMN!

  • Temperaturen auslesen

    • FireFlyer
    • 4. Juni 2008 um 23:25

    http://www.groundworkopensource.com/community/forums/viewtopic.php?f=22&t=1279

    hab mal noch das hier gefunden allerdings gibt es bei mir diese hier beschriebene Exe net :(

  • text aus internetseite auslesen

    • FireFlyer
    • 4. Juni 2008 um 13:50
    [autoit]

    $search = "kommt"
    $bodyreadtext = "das kommt eigentlich aus dem Bodyreadtext"
    If StringInStr($search, $bodyreadtext) <> 0 Then MsgBox(0, "Gefunden", $search)

    [/autoit]


    hier noch der rest dazu was du brauchst

  • Maus Zeiger in Sanduhr verwandeln

    • FireFlyer
    • 4. Juni 2008 um 13:45

    Hmm also ob das ohne GUI geht....
    ansonsten ist es ja GUISetCursor.. da du aber keine GUI zur stelle hast... eventuell geht es noch per DLL aber davon habe ich leider zu wenig ahnung

    Als alternative würde ich dir die Traytip Funktion empfehlen

    [autoit]

    TrayTip("Packen", "Die Dateien werden gepackt bitte warten...", 5000)

    [/autoit]


    z.b. halt :D

  • Temperaturen auslesen

    • FireFlyer
    • 4. Juni 2008 um 13:32

    sach ma haltet mich jetzt nich für blöd aber ich sitze hier grade in der SChule und spiele wieder mit der guten alten wbemtest.exe :D...
    Witzigerweise geht das hier, also mit MSAcpi_ThermalZoneTemperature hab ich bei CurrentTemperature einen wert von 3197 0xC7D (Kelvin) d.h. die letzte stelle ist eine Dezimalstelle oder? also 319,7 K = 46 °C könnte ja hinkommen, dieser wert verändert sich allerdings nicht wirklich... (ist seit ner halben stunde gleich)
    Von was ist denn das abhängig ob man aus MSAcpi_ThermalZoneTemperature oder von Win32_TemperatureProbe das auslesen kann?... vllt vom mainboard selbst? Wenn ja ich hab ein Dell XPS MB und dual core 2 duo Prozessor drinne.
    Andererseits müssten dann ja Everest und co über eine riesige Datenbank von "Möglichkeiten" zum abfragen haben damit sie von jedem PC die Temperatur auslesen können, oder es gibt noch eine andere bessere Möglichkeit die Unabhängig funktioniert, ich habe allerdings schon ewig in google gesucht und immer nur diese Möglichkeiten gefunden:
    \root\cimv2 --> Win32_TemperatureProbe
    \root\wmi --> MSAcpi_ThermalZoneTemperature

    beide Möglichkeiten funktionieren auf meinen beiden PCs daheim nicht, bei win32... findet er einfach kein Objekt und bei MSAcpi bekomm ich sogar en error (wbemtest.exe)
    Hatte heute wie gesagt mit dem Schulrechner hier einen ersten erfolg...

    GRML das muss doch verflucht nochmal gehn das kann doch net wahr sein...!! ;( ;( ;( ;(

    //Edit: geht das eigentlich auch so wie in visual basic dass man einfach alle texte abfragt?

    Code
    For each $ka in $kas
    .... $ka.objgettext()
  • Combobox Hilfe! Eintrag einer ComboBox..

    • FireFlyer
    • 3. Juni 2008 um 16:58
    Spoiler anzeigen
    [autoit]

    #include <GUIConstants.au3>
    Opt("GUIOnEventMode", 1)
    GUICreate("combotest", 200, 200)
    $combo = GUICtrlCreateCombo("", 5, 5)
    GUICtrlSetData($combo, "|item1|item2")
    GUICtrlSetOnEvent($combo, "_comboread")
    GUISetOnEvent($GUI_EVENT_CLOSE, "_exit")
    GUISetState()

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

    While 1
    WEnd

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

    Func _comboread()
    $read = GUICtrlRead($combo)
    If $read = "item1" Then MsgBox(0, "Combobox", $read)
    If $read = "item2" Then MsgBox(0, "Combobox", $read)
    EndFunc

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

    Func _exit()
    Exit
    EndFunc

    [/autoit]


    is nich getestet aber sollte gehn ;)

  • wie ist die taste - MAUSrad nach vorne/hoch ?

    • FireFlyer
    • 3. Juni 2008 um 01:48

    öhhm sachma... wiso nehmen wir net das script von progandy? :D funzt doch super :D... hab nurnoch hwinhook unter global gesetzt damit der fehler net kommt ;)

    Spoiler anzeigen
    [autoit]

    #include <Misc.au3>

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

    $struct = "DWORD vkCode;" _
    &"DWORD scanCode;" _
    &"long flags;" _
    &"ULONG_PTR dwExtraInfo"
    HotKeySet("{F2}","Guid")
    Global $hMouseHook, $WheelMoving, $hWinHook[1]

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

    $CallbackMouseProc = TogglePlugMouse()

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

    #cs
    ToolTip("Wheel captured",2,2,"Capture Mose")
    While 1
    Sleep(100)
    $WheelMsg = _GetWheelMove()
    Select
    Case $WheelMsg = "U" ;UP
    ToolTip("UP")
    Case $WheelMsg = "D" ;DOWN
    ToolTip("Down")
    Case Else
    ToolTip("Nix")
    EndSelect
    WEnd
    #ce ;Progandys beispiel :)

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

    ;code von td1000
    Opt("GUIOnEventMode", 1) ; mit dieser Option kannst Du Funktionen aufrufen

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

    OPt("SendKeyDelay",100) ; geschwindigkeit

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

    OPt("SendKeyDownDelay",70) ; geschwindigkeit

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

    While 1
    Sleep(100)
    $WheelMsg = _GetWheelMove()
    Select
    Case $WheelMsg = "U" ;UP
    meine_funktion1()
    EndSelect
    WEnd

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

    Func meine_funktion1()

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

    send ("^h+{F2}+^h") ; text bzw zahlen die geschreiben werden sollen1

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

    EndFunc
    ;end code td100ß
    ;BlockInput(0)
    Func GUID()
    TogglePlugMouse($CallbackMouseProc)
    ToolTip("")
    MsgBox(4096, "", "KeyBoard is enabled!")
    Exit
    EndFunc

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

    Exit

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

    Func _GetWheelMove()
    Local $x = StringLeft($WheelMoving,1)
    $WheelMoving = StringTrimLeft($WheelMoving,1)
    Return $x
    EndFunc
    Func TogglePlugMouse($hCallProc=0)
    If IsArray($hMouseHook) Then
    DllCall("user32.dll", "int", "UnhookWindowsHookEx", "hwnd", $hMouseHook[0])
    DllCallbackFree($hCallProc)
    Return 0
    EndIf

    Local Const $WH_MOUSE_LL = 14
    ;~ Local Const $WH_MOUSE = 7
    Local $hMouseProc = DllCallbackRegister("_MouseProc", "int", "int;ptr;ptr")
    Local $hMod = DllCall("kernel32.dll", "hwnd", "GetModuleHandle", "ptr", 0)
    $hMouseHook = DllCall("user32.dll", "hwnd", "SetWindowsHookEx", _
    "int", $WH_MOUSE_LL, _
    "ptr", DllCallbackGetPtr($hMouseProc), _
    "hwnd", $hMod[0], _
    "dword", 0)
    Return $hMouseProc
    EndFunc

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

    Func _MouseProc($nCode, $wParam, $lParam)
    If $nCode < 0 Then
    Local $iRet = DllCall("user32.dll", "long", "CallNextHookEx", "hwnd", $hWinHook[0], _
    "int", $nCode, _
    "ptr", $wParam, _
    "ptr", $lParam)
    Return $iRet[0]
    EndIf
    $dllstruct = DllStructCreate($struct,$lParam)
    ;~ If DllStructGetData($dllstruct,1) = 0x1B And _IsPressed("11") Then $CTRL_ESC_Pressed = True
    If $wParam = 0x20A Then
    If DllStructGetData($dllstruct,3) > 0 Then
    ConsoleWrite("Up" & @CRLF)
    $WheelMoving &= "U"
    ElseIf DllStructGetData($dllstruct,3) < 0 Then
    ConsoleWrite("Down" & @CRLF)
    $WheelMoving &= "D"
    EndIf
    EndIf
    ;~ ConsoleWrite($wParam & " - " & DllStructGetData($dllstruct,1) & " - " & DllStructGetData($dllstruct,2)& " - " & DllStructGetData($dllstruct,3)& " - " & DllStructGetData($dllstruct,4) & @LF)
    Return 0
    EndFunc

    [/autoit]

    So nun sagen wir noch artig Danke an progandy ;)

    So sollte dein script nun funktionieren...
    @progandy... woher weisst du das immer mit den DLLs? ... ich hab davon kein plan :(

  • wie ist die taste - MAUSrad nach vorne/hoch ?

    • FireFlyer
    • 2. Juni 2008 um 19:25

    hab doch noch was gefunden!!!!!

    Zitat

    _MouseSetOnEvent($EVENT [, "FuncName" [, $sParam1 [, $sParam2]]])

    Available Events Constants:


    $MOUSE_MOVE_EVENT - Mouse moving.
    $MOUSE_PRIMARYDOWN_EVENT - Primary mouse button down.
    $MOUSE_PRIMARYUP_EVENT - Primary mouse button up.
    $MOUSE_SECONDARYDOWN_EVENT - Secondary mouse button down.
    $MOUSE_SECONDARYUP_EVENT - Secondary mouse button up.
    $MOUSE_WHELLDOWN_EVENT - Whell mouse button pressed down.
    $MOUSE_WHELLUP_EVENT - Whell mouse button up.
    $MOUSE_WHELLSCROLL_EVENT - Whell mouse scroll.
    $MOUSE_EXTRABUTTONDOWN_EVENT - Side mouse button down (usualy navigating next/back buttons).
    $MOUSE_EXTRABUTTONUP_EVENT - Side mouse button up.

    MouseSetOnEvent_UDF ( 2.31K )

    Alles anzeigen

    damn, aber auch das entscheidet nicht zwischen up und down :(

  • wie ist die taste - MAUSrad nach vorne/hoch ?

    • FireFlyer
    • 2. Juni 2008 um 19:11

    vielleicht das hier?

    Zitat

    #Include <WinAPI.au3>
    _WinAPI_Mouse_Event($iFlags[, $iX = 0[, $iY = 0[, $iData = 0[, $iExtraInfo = 0]]]])
    Parameters
    $iFlags A set of flag bits that specify various aspects of mouse motion and button clicking. The bits
    in this parameter can be any reasonable combination of the following values:
    $MOUSEEVENTF_ABSOLUTE - Specifies that the $iX and $iY parameters contain normal absolute coordinates. If
    not set, those parameters contain relative data. The change in position since the last reported position.
    This flag can be set, or not set, regardless of what kind of mouse or mouse-like device, if any, is connected
    to the system.
    $MOUSEEVENTF_MOVE - Specifies that movement occurred
    $MOUSEEVENTF_LEFTDOWN - Specifies that the left button changed to down
    $MOUSEEVENTF_LEFTUP - Specifies that the left button changed to up
    $MOUSEEVENTF_RIGHTDOWN - Specifies that the right button changed to down
    $MOUSEEVENTF_RIGHTUP - Specifies that the right button changed to up
    $MOUSEEVENTF_MIDDLEDOWN - Specifies that the middle button changed to down
    $MOUSEEVENTF_MIDDLEUP - Specifies that the middle button changed to up
    $MOUSEEVENTF_WHEEL - Specifies that the wheel has been moved, if the mouse has a wheel $iX Specifies the mouse's absolute position along the X axis or its amount of motion since the
    last mouse event was generated depending on the setting of $MOUSEEVENTF_ABSOLUTE. Absolute data is given as
    the mouse's actual X coordinate relative data is given as the number of mickeys moved. $iY Specifies the mouse's absolute position along the Y axis or its amount of motion since the
    last mouse event was generated depending on the setting of $MOUSEEVENTF_ABSOLUTE. Absolute data is given as
    the mouse's actual Y coordinate relative data is given as the number of mickeys moved. $iData If iFlags is $MOUSEEVENTF_WHEEL, then iData specifies the amount of wheel movement. A positive
    value indicates that the wheel was rotated forward away from the user. A negative value indicates that the
    wheel was rotated backward, toward the user. One wheel click is defined as $WHEEL_DELTA, which is 120. If
    iFlags is not $MOUSEEVENTF_WHEEL, then $iData should be zero. $iExtraInfo Specifies a 32 bit value associated with the mouse event

    Alles anzeigen

    sry... das simuliert nur dass das rad gedreht wird... *sry* :D
    Aber vielleicht können die Cracks Xeno, oder pee oder GTA oder was weiss ich vllt damit was anfangen :)

    Spoiler anzeigen
    [autoit]

    Func _WinAPI_Mouse_Event($iFlags, $iX = 0, $iY = 0, $iData = 0, $iExtraInfo = 0)
    DllCall("User32.dll", "none", "mouse_event", "int", $iFlags, "int", $iX, "int", $iY, "int", $iData, "int", $iExtraInfo)
    EndFunc ;==>_WinAPI_Mouse_Event

    [/autoit]


    So funzt die _WinAPI_Mouse_Event funktione vllt kann man das ja auch umkehren... keine ahnung kenn mich zu wenig mit DLLs aus

  • Temperaturen auslesen

    • FireFlyer
    • 2. Juni 2008 um 17:22

    noch einer mit VB:

    Zitat

    Anthony,
    You can use WMI if your hardware is compliant. Use the wbemtest.exe
    utility to confirm whether or not you can even retrieve the
    temperature. There are two ways I know of to retrieve the temperature
    information.

    1) Using wbemtest.exe connect to the namespace "root\cimv2" (without
    quotes). Click the Query button and enter "select * from
    Win32_TemperatureProbe". Double click on any result you get back and
    look for the CurrentReading property in the properties section. The
    value you see there should be the temperature. If it just shows
    "<null>" then this option will not work.

    2) Using wbemtest.ext connect to the namespace "root\WMI". Enter the
    query "select * from MSAcpi_ThermalZoneTemperature". Double click on
    any result you get back and look for the CurrentTemperature property.
    The value is in tenths of degrees Kelvin.

    Using #2 I can see that I have 3 temperature probes in my laptop. I
    can view their values in .NET using the following code. I apologize in
    advance for using C# in VB forum.

    // Reference the System.Management.dll assembly first.
    using System.Management;

    public class Temperature
    {
    public static void Main()
    {
    string scope = @"root\WMI";
    string query = @"select * from MSAcpi_ThermalZoneTemperature";

    ManagementObjectSearcher searcher = new
    ManagementObjectSearcher(scope, query);

    foreach (ManagementObject obj in searcher.Get())
    {
    Console.WriteLine(obj.Properties["CurrentTemperature"].Value);
    }
    }


    }

    Brian
    anthony wrote:
    > One the computer I am programmig I could see the CPU temperature in
    > the BIOS, is there a system DLL in VB.NET that I can call to
    > display the temperature in my software?
    > Thanks!

    Alles anzeigen

    Ich habe seine Anweisungen mal befolgt mit dem wbemtest.exe bei mir kommt leider bei beiden Methoden <null> raus wiso?!... gibts doch net...

    Spoiler anzeigen

    [Blockierte Grafik: http://fire.public-enemy-clan.de/cimv2.jpg]

    Spoiler anzeigen

    [Blockierte Grafik: http://fire.public-enemy-clan.de/wmi.jpg]


    Achso ja... bei dieser Abfrage kommt nur ein ergebnis wenn ich untendran das Häkchen bei "Klassenprototyp anfordern" setze ansonsten bekomm ich garnix also 0 Objekte

  • Temperaturen auslesen

    • FireFlyer
    • 2. Juni 2008 um 17:15

    Hier hatte noch jemand das selbe Problem in VB... leider kenn ich mich damit net aus :(

    Zitat

    Hi there

    This works for me: (using System.Management, & System.Windows.Forms for the MessageBox)

    ManagementClass processClass = newManagementClass(@"root\WMI:MSAcpi_ThermalZoneTemperature");

    foreach (ManagementObject service in processClass.GetInstances())

    {

    }
      

    I found that with all of these posts, some aspects of the replies are right, but in some they fall short.

    When you combine the expertise, you come out at something workable.

    If you're trying to do the Win32_TemperatureProbe through WMI and you're getting nothing back, it is most likely that your motherboard doesn't have the appropriate driver, needed to expose the value.

    If you check in Device Manager under System Devices, you should see ACPI Thermal Zone. If it's there, then the code above should return the current cpu temperature.

    If your motherboard drivers exposed the necessary info, then this code from other forums probably would work for you:


    SelectQuery myQuery = new SelectQuery("SELECT CurrentReading from Win32_TemperatureProbe");

    ManagementObjectSearcher mySearcher = new ManagementObjectSearcher(myQuery);


    foreach (ManagementBaseObject obj in mySearcher.Get())

     {

     } 

    Unfortunately it returns nothing on my box, and I don't have the resources here to test it on others.

    But my feeling is that MSAcpi_ThermalZoneTemperature will work for you.

    And btw, the output is in 10ths of Kelvin, so to convert, you can use this method...

    staticdecimal ConvertToCelsius(string reading)
     {

     }

    L8r

    M

    Alles anzeigen
  • Temperaturen auslesen

    • FireFlyer
    • 2. Juni 2008 um 16:49

    Hier ist ein Beispielscript das bei mir aber nicht funktioniert :(

    Spoiler anzeigen
    [autoit]

    ; Generated by AutoIt Scriptomatic

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

    $wbemFlagReturnImmediately = 0x10
    $wbemFlagForwardOnly = 0x20
    $colItems = ""
    $strComputer = "localhost"

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

    $Output=""
    $Output = $Output & "Computer: " & $strComputer & @CRLF
    $Output = $Output & "==========================================" & @CRLF
    $objWMIService = ObjGet("winmgmts:\\" & $strComputer & "\root\CIMV2")
    $colItems = $objWMIService.ExecQuery("SELECT * FROM Win32_TemperatureProbe", "WQL", $wbemFlagReturnImmediately + $wbemFlagForwardOnly)
    If IsObj($colItems) then
    For $objItem In $colItems
    $Output = $Output & "Accuracy: " & $objItem.Accuracy & @CRLF
    $Output = $Output & "Availability: " & $objItem.Availability & @CRLF
    $Output = $Output & "Caption: " & $objItem.Caption & @CRLF
    $Output = $Output & "ConfigManagerErrorCode: " & $objItem.ConfigManagerErrorCode & @CRLF
    $Output = $Output & "ConfigManagerUserConfig: " & $objItem.ConfigManagerUserConfig & @CRLF
    $Output = $Output & "CreationClassName: " & $objItem.CreationClassName & @CRLF
    $Output = $Output & "CurrentReading: " & $objItem.CurrentReading & @CRLF
    $Output = $Output & "Description: " & $objItem.Description & @CRLF
    $Output = $Output & "DeviceID: " & $objItem.DeviceID & @CRLF
    $Output = $Output & "ErrorCleared: " & $objItem.ErrorCleared & @CRLF
    $Output = $Output & "ErrorDescription: " & $objItem.ErrorDescription & @CRLF
    $Output = $Output & "InstallDate: " & WMIDateStringToDate($objItem.InstallDate) & @CRLF
    $Output = $Output & "IsLinear: " & $objItem.IsLinear & @CRLF
    $Output = $Output & "LastErrorCode: " & $objItem.LastErrorCode & @CRLF
    $Output = $Output & "LowerThresholdCritical: " & $objItem.LowerThresholdCritical & @CRLF
    $Output = $Output & "LowerThresholdFatal: " & $objItem.LowerThresholdFatal & @CRLF
    $Output = $Output & "LowerThresholdNonCritical: " & $objItem.LowerThresholdNonCritical & @CRLF
    $Output = $Output & "MaxReadable: " & $objItem.MaxReadable & @CRLF
    $Output = $Output & "MinReadable: " & $objItem.MinReadable & @CRLF
    $Output = $Output & "Name: " & $objItem.Name & @CRLF
    $Output = $Output & "NominalReading: " & $objItem.NominalReading & @CRLF
    $Output = $Output & "NormalMax: " & $objItem.NormalMax & @CRLF
    $Output = $Output & "NormalMin: " & $objItem.NormalMin & @CRLF
    $Output = $Output & "PNPDeviceID: " & $objItem.PNPDeviceID & @CRLF
    $strPowerManagementCapabilities = $objItem.PowerManagementCapabilities(0)
    $Output = $Output & "PowerManagementCapabilities: " & $strPowerManagementCapabilities & @CRLF
    $Output = $Output & "PowerManagementSupported: " & $objItem.PowerManagementSupported & @CRLF
    $Output = $Output & "Resolution: " & $objItem.Resolution & @CRLF
    $Output = $Output & "Status: " & $objItem.Status & @CRLF
    $Output = $Output & "StatusInfo: " & $objItem.StatusInfo & @CRLF
    $Output = $Output & "SystemCreationClassName: " & $objItem.SystemCreationClassName & @CRLF
    $Output = $Output & "SystemName: " & $objItem.SystemName & @CRLF
    $Output = $Output & "Tolerance: " & $objItem.Tolerance & @CRLF
    $Output = $Output & "UpperThresholdCritical: " & $objItem.UpperThresholdCritical & @CRLF
    $Output = $Output & "UpperThresholdFatal: " & $objItem.UpperThresholdFatal & @CRLF
    $Output = $Output & "UpperThresholdNonCritical: " & $objItem.UpperThresholdNonCritical & @CRLF
    if Msgbox(1,"WMI Output",$Output) = 2 then ExitLoop
    $Output=""
    Next
    Else
    Msgbox(0,"WMI Output","No WMI Objects Found for class: " & "Win32_TemperatureProbe" )
    Endif

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

    Func WMIDateStringToDate($dtmDate)

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

    Return (StringMid($dtmDate, 5, 2) & "/" & _
    StringMid($dtmDate, 7, 2) & "/" & StringLeft($dtmDate, 4) _
    & " " & StringMid($dtmDate, 9, 2) & ":" & StringMid($dtmDate, 11, 2) & ":" & StringMid($dtmDate,13, 2))
    EndFunc

    [/autoit]

    Ich hab einfach mal rumprobiert und das hier: winmgmts:\\computername\root\CIMV2 in ausführen reingemacht :D
    Da kam dann sie haben nicht die ausreichenden Berechtigungen.... hab aber Adminrechte, naja keine ahnung ob das was zu sagen hat :D
    Was ich sonst noch zu dem Script sagen kann: Die For In schleife läuft bei mir nicht ein einziges mal durch als ob die Select abfrage nix ausspuckt man verzeihe mir meine Ausdrucksweise ^^
    Hier gibts dazu noch den passenden Senf von Microsoft :D : http://msdn.microsoft.com/en-us/library/aa394493(VS.85).aspx

  • Temperaturen auslesen

    • FireFlyer
    • 2. Juni 2008 um 00:21

    Moin Moin,

    ich weiss das es hier schon öfters gefragt wurde und auch im englischen forum ist das thema oft behandelt worden, nur jetzt frag ich halt nochmal da anscheinend niemand zu einer lösung gekommen zu sein scheint... oder diese Themen auch einfach wieder vergessen wurden
    Ich möchte einfach alle vorhandenen Temperatur sensoren auslesen primär natürlich den Prozessor-Sensor ;)
    Ich bin noch optimistisch dass es ja irgendwie gehen muss :D denn everest und co können es ja auch :)

    Wär schön wenn mal jemand zu ner Lösung gekommen ist :=)

  • InetFileExists ?

    • FireFlyer
    • 1. Juni 2008 um 20:52
    Zitat

    mein Problem ist wenn hinter der angegebenen URL (hinter der die UpdateVersion.txt hinterlegt ist) nichts ist bzw. die URL nicht erreichbar ist startet er die UpdateFunktion weil er nichts zum Vergleichen hatt daher wollte ich fragen ob ich irgendwie vorher prüfen kann ob die url erreichbar ist und ob die datei hinter der url liegt

    Lest genauer ;)
    Wenn die Datei jetzt leer wäre hat er genau so einen String mit "" oder 0 d.h. Das Programm würde auch dann weitermachen und seinen Fehler erzeugen deswegen hab ich wirklich die dateigröße gewählt damit in der Datei auch was drinstehn muss ;)

  • coordinaten

    • FireFlyer
    • 1. Juni 2008 um 17:46

    Also dass sieht mir verdächtig nach einem bot aus :(...
    Aber generell würd ich dir empfehlen die funktionen WinActivate und WinActive in der Hilfe anzuschauen ;)

  • Bilder ändern für Würfelspiel

    • FireFlyer
    • 1. Juni 2008 um 17:44

    also normalerweise ganz einfach:
    Du nimmst alle 6 bildchen von dem Würfel und erstellst sie immer eine zeile untendran machst du die bildchen mit $GUI_HIDE wieder "unsichtbar"
    Und dann so wie du es schon richtig gesagt hattest, mit deiner IF-Abfrage wieder sichtbar $GUI_SHOW ;)

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™