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

  • Userpics von euch :)

    • Xenobiologist
    • 27. Februar 2008 um 15:09
    Zitat von Fast2

    Irgendwie hab ich mir euch alle anders vorgestellt...

    Zitat von peethebee


    peethebe

    Fast2 : Wie denn?

    @pee : deiner Biene wurde ein Flügel abgeschossen

  • Office 2003-Key-Auslese-Funktion falsch/fehlerhaft?

    • Xenobiologist
    • 27. Februar 2008 um 14:43
    Zitat von McPoldy

    Ich habe mal grade das Skritp was Mega gepostet hat getestet und bei mir zeigt er alle Daten richtig an, alle Seriennummern passen.
    @Mega, nettes Tool :thumbup:

    Hi,

    danke. Das war einer der Gründe warum ich damals angefangen habe mit Autoit. Ich wollte gucken ob unsere Kunden die Systeme verunstaltet haben. :P

    Könnte man mal neu und schön machen ... aber siw.exe erledigt das ja alles.

    Mega

  • Office 2003-Key-Auslese-Funktion falsch/fehlerhaft?

    • Xenobiologist
    • 27. Februar 2008 um 14:32

    Hi,

    kann es nicht testen, aber du kannst ja mal mit einem USB Stick an eins zwei Testrechner gehen und den Key mit siw.exe auslesen lassen und vergleichen.

    Mega

  • Office 2003-Key-Auslese-Funktion falsch/fehlerhaft?

    • Xenobiologist
    • 27. Februar 2008 um 14:24

    Hi,

    das sieht mir doch verdächtig nach diesem alten Skript von mir aus:

    Spoiler anzeigen
    [autoit]

    ; ----------------------------------------------------------------------------
    ;
    ; AutoIt Version: 3.1.1 beta
    ; Author: Thorsten Meger
    ;
    ; Script Function:
    ; Windows XP Information displayed in a Gui
    ;
    ; ----------------------------------------------------------------------------
    #include <GUIConstants.au3>

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

    $GUI = GUICreate("", 380, 315, -1, -1)
    GUISetFont(9, 700, -1, "MS Sans Serif")

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

    $windowsInformation_L = GUICtrlCreateLabel(" Windows Information", 5, 3, 290, 25)
    $status_L = GUICtrlCreateLabel("Information read ...", 20, 280, 200, 20)
    $description_L = GUICtrlCreateLabel("Description", 20, 58, 100, 20)
    $windowsType_L = GUICtrlCreateLabel("WindowsType", 20, 83, 100, 20)
    $serialNumber_L = GUICtrlCreateLabel("SerialNumber", 20, 108, 100, 20)
    $ProductKey_L = GUICtrlCreateLabel("ProductKey", 20, 133, 100, 20)
    $InstallDate_L = GUICtrlCreateLabel("InstallDate", 20, 158, 100, 20)
    $LastBootUpTime_L = GUICtrlCreateLabel("LastBootUpTime", 20, 183, 100, 20)
    $RegisteredOwner_L = GUICtrlCreateLabel("RegisteredOwner", 20, 208, 100, 20)
    $officeKey_L = GUICtrlCreateLabel("OfficeKey", 20, 233, 100, 20)

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

    $description_I = GUICtrlCreateInput("", 125, 55, 235, 20)
    $windowsType_I = GUICtrlCreateInput("", 125, 80, 235, 20)
    $serialNumber_I = GUICtrlCreateInput("", 125, 105, 235, 20)
    $ProductKey_I = GUICtrlCreateInput("", 125, 130, 235, 20)
    $InstallDate_I = GUICtrlCreateInput("", 125, 155, 235, 20)
    $LastBootUpTime_I = GUICtrlCreateInput("", 125, 180, 235, 20)
    $RegisteredOwner_I = GUICtrlCreateInput("", 125, 205, 235, 20)
    $officeKey_I = GUICtrlCreateInput("", 125, 230, 235, 20)

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

    $informationPanel_G = GUICtrlCreateGroup("Information Panel", 10, 35, 360, 225)
    $status_G = GUICtrlCreateGroup("Status", 10, 265, 360, 40)

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

    $font = "Comic Sans MS"
    GUICtrlSetColor($windowsInformation_L, 0xff0000)
    GUICtrlSetFont($windowsInformation_L, 16, 700, 4, $font)

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

    $progressbar = GUICtrlCreateProgress(140, 278, 220, 20)

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

    Global $product = ""
    Global $counter = 3
    Global $wait = 150

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

    GUISetState(@SW_SHOW)

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

    While 1
    $msg = GUIGetMsg()
    If $counter = 3 Then
    Sleep(1000)
    GUICtrlSetData($status_L, "Initialize ... " & $counter)
    progress()
    $counter -= 1
    ElseIf $counter = 2 Then
    GUICtrlSetData($status_L, "Initialize ... " & $counter)
    progress()
    $counter -= 1
    ElseIf $counter = 1 Then
    GUICtrlSetData($status_L, "Initialize ... " & $counter)
    progress()
    $counter -= 1
    ElseIf $counter = 0 Then
    GUICtrlSetData($status_L, "Ready ...")
    progress()
    $counter -= 1
    ElseIf $counter = -1 Then
    Dim $Bin = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "DigitalProductID")
    Dim $key4RegisteredOwner = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion"
    $objWMIService = ObjGet("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2")
    $colSettings = $objWMIService.ExecQuery ("Select * from Win32_OperatingSystem")

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

    For $objOperatingSystem In $colSettings
    Next
    GUICtrlSetData($description_I, StringMid($objOperatingSystem.Description, 1))
    GUICtrlSetData($windowsType_I, '(' & @OSVersion & ') ' & StringMid($objOperatingSystem.Caption, 19))
    GUICtrlSetData($serialNumber_I, StringMid($objOperatingSystem.SerialNumber, 1))
    GUICtrlSetData($ProductKey_I, DecodeProductKey($Bin))
    GUICtrlSetData($InstallDate_I, WMIDateStringToDate($objOperatingSystem.InstallDate))
    GUICtrlSetData($LastBootUpTime_I, WMIDateStringToDate($objOperatingSystem.LastBootUpTime))
    GUICtrlSetData($RegisteredOwner_I, RegRead($key4RegisteredOwner, "RegisteredOwner"))
    GUICtrlSetData($officeKey_I, getOfficeKey())
    GUICtrlSetData($officeKey_L, "Office " & $product)
    $counter -= 1
    ElseIf $counter < -1 Then
    Select
    Case $msg = $GUI_EVENT_CLOSE
    GUICtrlSetState($progressbar, $GUI_HIDE)
    GUICtrlSetData($status_L, "CU Mega")
    Sleep(2000)
    ExitLoop
    EndSelect
    EndIf
    WEnd
    Exit

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

    Func DecodeProductKey($BinaryDPID)
    Local $bKey[15]
    Local $sKey[29]
    Local $Digits[24]
    Local $Value = 0
    Local $hi = 0
    Local $n = 0
    Local $i = 0
    Local $dlen = 29
    Local $slen = 15
    Local $Result

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

    $Digits = StringSplit("BCDFGHJKMPQRTVWXY2346789", "")
    $BinaryDPID = StringMid($BinaryDPID, 105, 30)
    For $i = 1 To 29 Step 2
    $bKey[Int($i / 2) ] = Dec(StringMid($BinaryDPID, $i, 2))
    Next
    For $i = $dlen - 1 To 0 Step - 1
    If Mod(($i + 1), 6) = 0 Then
    $sKey[$i] = "-"
    Else
    $hi = 0
    For $n = $slen - 1 To 0 Step - 1
    $Value = BitOR(BitShift($hi, -8), $bKey[$n])
    $bKey[$n] = Int($Value / 24)
    $hi = Mod($Value, 24)
    Next
    $sKey[$i] = $Digits[$hi + 1]
    EndIf
    Next
    For $i = 0 To 28
    $Result = $Result & $sKey[$i]
    Next
    Return $Result
    EndFunc ;==>DecodeProductKey

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

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

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

    Func progress()
    If $counter = 3 Then
    For $i = 0 To 20 Step 1
    GUICtrlSetData($progressbar, $i)
    Sleep($wait / 20)
    Next
    ElseIf $counter = 2 Then
    For $i = 20 To 50 Step 1
    GUICtrlSetData($progressbar, $i)
    Sleep($wait / 30)
    Next
    ElseIf $counter = 1 Then
    For $i = 50 To 80 Step 1
    GUICtrlSetData($progressbar, $i)
    Sleep($wait / 30)
    Next
    ElseIf $counter = 0 Then
    For $i = 80 To 100 Step 1
    GUICtrlSetData($progressbar, $i)
    Sleep($wait / 20)
    Next
    GUICtrlSetState($progressbar, $GUI_SHOW)
    EndIf
    EndFunc ;==>progress

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

    Func getOfficeKey()
    Local $List[1]
    Local $i = 1
    $var = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\11.0\Common\InstallRoot", "Path")
    If $var <> "" Then
    $product = "2003"
    Dim $officeKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\11.0\Registration"
    Else
    $var = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\10.0\Common\InstallRoot", "Path")
    If @error <> 0 Then
    GUICtrlSetData($status_L, "Info: Unable to find installationPath, maybe no Office installed!")
    Return "No Office XP or 2003 found"
    EndIf
    If $var <> "" Then
    $product = "XP"
    Dim $officeKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\10.0\Registration"
    EndIf
    EndIf
    Dim $var = RegEnumKey($officeKey, $i)
    If @error <> 0 Then
    GUICtrlSetData($status_L, "Info: Unable to find REG_BINARY 'DigitalProductID', maybe no Office installed!")
    Return "No Office XP or 2003 found"
    Else
    $List[$i - 1] = RegRead($officeKey & "\" & $var, "DigitalProductID")
    If $List[$i - 1] = "" Then
    GUICtrlSetData($status_L, "Info: Unable to find REG_BINARY 'DigitalProductID', maybe no Office installed!")
    Else
    $key = $List[$i - 1]
    Return DecodeProductKey($key)
    EndIf
    EndIf
    EndFunc ;==>getOfficeKey

    [/autoit]

    Mega

  • Userpics von euch :)

    • Xenobiologist
    • 27. Februar 2008 um 13:01

    Ansonsten würde ich aber sagen siehst du wirklich aus wie der klassische Entwickler. :)

  • Userpics von euch :)

    • Xenobiologist
    • 27. Februar 2008 um 12:44

    Sieht ein bißchen aus wie der Simpson von Jan :rofl:
    Bin eigentlich der einzige Ü20 im Forum der NOCH *teu teu teu* keine Brille braucht?

  • Userpics von euch :)

    • Xenobiologist
    • 27. Februar 2008 um 11:48

    Mein Bild ist hier Bild

  • Userpics von euch :)

    • Xenobiologist
    • 27. Februar 2008 um 11:24

    Tze, alle haben Angst ihr Foto ins Netz zu stellen. :D

    Ihr seid wohl wirklich vom Paranoia-Staat beeinflusst worden, hmmh.

    Mega

  • Autoit starten nach Sperrung des Computers

    • Xenobiologist
    • 27. Februar 2008 um 10:34

    Hi,

    dann hol dir mal als erstes die neuen Versionen Autoit/Autoit beta/ Scite und dann sehen wir weiter.

    Mega

  • Autoit starten nach Sperrung des Computers

    • Xenobiologist
    • 27. Februar 2008 um 10:00

    Hi,

    ohne Include! nur der Code!!! Dann klappt das auch

    Mega

  • Autoit starten nach Sperrung des Computers

    • Xenobiologist
    • 27. Februar 2008 um 09:32

    HI,

    also das funktioniert einwandfrei

    Spoiler anzeigen
    [autoit]

    While 1
    Sleep(1000)
    If _isWorksatationLocked() Then ConsoleWrite(@HOUR & ":" & @MIN & ":" & @SEC & " - " & "workstation locked" & @CRLF)
    WEnd

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

    Func _isWorksatationLocked()
    If StringInStr(WinGetText(""), "Program Manager") <> 0 And WinGetTitle("") = "" Then Return 1
    Return 0
    EndFunc ;==>_isWorksatationLocked

    [/autoit]

    Edit: satation <-- habe ich aus deinem Code so kopiert. :D

    Mega

  • INetGetSize beschleunigen?

    • Xenobiologist
    • 27. Februar 2008 um 08:39

    Hi,

    geht es denn manuell schneller? Oder ist das liefernde System so langsam?

    Code?

    Mega

  • Userpics von euch :)

    • Xenobiologist
    • 26. Februar 2008 um 18:58

    Hi,

    ich war ja noch ein Bild mit dem Autoitshirt schuldig.

    Bild

    Mega

  • Script Idee BgInfo

    • Xenobiologist
    • 26. Februar 2008 um 18:49

    Hi,

    das muss ja nicht. Ich würde da einfach eine Listview mit Checkboxen machen. Hauptsache die Funktionalität ist gegeben.

    Einfach mal klein anfangen.

    Mega

  • GUI mit Feldern zum Variablen eintragen

    • Xenobiologist
    • 26. Februar 2008 um 18:30

    Keine Ursache! Wird sicherlich nicht lange dauern bis zum nächsten Problem ^^

  • GUI mit Feldern zum Variablen eintragen

    • Xenobiologist
    • 26. Februar 2008 um 18:21

    Hi,

    ich glaube er wollte sowas : Ich habe es mal in ein notepad ausgeben lassen damit du siehst was passiert

    Spoiler anzeigen
    [autoit]

    #include<GUIConstantsEx.au3>
    GUICreate("TEST", 300, 100)
    $input = GUICtrlCreateInput("", 10, 10, 100, 20)
    $button = GUICtrlCreateButton("Auslesen", 50, 50, 50, 20)
    GUISetState()

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

    While 1
    $msg = GUIGetMsg()
    Select
    Case $msg = $button
    Run('Notepad')
    WinWait('Unbenannt - Editor')
    Send('vorher')
    Send("{TAB " & GUICtrlRead($input) & "}")
    Send('nach ' & GUICtrlRead($input) & ' Tabs')
    Case $msg = $GUI_EVENT_CLOSE
    Exit
    EndSelect
    WEnd

    [/autoit]

    Mega

  • Script Idee BgInfo

    • Xenobiologist
    • 26. Februar 2008 um 17:39

    HI,

    hatte nur gedacht, dass viele ja immer nach einer Aufgabe suchen. Hier wäre eine konkrete Aufagbe die leicht verständlich und zudem modular ist.

    Wenn es keiner machen will ist ja auch nicht schlimm.

    Mega

  • GUI mit Feldern zum Variablen eintragen

    • Xenobiologist
    • 26. Februar 2008 um 17:07

    Hi,

    guck dir mal in der Hilfe GuiCtrlCreateInput an und dann noch GuiCtrlRead.

    Mega

  • Autoit starten nach Sperrung des Computers

    • Xenobiologist
    • 26. Februar 2008 um 15:41

    Bitte gesamtes Skript posten + Fehlermeldung.

  • Script Idee BgInfo

    • Xenobiologist
    • 26. Februar 2008 um 12:18

    Hi,

    vielleicht sucht ja jemand mal wieder nach einem ToDo:

    Man könnte dies mit Autoit nachbauen ... (Pflichtenheft ist hier gleich ersichtlich :D )

    BGINFO

    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™