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

Beiträge von chip

  • Verstecken einer Installation

    • chip
    • 2. Dezember 2011 um 12:16

    WGA kannst du silent installieren:

    Zitat

    First download the latest WGA installer.
    Note: At the moment of writing, the file name was WindowsXP-KB905474-ENU-x86.exe. You will need to modify the name in the following code if it were to change with a future update.

    Next, extract the actual installer from the downloaded executable to the current directory ("%cd%"):

    WindowsXP-KB905474-ENU-x86.exe" /extract:"%cd%" /quiet

    Then run the WGA setup:

    wgasetup.exe /autoauto /quiet /norestart

  • Aulesen eines Index im einem 2D Array

    • chip
    • 2. Dezember 2011 um 12:04

    Kannst du so machen:

    [autoit]

    #include <Array.au3>
    Local $avArray[6][2] = [ _
    ["String0", "SubString0"], _
    ["String1", "SubString1"], _
    ["String2", "SubString2"], _
    ["String3", "SubString3"], _
    ["String4", "2"], _
    ["String5", "SubString5"]]

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

    $wert = _ArraySearch($avArray,"2",0,0,0,0,1,1)
    MsgBox(0,"","Index: " & $wert)

    [/autoit]
  • WinActive und HotKeySet wollen nicht so richtig

    • chip
    • 2. Dezember 2011 um 10:21

    Immer diese Ansprüche *g*. Hier:

    Spoiler anzeigen
    [autoit]

    #include <GUIConstantsEx.au3>
    #include <Misc.au3>
    #include <String.au3>
    #RequireAdmin

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

    Opt("TrayIconHide", 1)

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

    ;~ #include-once 'UPS-login.exe'

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

    $crypt = 'QWERTZ'
    $winuser = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\winlogon", "Defaultusername")

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

    $loginGui = GUICreate("FIRST RUN - Choose Master PW", 270, 70)
    GUICtrlCreateLabel("Please choose a Master Password to protect your data:", 5, 5)

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

    $input = GUICtrlCreateInput("", 5, 20, 260, 20, 0x21)
    $button = GUICtrlCreateButton("Save", 110, 43, 55, 25)
    $read = GUICtrlRead($input)
    $check = IniRead("pws.ini", "MASTER", "MASTER", "")

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

    If $check = "" Then
    GUISetState()
    Else
    If Not FileExists(@TempDir & "\UPS-login.exe") Then
    FileInstall("C:\Documents and Settings\751076\Desktop\UPS\UPS-login.exe", @TempDir & "\UPS-login.exe")
    EndIf
    ShellExecute(@TempDir & "\UPS-login.exe")
    Exit
    EndIf

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

    Func _enter()
    $read = GUICtrlRead($input)
    IniWrite("pws.ini", "MASTER", "MASTER", _StringEncrypt(1, GUICtrlRead($input), $crypt, 2))
    MsgBox(0, "", "Password saved successful!")
    If Not FileExists(@TempDir & "\UPS-login.exe") Then
    FileInstall("C:\Documents and Settings\751076\Desktop\UPS\UPS-login.exe", @TempDir & "\UPS-login.exe")
    EndIf
    ShellExecute(@TempDir & "\UPS-login.exe")
    Exit
    EndFunc ;==>_enter

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

    While 1
    If WinActive("FIRST RUN - Choose Master PW") Then
    If _IsPressed("0D") Then
    _enter()
    EndIf
    EndIf
    $msg = GUIGetMsg()
    Switch $msg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $button
    $read = GUICtrlRead($input)
    IniWrite(@WindowsDir & "\" & $winuser & "pws.ini", "MASTER", "MASTER", _StringEncrypt(1, GUICtrlRead($input), $crypt, 2))
    MsgBox(0, "", "Password saved successful!")
    If Not FileExists(@TempDir & "\UPS-login.exe") Then
    FileInstall("C:\Documents and Settings\751076\Desktop\UPS\UPS-login.exe", @TempDir & "\UPS-login.exe")
    EndIf
    ShellExecute(@TempDir & "\UPS-login.exe")
    Exit
    EndSwitch
    WEnd

    [/autoit]
  • Comspec - Commandline .exe mit Parametern

    • chip
    • 2. Dezember 2011 um 10:07

    Versuch mal den errorlevel mit

    [autoit]

    StderrRead

    [/autoit]

    auszulesen.

  • WinActive und HotKeySet wollen nicht so richtig

    • chip
    • 2. Dezember 2011 um 10:03

    Habs mal mit deinem WinAtivate angepasst jetzt sollte es gehen:

    Spoiler anzeigen
    [autoit]

    #RequireAdmin

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

    Opt("TrayIconHide", 1)

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

    #include <WindowsConstants.au3>
    #include <StructureConstants.au3>
    #include <GUIConstants.au3>
    #include <String.au3>
    #include-once 'UPS-login.exe'
    HotKeySet("{enter}", "_enter")

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

    $crypt = 'QWERTZ'
    $winuser = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\winlogon", "Defaultusername")

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

    $loginGui = GUICreate("FIRST RUN - Choose Master PW", 270, 70)
    GUICtrlCreateLabel("Please choose a Master Password to protect your data:", 5, 5)

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

    $input = GUICtrlCreateInput("", 5, 20, 260, 20, 0x21)
    $button = GUICtrlCreateButton("Save", 110, 43, 55, 25)
    $read = GUICtrlRead($input)
    $check = IniRead(@WindowsDir & "\" & $winuser & "pws.ini", "MASTER", "MASTER", "")

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

    If $check = "" Then
    GUISetState()
    Else
    If Not FileExists(@TempDir & "\UPS-login.exe") Then
    FileInstall("C:\Documents and Settings\751076\Desktop\UPS\UPS-login.exe", @TempDir & "\UPS-login.exe")
    EndIf
    ShellExecute(@TempDir & "\UPS-login.exe")
    Exit
    EndIf

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

    Func _enter()
    If WinActive("FIRST RUN - Choose Master PW") Then
    $read = GUICtrlRead($input)
    IniWrite(@WindowsDir & "\" & $winuser & "pws.ini", "MASTER", "MASTER", _StringEncrypt(1, GUICtrlRead($input), $crypt, 2))
    MsgBox(0, "", "Password saved successful!")
    If Not FileExists(@TempDir & "\UPS-login.exe") Then
    FileInstall("C:\Documents and Settings\751076\Desktop\UPS\UPS-login.exe", @TempDir & "\UPS-login.exe")
    EndIf
    ShellExecute(@TempDir & "\UPS-login.exe")
    Exit
    EndIf
    EndFunc ;==>_enter

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

    While 1
    $msg = GUIGetMsg()
    Switch $msg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $button
    $read = GUICtrlRead($input)
    IniWrite(@WindowsDir & "\" & $winuser & "pws.ini", "MASTER", "MASTER", _StringEncrypt(1, GUICtrlRead($input), $crypt, 2))
    MsgBox(0, "", "Password saved successful!")
    If Not FileExists(@TempDir & "\UPS-login.exe") Then
    FileInstall("C:\Documents and Settings\751076\Desktop\UPS\UPS-login.exe", @TempDir & "\UPS-login.exe")
    EndIf
    ShellExecute(@TempDir & "\UPS-login.exe")
    Exit
    EndSwitch
    WEnd

    [/autoit] [autoit][/autoit] [autoit][/autoit]
  • WinActive und HotKeySet wollen nicht so richtig

    • chip
    • 2. Dezember 2011 um 09:55

    Prüf am besten ob

    [autoit]

    $input = GUICtrlCreateInput("", 5, 20, 260, 20, 0x21)

    [/autoit]

    den Fokus hat, weil dann geht Enter wirklich nur wenn der Curser auch in deinen Passwortfeld ist. So wie es bei anderen Programme auch der Fall ist die Enter als Bestätigung haben.

  • Comspec - Commandline .exe mit Parametern

    • chip
    • 2. Dezember 2011 um 09:50

    Wird den überhaupt etwas in die CMD geschrieben wenn StdinWrite machst?

    Also z.b.

    [autoit]

    StdinWrite($foo,"echo laal")

    [/autoit]

    bzw. probier es mal ohne echo also

    [autoit]

    StdinWrite($foo,"%errorlevel%")

    [/autoit]
  • Ini-Upload im Forum erlauben

    • chip
    • 2. Dezember 2011 um 09:41

    Aaah da klärt warum ich in der SB mod rechte habe XD. Hab mich schon gewundert *lach*. Danke zur Beförderung.

  • Button nicht klickbar

    • chip
    • 2. Dezember 2011 um 09:12

    Änder aber nichts an dem Problem mit den Button :). Diese erzeugt nach wie vor den Fehler:

    Case $hList, $hWndList
    Case $hList, ^ ERROR

    Es scheint so als wurde sich durch drücken des Buttons der Inhalt von $hWndList geleert.

    Edit:

    Habs nun so gemacht:

    Spoiler anzeigen
    [autoit]

    #include <Array.au3>
    #include <GUIConstantsEx.au3>
    #include <GuiListBox.au3>
    #include <ListBoxConstants.au3>
    #include <WindowsConstants.au3>

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

    GUICreate("Softwareinfo", 500, 400)
    $programminfo = GUICtrlCreateLabel("", 260, 4, 228, 80)
    GUICtrlSetFont(-1, 10, 400, 0, "Arial")
    $programmliste = GUICtrlCreateList("", 4, 4, 250, 395)
    GUICtrlSetFont(-1, 10, 400, 0, "Arial")
    $programme = IniReadSectionNames("programm.ini")
    For $i = 1 To $programme[0]
    GUICtrlSetData($programmliste, $programme[$i])
    Next

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

    $lizenzfile = GUICtrlCreateButton("Lizenzfile", 260, 4)
    GUICtrlSetState($lizenzfile, $GUI_DISABLE)
    GUISetState(@SW_SHOW)

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

    GUIRegisterMsg($WM_COMMAND, "WM_COMMAND")
    Global $hList = GUICtrlGetHandle($programmliste)
    Global $sItem = ""

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $lizenzfile
    MsgBox(0, "", "Lizenzfile")
    EndSwitch
    WEnd

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

    Func WM_COMMAND($hWnd, $iMsg, $iwParam, $ilParam)
    Local $hWndFrom, $iIDFrom, $iCode, $hWndListBox
    $hWndFrom = $ilParam
    $iCode = BitShift($iwParam, 16)
    Switch $hWndFrom
    Case $hList
    Switch $iCode
    Case $LBN_SELCHANGE
    $sCurrent = _GUICtrlListBox_GetText($hList, _GUICtrlListBox_GetCurSel($hList))
    If $sCurrent <> $sItem Then
    $sItem = $sCurrent
    GUICtrlSetState($lizenzfile, $GUI_ENABLE)

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

    $programmfirma = IniRead("programm.ini", $sItem, "Firma", "")
    $programmversion = IniRead("programm.ini", $sItem, "Version", "")

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

    $programmlizenzart = IniRead("programm.ini", $sItem, "Lizenzart", "")
    $programmlizenzanzahl = IniRead("programm.ini", $sItem, "Anzahl", "")

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

    $programmtext = "Firma: " & $programmfirma & @CRLF & "Version: " & $programmversion & @CRLF & @CRLF & "Lizenzart: " & $programmlizenzart & @CRLF & "Anzahl: " & $programmlizenzanzahl

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

    If $programmlizenzart = "Netzwerk" Then
    $programmserver = IniRead("programm.ini", $sItem, "Server", "")
    $programmtext = $programmtext & @CRLF & "Lizenzserver: " & $programmserver
    GUICtrlSetPos($programminfo, 260, 4, 228, 96)

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

    If IniRead("programm.ini", $sItem, "Dongel", "") <> "" Then
    $programmtext = $programmtext & @CRLF & "Dongel"
    GUICtrlSetPos($programminfo, 260, 4, 228, 112)
    EndIf
    EndIf

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

    $programmlizenzfile = IniRead("programm.ini", $sItem, "Lizenzfile", "")
    If $programmlizenzfile <> "" Then
    $pos = ControlGetPos("Softwareinfo", "", $programminfo)
    GUICtrlSetPos($lizenzfile, 260, 4 + $pos[3] + 16)
    EndIf

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

    GUICtrlSetData($programminfo, $programmtext)
    EndIf
    EndSwitch
    EndSwitch
    Return $GUI_RUNDEFMSG
    EndFunc ;==>WM_COMMAND

    [/autoit]
  • Button nicht klickbar

    • chip
    • 2. Dezember 2011 um 09:07

    Danke für die Antwort, allerdings hast du etwas überlesen ;):

    [autoit]

    Global $hList = GUICtrlGetHandle($programmliste)

    [/autoit]

    Das Script hatte ich von i2c, hab da nicht weiter groß reingeschaut.

    Das zwite stimmt zwar, ändert aber auch ncihts an der Fehlemeldung beim drücken des Buttons.

  • Ini-Upload im Forum erlauben

    • chip
    • 2. Dezember 2011 um 07:34

    Hi,

    habe grade bei einem Thread das Problem gehabt, das ich lediglich eine kleine Ini-Datei als Anhang rein machen wollte dies allerdings ein unerlaubtes Format ist. Fände es gut wenn man den Upload von Ini-Dateien auch erlauben würde.

    mfg

  • Button nicht klickbar

    • chip
    • 2. Dezember 2011 um 07:31

    Hi,

    habe folgendes Script:

    Spoiler anzeigen
    [autoit]

    #include <Array.au3>
    #include <GUIConstantsEx.au3>
    #include <GuiListBox.au3>
    #include <ListBoxConstants.au3>
    #include <WindowsConstants.au3>

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

    GUICreate("Softwareinfo", 500, 400)
    $programminfo = GUICtrlCreateLabel("", 260, 4, 228, 80)
    GUICtrlSetFont(-1, 10, 400, 0, "Arial")
    $programmliste = GUICtrlCreateList("", 4, 4, 250, 395)
    GUICtrlSetFont(-1, 10, 400, 0, "Arial")
    $programme = IniReadSectionNames("programm.ini")
    For $i = 1 To $programme[0]
    GUICtrlSetData($programmliste, $programme[$i])
    Next

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

    $lizenzfile = GUICtrlCreateButton("Lizenzfile", 260, 4)
    GUICtrlSetState($lizenzfile, $GUI_DISABLE)
    GUISetState(@SW_SHOW)

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

    GUIRegisterMsg($WM_COMMAND, "WM_COMMAND")
    Global $hList = GUICtrlGetHandle($programmliste)
    Global $sItem = ""

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

    While 1
    $msg = GUIGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
    Exit
    ;~ Case $lizenzfile
    ;~ MsgBox(0, "", "Lizenzfile")
    EndSelect
    WEnd

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

    Func WM_COMMAND($hWnd, $iMsg, $iwParam, $ilParam)
    Local $hWndFrom, $iIDFrom, $iCode, $hWndListBox
    If Not IsHWnd($hList) Then $hWndList = GUICtrlGetHandle($hList)
    $hWndFrom = $ilParam
    $iCode = BitShift($iwParam, 16)
    Switch $hWndFrom
    Case $hList, $hWndList
    Switch $iCode
    Case $LBN_SELCHANGE
    $sCurrent = _GUICtrlListBox_GetText($hList, _GUICtrlListBox_GetCurSel($hList))
    If $sCurrent <> $sItem Then
    $sItem = $sCurrent
    GUICtrlSetState($lizenzfile, $GUI_ENABLE)

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

    $programmfirma = IniRead("programm.ini", $sItem, "Firma", "")
    $programmversion = IniRead("programm.ini", $sItem, "Version", "")

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

    $programmlizenzart = IniRead("programm.ini", $sItem, "Lizenzart", "")
    $programmlizenzanzahl = IniRead("programm.ini", $sItem, "Anzahl", "")

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

    $programmtext = "Firma: " & $programmfirma & @CRLF & "Version: " & $programmversion & @CRLF & @CRLF & "Lizenzart: " & $programmlizenzart & @CRLF & "Anzahl: " & $programmlizenzanzahl

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

    If $programmlizenzart = "Netzwerk" Then
    $programmserver = IniRead("programm.ini", $sItem, "Server", "")
    $programmtext = $programmtext & @CRLF & "Lizenzserver: " & $programmserver
    GUICtrlSetPos($programminfo, 260, 4, 228, 96)

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

    If IniRead("programm.ini", $sItem, "Dongel", "") <> "" Then
    $programmtext = $programmtext & @CRLF & "Dongel"
    GUICtrlSetPos($programminfo, 260, 4, 228, 112)
    EndIf
    EndIf

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

    $programmlizenzfile = IniRead("programm.ini", $sItem, "Lizenzfile", "")
    If $programmlizenzfile <> "" Then
    $pos = ControlGetPos("Softwareinfo", "", $programminfo)
    GUICtrlSetPos($lizenzfile, 260, 4 + $pos[3] + 16)
    EndIf

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

    GUICtrlSetData($programminfo, $programmtext)
    EndIf
    EndSwitch
    EndSwitch
    Return $GUI_RUNDEFMSG
    EndFunc ;==>WM_COMMAND

    [/autoit]

    Das Problem ist nun wenn ich auf den Button Lizenzfile klicke die Fehlermeldung:

    Zitat

    Case $hList, $hWndList
    Case $hList, ^ ERROR

    Und wenn ich das

    Spoiler anzeigen
    [autoit]

    Case $lizenzfile
    MsgBox(0, "", "Lizenzfile")

    [/autoit]

    in wer while einkommentiere in einer Endlosschleife die Msg kommt auch wenn garnicht der Button Lizenzfile gedrückt wird. Jemand eine Idee zu den Problemen?


    P.s. Ini hochladen geht nicht also die Datei im Anhang in programm.ini umbenennen.

    Dateien

    programm.txt 270 Byte – 370 Downloads
  • 3d Spiel erstellen

    • chip
    • 2. Dezember 2011 um 00:17

    Ganz ehrlich. Lern erstmal 1-2 Jahre eine Sprache richtig bevor du dich an ein 3D-Spiel machst.

  • Comspec - Commandline .exe mit Parametern

    • chip
    • 1. Dezember 2011 um 11:05

    Bei mir gehts Problemlos.

  • Comspec - Commandline .exe mit Parametern

    • chip
    • 1. Dezember 2011 um 09:24

    Wurde in der SB geklärt. Nur zur vollständigkeithalber hier nochmal das Script:

    Spoiler anzeigen
    [autoit]

    #include <Constants.au3>

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

    $foo = Run("C:\Program Files (x86)\Cisco Systems\VPN Client\vpnclient.exe connect profil", @SystemDir, @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD)

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

    While 1
    $line = StdoutRead($foo)
    If @error Then ExitLoop

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

    If $line <> "" Then
    ConsoleWrite("STDOUT gelesen:" & $line & @CRLF)
    EndIf
    WEnd

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

    While 1
    $line = StderrRead($foo)
    If @error Then ExitLoop
    If $line <> "" Then
    ConsoleWrite("STDERR gelesen:" & $line & @CRLF)
    EndIf
    WEnd

    [/autoit]
  • Markierten Text in Variable einlesen

    • chip
    • 1. Dezember 2011 um 08:55

    Damit kannst du den Inhalt der Zwischenablage in eine Variable speichern:

    [autoit]

    ClipGet()

    [/autoit]
  • Bin ich im richtigen Forum?

    • chip
    • 1. Dezember 2011 um 08:54

    Du deinstallierst es mit Autoit so wie du es auch per Hand machen würdest ;). Sprech deinstallationsroutine des Programms aufrufen und per Autoit dann automatisiert druchklicken lassen.

  • Buffalo Link-Station

    • chip
    • 1. Dezember 2011 um 07:33
    Zitat von Alina

    Rückmeldung von den Herstellern.
    Die Linkstation ist zu als und ich sollte ein XP virtuell auf den PC erstellen und dann klappt es auch mit Win7-HomePrem.
    Nur das Win7-HomePrem, meines Wissens keine Vrtuallisierungsoberfläche hat.

    Enstprechend Leistungsstarken Rechner vorrausgesetzt hier: http://forum.computerbild.de/benutzer-tutor…eren_62280.html

  • "Wo ist mein Wasser?" Projekt sucht mithilfe

    • chip
    • 30. November 2011 um 21:09

    Dürfte alles sagen ;):

    Letzte Aktivität:
    Montag, 31. Oktober 2011, 23:05

  • IE javascript button klicken

    • chip
    • 30. November 2011 um 12:49

    So gehts:

    [autoit]

    #include <IE.au3>
    $oIE = _IECreate ("https://www.alldebrid.com/register/")
    _IENavigate($oIE,"javascript:javascript:createacct()")

    [/autoit]

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™