Beiträge von Xenobiologist
-
-
Herzlichen Glückwunsch!
So long,
Mega
-
-
HI,
schau dir diesen Befehl an
GUICtrlSetBkColor(-1,0x00ff00) ; Green
So long,
Mega
-
HI,
kein Problem. Da solltest du evtl. auch schon ein paar Implementierungsbeispiele finden können.
So long,
Mega
-
HI,
hmmh was passiert denn, wenn du das Object quasi initialisierst?
Sprich $bla = 0
So long,
Mega
-
HI,
such mal nach devcon
So long,
Mega
-
HI,
naja
If IniRead(p1...) <> IniRead(p2...) Then ....
und das in einer Schleife für die ganzen Werte
So long,
Mega
-
-
Die Version ist wichtig! Englisch!!!
So long,
Mega
-
FileInstall
So long,
Mega
-
Hi,
welche Version?
Direkt aus der Hilfe
Spoiler anzeigen
[autoit]
[/autoit] [autoit][/autoit] [autoit]
; Example 1
#include <inet.au3>
Dim $sResult, $sIp
TCPStartup()
$sIp = TCPNameToIP("hiddensoft.com")
$sResult = _TCPIpToName ($sIp)
If @error Then
MsgBox(0, "_TCPIpToName()", "@error = " & @error & @LF & "@extended = " & @extended)
Else
MsgBox(0, "hiddensoft.com realy is:", $sResult)
EndIf; Example 2
[/autoit]
#include <array.au3>
#include <inet.au3>
Dim $aResult, $sIp
TCPStartup()
$sIp = _GetIP()
$aResult = _TCPIpToName ($sIp, 1)
If @error Then
MsgBox(0, "_TCPIpToName()", "@error = " & @error & @LF & "@extended = " & @extended)
Else
_ArrayDisplay($aResult, "Local Hostname(s)")
EndIfSo long,
Mega
-
Hi,
dies hätte ich noch :
Spoiler anzeigen
[autoit]
[/autoit] [autoit][/autoit] [autoit]
$SYSTEM_POWER_STATUS = DllStructCreate("byte;byte;byte;byte;int;int")$test = DllCall("kernel32.dll", "int", "GetSystemPowerStatus", _
[/autoit] [autoit][/autoit] [autoit]
"ptr", DllStructGetPtr($SYSTEM_POWER_STATUS))If $test[0] Then
[/autoit] [autoit][/autoit] [autoit]
MsgBox(4096, "", DllStructGetData($SYSTEM_POWER_STATUS, 1))
MsgBox(4096, "", DllStructGetData($SYSTEM_POWER_STATUS, 3))
EndIf#cs
[/autoit]
SYSTEM_POWER_STATUS
Contains information about the power status of the system.
typedef struct _SYSTEM_POWER_STATUS {
BYTE ACLineStatus;
BYTE BatteryFlag;
BYTE BatteryLifePercent;
BYTE Reserved1;
DWORD BatteryLifeTime;
DWORD BatteryFullLifeTime;
} SYSTEM_POWER_STATUS,
*LPSYSTEM_POWER_STATUS;
Members
ACLineStatus
The AC power status. This member can be one of the following values.
Value Meaning
0 Offline
1 Online
255 Unknown status
BatteryFlag
The battery charge status. This member can contain one or more of the following flags.
Value Meaning
1 High—the battery capacity is at more than 66 percent
2 Low—the battery capacity is at less than 33 percent
4 Critical—the battery capacity is at less than five percent
8 Charging
128 No system battery
255 Unknown status—unable to read the battery flag information
The value is zero if the battery is not being charged and the battery capacity is between low and high.
BatteryLifePercent
The percentage of full battery charge remaining. This member can be a value in the range 0 to 100, or 255 if status is unknown.
Reserved1
Reserved; must be zero.
BatteryLifeTime
The number of seconds of battery life remaining, or –1 if remaining seconds are unknown.
BatteryFullLifeTime
The number of seconds of battery life when at full charge, or –1 if full battery lifetime is unknown.
#ceSo long,
Mega
-
Hi,
steht doch in der Hilfe.
So long,
Mega
-
Hi,
paßt zu
Spoiler anzeigen
[autoit]$wbemFlagReturnImmediately = 0x10
[/autoit] [autoit][/autoit] [autoit]
$wbemFlagForwardOnly = 0x20
$colItems = ""
$strComputer = "localhost"$Output=""
[/autoit] [autoit][/autoit] [autoit]
$Output = $Output & "Computer: " & $strComputer & @CRLF
$objWMIService = ObjGet("winmgmts:\\" & $strComputer & "\root\CIMV2")
$colItems = $objWMIService.ExecQuery("SELECT * FROM Win32_Battery", "WQL", _
$wbemFlagReturnImmediately + $wbemFlagForwardOnly)If IsObj($colItems) then
[/autoit]
For $objItem In $colItems
$Output = $Output & "BatteryRechargeTime: " & $objItem.BatteryRechargeTime & @CRLF
$Output = $Output & "BatteryStatus: " & $objItem.BatteryStatus & @CRLF
$Output = $Output & "EstimatedChargeRemaining: " & $objItem.EstimatedChargeRemaining & @CRLF
$Output = $Output & "EstimatedRunTime: " & $objItem.EstimatedRunTime & @CRLF
$Output = $Output & "ExpectedBatteryLife: " & $objItem.ExpectedBatteryLife & @CRLF
$Output = $Output & "ExpectedLife: " & $objItem.ExpectedLife & @CRLF
$Output = $Output & "Status: " & $objItem.Status & @CRLF
$Output = $Output & "TimeToFullCharge: " & $objItem.TimeToFullCharge & @CRLF
Next
ConsoleWrite($Output)
Else
Msgbox(0,"WMI Output","No WMI Objects Found for class: " & "Win32_Battery" )
EndifSo long,
Mega
-
Zitat
Original von Xenobiologist
Hi,wie hast du dir das denn vorgestellt? Entweder du prüfst ob das Abbruchkriterium ausgeslöst wurde, oder du nutzt eine Funktion die es tut.
Anders geht es nunmal nicht.
So long,
Mega
Hi,
lies es aus dem Zitat. Entweder du oder die Funktion - EINER muss prüfen, sonst geht es nicht!So long,
Mega
-
HI,
zeig mal deinen Zwischenstand.
@Au3Lib : Die wird demnächst obsolete und es gibt aber auch einen zip zum Download.
So long,
Mega
-
Hi,
das glaube ich nicht. Zeig mal dein Skript.
So long,
Mega
-
Hi,
du kannst die Styles auch kombinieren.
So long,
Mega
-
Hi,
vielleicht solltest du die Lösung auch posten, damit andere davon ebenfalls profitieren können.
So long,
Mega