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

Beiträge von GtaSpider

  • Fester Text im E-Mailbody

    • GtaSpider
    • 28. März 2008 um 20:00

    Hallo

    Wofür brauchst du das? :huh:

    Mfg Spider

  • Suchen einer Datei (normal.dot) in einem vorher angegebenen Pfad

    • GtaSpider
    • 28. März 2008 um 18:39

    Hallo

    Ja, es gibt ein UDF im englischen Forum: Klick Mich

    Mfg Spider

  • nVida Grafikkarten Treiber Updater

    • GtaSpider
    • 28. März 2008 um 18:36

    Hallo

    Also, ich hab eine nVidia grafikkarte und mich nervt es, immer die Treiber manuell downloaden zu müssen.
    Mit diesem Tool was ich geschrieben hab funktioniert dies Automatisch ;)

    Außerdem eignet sich das Skript perfekt für Tutorial zwecke, da sehr viel drin ist (Angefangen von IE.au3 über BMP (ja, BMP nicht GIF ;) ) animationen zu Registry.
    Mal gucken ob ich mal die Zeit finde das Script komplett zu Kommentieren ;)

    Spoiler anzeigen
    [autoit]

    ;Script by GtaSpider
    ;(c) 2008 GtaSpider
    ;Its freeware, so u can share this script with others. DONT SELL THE PROGRAM!
    ;Read GNU for more Infos: http://en.wikipedia.org/wiki/General_Public_License

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

    #include<IE.au3>
    #include<Constants.au3>
    #include<GUIConstantsEx.au3>
    #include<WindowsConstants.au3>

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

    Opt("TrayAutoPause", 0)
    TraySetClick(8)

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

    Global Const $PROGRAMNAME = "Spider Updater"
    Global Const $TEMPDIR = @TempDir & "\" & StringLeft($PROGRAMNAME, 4) & "~"
    If Not FileExists($TEMPDIR) Then DirCreate($TEMPDIR)

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

    Global $hProgGra, $iBuffer, $aLoadGuis[3], $aGraphic, $sSaveTo

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

    _StartLoadingScreen()

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

    $aGraphic = _GetGraphiccardInfos()
    If @error = 1 Then Exit MsgBox(47 + _StopLoadingScreen(), $PROGRAMNAME, "Sie haben kein Nvidia Grafikkarte oder Windows hat Sie nicht erkannt!")
    $aGraphic = _GetGraphiccardDrivers($aGraphic)

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

    $sSaveTo = $TEMPDIR & "\nvidia_" & $aGraphic[1] & "_driver.exe"
    InetGet($aGraphic[4], $sSaveTo, 1, 1)

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

    $hMainGui = GUICreate($PROGRAMNAME & " - " & $aGraphic[0], 480, 109, 193, 125)

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

    GUICtrlCreateGroup("Grafikkarten Informationen", 8, 8, 225, 89)
    GUICtrlCreateLabel("Grafikkarte:", 16, 28, 59, 15)
    GUICtrlCreateLabel($aGraphic[0], 90, 28, 127, 15)
    GUICtrlCreateLabel("Serie:", 16, 42, 31, 15)
    GUICtrlCreateLabel($aGraphic[1], 90, 42, 127, 15)
    GUICtrlCreateLabel($aGraphic[3], 90, 72, 127, 15)
    GUICtrlCreateLabel($aGraphic[2], 90, 58, 127, 15)
    GUICtrlCreateLabel("Treiberversion:", 16, 58, 74, 15)
    GUICtrlCreateLabel("Sprache:", 16, 72, 47, 15)
    GUICtrlCreateGroup("", -99, -99, 1, 1)
    GUICtrlCreateGroup("Momentan verfügbare Version", 240, 8, 225, 57)
    GUICtrlCreateLabel("Download:", 248, 28, 59, 15)
    $hMainGui_labURL = GUICtrlCreateLabel(StringLeft($aGraphic[4], 25) & "...", 323, 28, 137, 15)
    GUICtrlSetColor(-1, 0xff)
    GUICtrlSetFont(-1, Default, Default, 4)
    GUICtrlSetCursor(-1, 0)
    GUICtrlCreateLabel("Treiberversion:", 248, 42, 74, 15)
    GUICtrlCreateLabel($aGraphic[5], 323, 42, 87, 15)
    GUICtrlCreateGroup("", -99, -99, 1, 1)
    $hMainGui_butdwnl = GUICtrlCreateButton("Downloaden && Installieren", 240, 72, 227, 25, 0)
    GUISetState(@SW_SHOW)

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

    $hPrgui = GUICreate($PROGRAMNAME & " - Download && Installation", 366, 93, 333, 163, -1, $WS_EX_TOOLWINDOW + $WS_EX_TOPMOST, $hMainGui)
    GUISetBkColor(0)
    $hPrgui_prg1 = GUICtrlCreateProgress(8, 24, 318, 15)
    GUICtrlSetState(-1, $GUI_DISABLE)
    $hPrgui_prg2 = GUICtrlCreateProgress(8, 24 + 17, 318, 15)
    $hPrgui_static = GUICtrlCreateLabel("", 8, 8, 318, 15)
    GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
    GUICtrlSetColor(-1, 0xFFFFFF)
    $hPrgui_prglb1 = GUICtrlCreateLabel("0%", 328, 24, 30, 15)
    GUICtrlSetColor(-1, 0xFFFFFF)
    $hPrgui_prglb2 = GUICtrlCreateLabel("0%", 328, 24 + 17, 30, 15)
    GUICtrlSetColor(-1, 0xFFFFFF)

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

    $hPrgui_butAbb = GUICtrlCreateButton("A&bbrechen", 8, 63, (318 / 2) - 2, 20)

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

    $hPrgui_butBack = GUICtrlCreateButton("&Hintergrund", 10 + (318 / 2) - 2, 63, (318 / 2), 20)

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

    _StopLoadingScreen()

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    InetGet("abort")
    Exit
    Case $hMainGui_butdwnl
    If Number($aGraphic[2]) >= Number($aGraphic[5]) Then
    If MsgBox(52, $PROGRAMNAME & " - Warnung", "Sie haben die gleiche oder eine neuere Version von dem nVidia Treiber." & @CRLF & "Wollen Sie die Installation wirklich durchführen?") = 6 Then _butnDwnl()
    EndIf
    Case $hMainGui_labURL
    GUISetState(@SW_DISABLE, $hMainGui)
    InetGet("abort")
    GUISetCursor(1, 1, $hMainGui)
    RunWait('"' & @ComSpec & '" /c start ' & $aGraphic[4], '', @SW_HIDE)
    GUISetCursor(2, 1, $hMainGui)
    GUICtrlSetCursor($hMainGui_labURL, 0)
    GUISetState(@SW_ENABLE, $hMainGui)

    EndSwitch
    WEnd

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

    Func _exit()
    Exit
    EndFunc ;==>_exit

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

    Func _butnDwnl()
    Local $iSize, $iPrg = 0, $iOldPrg = 0, $iBuf = 0, $iSteps
    If Not @InetGetActive Then InetGet($aGraphic[4], $sSaveTo, 1, 1)

    GUICtrlSetData($hPrgui_prg2, "0")
    GUICtrlSetData($hPrgui_prglb2, "0%")
    GUICtrlSetData($hPrgui_prg1, "0")
    GUICtrlSetData($hPrgui_prglb1, "0%")

    GUISetState(@SW_DISABLE, $hMainGui)
    GUISetState(@SW_SHOW, $hPrgui)
    GUICtrlSetData($hPrgui_static, "Download " & StringLeft(StringTrimLeft($aGraphic[4], StringInStr($aGraphic[4], "/", -1, -1)), 30) & "...")
    $iSize = InetGetSize($aGraphic[4])
    $iPrg = Round(100 * @InetGetBytesRead / $iSize)
    For $i = 0 To $iPrg
    GUICtrlSetData($hPrgui_prg2, $i)
    GUICtrlSetData($hPrgui_prglb2, $i & "%")
    GUICtrlSetData($hPrgui_prg1, $i / 3)
    GUICtrlSetData($hPrgui_prglb1, Round($i / 3) & "%")
    Sleep(100)
    Next

    While @InetGetActive
    Switch GUIGetMsg()
    Case $hPrgui_butAbb, $GUI_EVENT_CLOSE
    InetGet("abort")
    ExitLoop
    Case $hPrgui_butBack
    TrayTip($PROGRAMNAME, "Fahren Sie mit der Maus über dieses Icon um den momentanen Status anzusehen.", 2)
    GUISetState(@SW_HIDE, $hPrgui)
    GUISetState(@SW_HIDE, $hMainGui)
    EndSwitch
    If TrayGetMsg() = $TRAY_EVENT_PRIMARYDOWN Then
    GUISetState(@SW_SHOW, $hMainGui)
    GUISetState(@SW_SHOW, $hPrgui)
    EndIf

    $iPrg = Round(100 * @InetGetBytesRead / $iSize)
    If $iPrg <> $iOldPrg Then
    GUICtrlSetData($hPrgui_prg2, $iPrg)
    GUICtrlSetData($hPrgui_prglb2, $iPrg & "%")
    GUICtrlSetData($hPrgui_prg1, $iPrg / 3)
    GUICtrlSetData($hPrgui_prglb1, Round($iPrg / 3) & "%")
    TraySetToolTip("Gesamt: " & Round($iPrg / 3) & "%" & @CRLF & "Momentan: " & $iPrg & "%")
    $iOldPrg = $iPrg
    EndIf
    WEnd
    GUISetState(@SW_ENABLE, $hMainGui)
    GUISetState(@SW_HIDE, $hPrgui)
    If FileExists($sSaveTo) And FileGetSize($sSaveTo) = $iSize Then
    Run($sSaveTo)
    _Install()
    EndIf
    Return 0
    EndFunc ;==>_butnDwnl

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

    Func _Install()
    Local $hWnd, $hCtrlHwnd
    WinWait("NVIDIA Windows ")
    $hWnd = WinGetHandle("NVIDIA Windows ")
    WinSetState($hWnd, "", @SW_HIDE)
    ControlClick($hWnd, "", "Button4")
    ControlClick($hWnd, "", "Button5")
    While WinExists($hWnd)
    $iPrg = Round(_Progress_GetPos(ControlGetHandle($hWnd, '', 'msctls_progress321')) / 2)
    If $iPrg > 100 Then $iPrg = 100
    GUICtrlSetData($hPrgui_prg2, $iPrg)
    GUICtrlSetData($hPrgui_prglb2, $iPrg & "%")
    GUICtrlSetData($hPrgui_prg1, (100 / 3) + ($iPrg / 3))
    GUICtrlSetData($hPrgui_prglb1, Round((100 / 3) + ($iPrg / 3)) & "%")
    TraySetToolTip("Gesamt: " & Round((100 / 3) + ($iPrg / 3)) & "%" & @CRLF & "Momentan: " & $iPrg & "%")
    Sleep(20)
    WEnd

    WinWait("NVIDIA Windows ", "NVIDIA-Setup. ")
    ControlClick("NVIDIA Windows ", "NVIDIA-Setup. ", "Button1")
    While 1
    $iPrg = _Progress_GetPos(ControlGetHandle('NVIDIA Windows ', '', 'msctls_progress321'))
    GUICtrlSetData($hPrgui_prg2, $iPrg)
    GUICtrlSetData($hPrgui_prglb2, $iPrg & "%")
    GUICtrlSetData($hPrgui_prg1, (2 * (100 / 3)) + ($iPrg / 3))
    GUICtrlSetData($hPrgui_prglb1, Round((2 * (100 / 3)) + ($iPrg / 3)) & "%")
    TraySetToolTip("Gesamt: " & Round((2 * (100 / 3)) + ($iPrg / 3)) & "%" & @CRLF & "Momentan: " & $iPrg & "%")
    If $iPrg > 80 Then ExitLoop
    Sleep(20)
    WEnd
    Exit
    EndFunc ;==>_Install

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

    Func _Progress_GetPos($hWnd)
    Local $ret = DllCall("User32.dll", "int", "SendMessage", "hwnd", $hWnd, "int", 1032, "int", 0, "int", 0)
    Return Number(StringReplace($ret[0], ",", "."))
    EndFunc ;==>_Progress_GetPos

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

    Func _GetGraphiccardInfos()
    Local $sGraka, $sDriververs, $sSeries, $sLang, $aRet[4], $i = 0, $sRegRead
    While 1
    $sTmp = RegRead("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E968-E325-11CE-BFC1-08002BE10318}\" & StringTrimLeft("0000", StringLen($i)) & $i, "DriverDesc")
    If @error Then ExitLoop
    If StringLeft($sTmp, 6) = 'NVIDIA' Then $sRegRead = StringTrimLeft("0000", StringLen($i)) & $i
    $i += 1
    Sleep(10)
    WEnd
    If Not StringLen($sRegRead) Then Return SetError(1, 0, 0)

    $sGraka = RegRead("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E968-E325-11CE-BFC1-08002BE10318}\" & $sRegRead, "DriverDesc")
    $sDriververs = StringReplace(StringRight(RegRead("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E968-E325-11CE-BFC1-08002BE10318}\" & $sRegRead, "DriverVersion"), 6), ".", "")

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

    $sGraka = StringTrimLeft($sGraka, 7)
    $sSeries = StringLeft($sGraka, 9) & " Series"
    Switch StringRight(@OSLang, 2)
    Case "07" ;German
    $sLang = "Deutsch"
    Case "0c";French
    $sLang = "Français"
    Case "04";Chinese
    $sLang = "Chinese (Simplified)"
    Case Else ;English
    $sLang = "English (US)"
    EndSwitch
    $aRet[0] = $sGraka
    $aRet[1] = $sSeries
    $aRet[2] = $sDriververs
    $aRet[3] = $sLang
    Return $aRet
    EndFunc ;==>_GetGraphiccardInfos

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

    Func _GetGraphiccardDrivers($aGraca)
    Local $oIE, $sGraka, $sDriververs, $sLang, $oForm, $oElem, $sSeries, $aRegex, $aRet[6]
    $sGraka = $aGraca[0]
    $sSeries = $aGraca[1]
    $sDriververs = $aGraca[2]
    $sLang = $aGraca[3]

    $oIE = _IECreate("http://www.nvidia.com/Download/index.aspx?lang=en-us", 0, 0)

    Switch StringRight(@OSLang, 2)
    Case "07" ;German
    $sLang = "Deutsch"
    Case "0c"
    $sLang = "Français"
    Case "04"
    $sLang = "Chinese (Simplified)"
    Case Else ;English
    $sLang = "English (US)"
    EndSwitch
    $oForm = _IEFormGetObjByName($oIE, "Form1")
    $oElem = _IEFormElementGetObjByName($oForm, "selOperatingSystem")
    While Number(_IEFormElementGetValue($oElem)) = 0
    Sleep(50)
    WEnd
    $oElem = _IEFormElementGetObjByName($oForm, "ddlLanguage")
    _IEFormElementOptionSelect($oElem, $sLang, 1, "byText")
    $oElem = _IEFormElementGetObjByName($oForm, "selProductSeries")
    _IEFormElementOptionSelect($oElem, $sSeries, 1, "byText")
    $oElem = _IEFormElementGetObjByName($oForm, "selOperatingSystem")
    While Number(_IEFormElementGetValue($oElem)) = 0
    Sleep(50)
    WEnd
    $oElem = _IEFormElementGetObjByName($oForm, "selProductFamily")
    _IEFormElementOptionSelect($oElem, $sGraka, 1, "byText")
    _IEFormSubmit($oForm)
    _IENavigate($oIE, "javascript: GetDriver();")
    $aRegex = StringRegExp(_IEBodyReadHTML($oIE), "http://www.nvidia.de/content/license/confirmation.aspx[?]language=.*?&amp;url=(.*?)'", 3)
    If Not IsArray($aRegex) Then Return SetError(1, 0, 0)
    _IEQuit($oIE)
    $aRet[0] = $sGraka
    $aRet[1] = $sSeries
    $aRet[2] = $sDriververs
    $aRet[3] = $sLang
    $aRet[4] = $aRegex[0]
    $aRet[5] = StringReplace(StringLeft(StringTrimLeft($aRegex[0], StringInStr($aRegex[0], "/", -1, -1)), 6), ".", "")
    Return $aRet
    EndFunc ;==>_GetGraphiccardDrivers

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

    #Region Loading Screen

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

    Func _StartLoadingScreen()
    Local $hBackgui, $hPicgui, $fBMPFile = $TEMPDIR & "\bmpload.bmp", $hBmpctrl, $fBackBMP = $TEMPDIR & "\bckgr.bmp"
    FileInstall("anim2.bmp", $fBMPFile)
    FileInstall("bckgr.bmp", $fBackBMP)
    $hBackgui = GUICreate("Loading", 200, 100, -1, -1, $WS_POPUP, $WS_EX_TOOLWINDOW + $WS_EX_TRANSPARENT)
    $hBackpicgui = GUICreate("", 175, 58, 0, 0, $WS_POPUP, BitOR($WS_EX_LAYERED, $WS_EX_TOPMOST, $WS_EX_MDICHILD), $hBackgui)
    GUICtrlCreatePic($fBackBMP, 0, 0, 175, 58)
    $hPicgui = GUICreate("anim", 59, 58, 0, 0, $WS_POPUP, BitOR($WS_EX_LAYERED, $WS_EX_TOPMOST, $WS_EX_MDICHILD), $hBackgui)
    $hBmpctrl = GUICtrlCreatePic($fBMPFile, 0, 0, 0, 0)

    WinSetTrans($hBackgui, "", 0)
    $aLoadGuis[0] = $hBackgui
    $aLoadGuis[1] = $hPicgui
    $aLoadGuis[2] = $hBackpicgui
    For $i = 0 To 2
    GUISetState(@SW_SHOW, $aLoadGuis[$i])
    Next

    $hProgGra = _ProgressInitiateGraphic($hPicgui, $hBmpctrl, $fBMPFile)

    AdlibEnable("_Swimg", 100)
    EndFunc ;==>_StartLoadingScreen

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

    Func _StopLoadingScreen()
    AdlibDisable()
    For $i = 0 To 2
    GUISetState(@SW_HIDE, $aLoadGuis[$i])
    Next
    Return 1
    EndFunc ;==>_StopLoadingScreen

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

    Func _Swimg()
    _ProgressSwimg($iBuffer, $hProgGra, 59, 1062, 58)
    EndFunc ;==>_Swimg

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

    #Region Thx to mrRevoked and rush4hire
    Func _ProgressSwimg(ByRef $nnn, $dllspecs, $BMPwidth, $BMPwidth2, $BMPhight, $opendll = "gdi32.dll")
    Local Const $SRCCOPY = 0xCC0020
    $nnn += $BMPwidth
    If $nnn > $BMPwidth2 - 1 Then $nnn = 0
    DllCall($opendll, "int", "BitBlt", "int", $dllspecs[0], "int", 0, "int", 0, "int", $BMPwidth, "int", $BMPhight, _
    "int", $dllspecs[1], "int", $nnn, "int", 0, "int", $SRCCOPY)
    EndFunc ;==>_ProgressSwimg

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

    Func _ProgressInitiateGraphic(ByRef $hWin, ByRef $nID, $szFile)
    Local Const $GWL_HINSTANCE = -6
    Local Const $IMAGE_BITMAP = 0
    Local Const $LR_LOADFROMFILE = 0x0010
    Local $dllspecs[4], $dll, $hWnd, $opendll, $phWnd, $dc, $dc1, $old
    $hWnd = WinGetHandle($hWin)
    $opendll = DllOpen("gdi32.dll")
    Local $dll = DllOpen("user32.dll")
    $hInst = DllCall($dll, "int", "GetWindowLong", "hWnd", $hWnd, "int", $GWL_HINSTANCE)
    $hBmp = DllCall($dll, "hwnd", "LoadImage", "hwnd", $hInst[0], "str", $szFile, _
    "int", $IMAGE_BITMAP, "int", 0, "int", 0, "int", $LR_LOADFROMFILE)
    $phWnd = DllCall($dll, "hwnd", "GetDlgItem", "hwnd", $hWin, "int", $nID)
    $dc = DllCall($dll, "int", "GetDC", "hwnd", $phWnd[0])
    $dc1 = DllCall($opendll, "int", "CreateCompatibleDC", "int", $dc[0])
    $old = DllCall($opendll, "hwnd", "SelectObject", "int", $dc1[0], "hwnd", $hBmp[0])
    $dllspecs[0] = $dc[0]
    $dllspecs[1] = $dc1[0]
    $dllspecs[2] = $hBmp[0]
    $dllspecs[3] = $old[0]
    DllClose($dll)
    Return $dllspecs
    EndFunc ;==>_ProgressInitiateGraphic

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

    Func _ProgressDestroyGraphic($dllspecs)
    Local $opendll = DllOpen("gdi32.dll")
    DllCall($opendll, "hwnd", "SelectObject", "int", $dllspecs[1], "hwnd", $dllspecs[3])
    DllCall("user32.dll", "int", "ReleaseDC", "hwnd", 0, "int", $dllspecs[0])
    DllCall($opendll, "int", "DeleteDC", "int", $dllspecs[1])
    DllCall($opendll, "int", "DeleteObject", "hwnd", $dllspecs[2])
    DllClose($opendll)
    EndFunc ;==>_ProgressDestroyGraphic
    #EndRegion Thx to mrRevoked and rush4hire

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

    Func OnAutoItExit()
    FileDelete($TEMPDIR & "\bmpload.bmp")
    FileDelete($TEMPDIR & "\bckgr.bmp")
    InetGet("abort")
    FileDelete($sSaveTo)
    DirRemove($TEMPDIR,1)
    EndFunc ;==>OnAutoItExit

    [/autoit]

    Würde mich über Kommentare, Anregungen und Bugreport (nagut darüber weniger^^) freuen!

    Im Anhang die Kompelierte EXE und ein Icon.

    Mfg Spider

    Dateien

    Spider Updater.zip 374,61 kB – 417 Downloads
  • E-mail versenden?

    • GtaSpider
    • 26. März 2008 um 17:56

    Hallo

    Auf "Das Rad" ist ein Link :P Einfach mal auf "Das Rad" oben klickne und gucken was passiert ;)

    Mfg Spider

  • E-mail versenden?

    • GtaSpider
    • 26. März 2008 um 00:20

    Hallo

    Warum das Rad neu erfinden?

    Mfg Spider

  • E-mail versenden?

    • GtaSpider
    • 25. März 2008 um 22:10

    Hallo und herzlich Willkommen

    $as_Body bedeutet: ArrayString_Body. In der Hilfe wird auch beschrieben, dass es ein Array ist und kein String!
    So müsste es gehen: ;)

    Spoiler anzeigen
    [autoit]

    #include <INet.au3>
    #include <GUIConstants.au3>
    GUICreate ("CF Mail", 400,300)
    GUISetState (@SW_SHOW)
    ; Labls
    GUICtrlcreatelabel ("Von Name:",40,43)
    GUICtrlcreatelabel ("Von E-mail:",40,73)
    GUICtrlcreatelabel ("An welche E-mail:",40,103)
    GUICtrlcreatelabel ("Betreff:",40,133)
    GUICtrlcreatelabel ("Nachricht",40,163)
    ; Buttons
    $ok = GUICtrlCreateButton ("OK", 220, 260, 50)
    ;$close = GUICtrlCreateButton ( "Schließen", 140, 260, 70)
    ; Eingabe Felder...
    $s_FromName = "******"
    $s_FromAddress = "********"
    $s_ToAddress = "********"
    $s_Subject = "betreff"
    Dim $as_Body[2]
    $as_Body[0] = "Erste Zeile"
    $as_Body[1] = "Zweite Zeile"
    ; ******* Mail
    While 1
    $msg = GUIGetMsg()
    Select
    Case $msg = $ok
    $s_SmtpServer = "********"
    $mail = _INetSmtpMail ($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body)
    $err = @error
    If $mail = 1 Then
    MsgBox(0, "CF Mail!", "Die E-mail wurde erfolgreich versand an:" & $s_ToAddress)
    Else
    MsgBox(0, "Error!", "E-mail konnte nicht gesandt werden!" & $err)
    EndIf
    EndSelect
    Wend

    [/autoit]

    Mfg Spider

  • user32.dll et al

    • GtaSpider
    • 25. März 2008 um 19:59

    Hallo

    Um die Funktionen rauszusuchen: https://autoit.de/www.gidf.de/dll+depends
    Wie sie aufgerufen werden halt @google.

    Mfg Spider

  • GUI-Desgin-verzögerungs problem

    • GtaSpider
    • 25. März 2008 um 15:40

    Hallo

    Probier das mal aus:

    Spoiler anzeigen
    [autoit]

    #include<WindowsConstants.au3>
    #include<GUIConstantsEx.au3>
    $gui = GUICreate("", 100, 100, -1, -1, -1, BitOR($WS_EX_TOolwindow, $WS_EX_TOPMost))
    GUISetBkColor(0)
    $hGraph = GUICtrlCreateGraphic(0, 0, 100, 100)
    GUISetBkColor(0)

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

    GUISetState(@SW_SHOW)
    While 1
    For $x = 0 To 100 Step 5
    For $x1 = 0 To 100 Step 5
    $farbe = Random(1, Dec("ffffff"), 1)
    GUICtrlSetGraphic($hGraph, $GUI_GR_COLOR, $farbe, $farbe)
    GUICtrlSetGraphic($hGraph, $GUI_GR_RECT, $x, $x1, 5, 5)
    GUICtrlSetGraphic($hGraph, $GUI_GR_RECT, $x1, $x, 5, 5)
    Sleep(50)
    GUICtrlSetGraphic($hGraph, $GUI_GR_REFRESH)
    Next
    Next
    WEnd

    [/autoit]

    Mfg Spider

  • ImageSearch

    • GtaSpider
    • 25. März 2008 um 00:50

    Hallo

    Erkläre den Befehl doch mal etwas, was macht der?

    Mfg Spider

  • xp + vista + backtrack(linux) = ?

    • GtaSpider
    • 24. März 2008 um 20:48

    Hallo

    Woher wusste ich, dass du der erste sein wird, der mir Antwortet? :D
    Ich hab schon oft mit BackTrack (bisher nur über VMWare) gearbeitet und bin sehr zufrieden damit und hab mich halt daran gewöhnt.
    Außerdem ist das halt die Beta version und die würd ich gerne ausprobieren. Außerdem gibt es gewisse Vorteile ;)

    Wie hast du denn Ubuntu installiert? Also bootmrg boot.ini (XP) oder BCD (Vista) genommen?

    Mfg Spider

  • xp + vista + backtrack(linux) = ?

    • GtaSpider
    • 24. März 2008 um 16:15

    Hallo

    Also, kurze schilderung: ich hab es geschafft Vista & XP zu installieren =) So, läuft alles ohne Probleme, auf WinXP ist das eigentlich von Vista benutztes BCD anstatt der boot.ini drauf.
    Editieren tue ich es ganz einfach mit EasyBCD halt auf XP. Vista hat kein eigenen Bootloader, der ist halt auf XP^^

    So.. Jetzt will ich aber noch Linux installieren (ja pee ich tue es wrkl^^). Hab mich erstmal für Backtrack3Beta entschieden. Später kommt dann noch Ubunut hinzu. (das reim sich :D)
    Soweit so gut, momentan sieht die einteilung so aus:

    HDD 01:
    Partition0: WinXP (256GB)
    HDD 02:
    Partition0: WinVista (150gb)
    Partition1: BackTrack 3b (5gb)

    HDD 03:
    Partition0: Daten (1TB)
    uswusw

    Also ich starte EasyBCD und wähle neues OS Linux aus. Jetzt kann ich bei Type zwischen Folgenen Typen auswählen:
    -Grub
    -LILO/eLILO
    -FreeBSD
    -Wubi

    Ich hab einfach mal das gute alte Grub genommen (hab danach auch LILO probiert), und ihm gesagt, dass er backtrack auf festplatte 1 partition 1 findet.
    Hat er übernommen und nach einem Neustart stand im Bootloader:
    -Windows XP Pro
    -Windows Vista Ultimate
    -Linux BackTrack3

    Ich wähl also Backtrack aus, dort steht aber nur:
    [Blockierte Grafik: http://img-up.net/img/DSC00224MAR9S5I.JPG]

    und das wars. Nix passiert. Wie muss ich bt3 auf die fespltatte packen?
    Hier mal der Verzeichnessbaum der bt3 festplatte:

    Spoiler anzeigen
    Code
    [boot]
    [boot\dos]
    [boot\isolinux]
    [boot\modules]
    [boot\syslinux]
    [BT3]
    [BT3\base]
    [BT3\modules]
    [BT3\optional]
    [BT3\rootcopy]
    [BT3\tools]
    [BT3\tools\WIN]
    [System Volume Information]
    Alles anzeigen

    Es gibt eine Datei ("X:\boot\bootinst.bat") die man laut Readme starten solle, aber das bringt leider auch nichts :(
    Die Batch datei ist im Anhang

    Wäre echt super wenn mir jemand helfen könnte ;)

    Mfg Spider


    Edit: So, hab es jetzt mit Grub und LILO proibert, bei beiden kommt die gleiche Nachricht (Siehe oben beim Bild)

    Dateien

    bootinst.bat 1,7 kB – 336 Downloads
  • Selbstzerstörung für Anfänger oder Wieso funktioniert das nicht?

    • GtaSpider
    • 24. März 2008 um 15:18

    Hallo

    Benutz mal lieber Dealy = 0, da die batch datei sowieso in einem Loop ist, bis die exe gelöscht wird.
    Falls das nicht hilft erstetz mal die momentane _SelfDelete mit derhier:

    Spoiler anzeigen
    [autoit]

    Func _SelfDelete($iDelay = 0)
    Local $sCmdFile
    FileDelete(@TempDir & "\scratch.bat")
    $sCmdFile = '@echo off'& @CRLF _
    & 'ping -n ' & $iDelay & '127.0.0.1 > nul' & @CRLF _
    & ':loop' & @CRLF _
    & 'del "' & @ScriptFullPath & '"' & @CRLF _
    & 'if exist "' & @ScriptFullPath & '" goto loop' & @CRLF _
    & 'del ' & @TempDir & '\scratch.bat'
    FileWrite(@TempDir & "\scratch.bat", $sCmdFile)
    Run('"' & @ComSpec & '" /k "'& @TempDir & '\scratch.bat"', @TempDir)
    ConsoleWrite('"'& @TempDir & '\scratch.bat"' & @CRLF)
    EndFunc ;==>_SelfDelete

    [/autoit]


    Steht da ununterbrochen "Zugriff verweigert?"

    Mfg Spider

  • IntelliSenseBox

    • GtaSpider
    • 23. März 2008 um 14:45

    Hallo

    Ausserdem geht das Scrollen mit Pfeil nach oben/unten zu schnell bei mir^^ Aber sonst, sieht es ganz gut aus ;)

    mfg Spider

  • Video wiedergabe

    • GtaSpider
    • 21. März 2008 um 14:48

    Hallo

    http://www.autoitscript.com/forum/index.php?showtopic=27352
    Wenn das nicht weiterhilft im Engl forum einfach mal nach "WMP" suchen.

    Mfg Spidder

  • Kleines Problem mit InetGet in einer If Funktion <- [gelöst] - dload mit funktion [offen]

    • GtaSpider
    • 19. März 2008 um 20:31

    Hallo

    Probier das mal ;)

    [autoit]

    If $msg = $d1 Then
    InetGet("Downloadlink", "Datei speichern als", 1, 1)
    While @InetGetActive
    TrayTip("Downloading", "Bytes = " & @InetGetBytesRead, 10, 16)
    Sleep(250)
    Wend
    endif

    [/autoit]

    Mfg Spider

  • "Fileinstall" kann mir das einer erklären^^

    • GtaSpider
    • 19. März 2008 um 19:43

    Hallo

    Besser so, falls es doch mal als au3 sein sollte:

    [autoit]

    Func _RunOnStartUp($sName = @ScriptName)
    If @Compiled Then
    RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", $sName, "REG_SZ", @ScriptFullPath)
    Else
    RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run",$sName,"REG_SZ",'cmd /k "'&@ScriptFullPath&'"')
    EndIf
    EndFunc ;==>_RunOnStartUp

    [/autoit]

    Mfg Spider

  • Trojaner in Scite?

    • GtaSpider
    • 19. März 2008 um 19:40

    Hallo

    Die Datei (UpdateDefs.exe) ist eine Kompelierte au3 Datei, und diese werden von ein paar Virenscannern, zu unrecht, als Virus erkannt.
    Kann nur sagen, es ist kein Virus, keine Angst ;)

    Mfg Spider

  • Seriennummer des Computers auslesen

    • GtaSpider
    • 18. März 2008 um 15:03

    Hallo

    Rasta: Jo, bei mir ist es die gleiche Seriennummer^^
    @Mick: Deine Version funktioniert btw überhaupt nicht bei mir, gibt nur "System Serial Number" zurück.

    @Schwede: Brauchst du das nur für dich, oder soll das Script auch auf anderen Rechnern laufen? Falls ja, würde ich natürlich darauf achten, dass es auch überall funktioniert ;)

    Mfg Spider

  • besonderen string suchen und ersetzen

    • GtaSpider
    • 16. März 2008 um 14:35

    Hallo

    Probier mal Binär zu arbeiten:

    Spoiler anzeigen
    [autoit]

    $find = "÷ðå ÿáÏ ÿƲ ö®Ÿ Ü„ ½sk žVR ‚?;" ;Danach wird gesucht
    $replace = "êºä ̓Š»€³ ªn¢ ˜\‘ ‡J€ v7n e%]" ;und damit ersetzt
    $filename = "C:\Kopie von palette_001.pal" ;Der Pfad und der Name der Datei
    $filenamewriteto = "C:\autoittest_palette_001.pal" ;Der Pfad und der Name der Datei

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

    $op = FileOpen($filename,16)
    $ersetzt = Binary(stringreplace(BinaryToString(FileRead($op)), $find, $replace))
    FileClose($op)
    $op = FileOpen($filenamewriteto,16 + 2)
    FileWrite($op, $ersetzt) ;Neue Datei wird geschrieben

    [/autoit]

    Falls das nicht klappt sag uns doch bitte mal wie die Datei Formatiert ist ( UTF 8, Unicode (UTF 16) (little oder big) oder ansi)

    Mfg Spider

  • Gui in Gui möglich mit Autoit?

    • GtaSpider
    • 16. März 2008 um 14:24

    Hallo

    @Wolf: Google oder halt DllDepends..
    Carsten8:
    Probier das mal aus, sollte jetzt Maximiert werden können die GUI und die ChildGUI sollte sich unabhängig von der MainGUI schließen können.

    Spoiler anzeigen
    [autoit]

    #include<WindowsConstants.au3>
    Opt("GUIOnEventMode",1)

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

    $hGUI = GUICreate("Test", 500, 500, -1, -1, BitOR($WS_MINIMIZEBOX, $WS_CAPTION, $WS_POPUP, $WS_SYSMENU, $WS_CLIPCHILDREN))
    GUISetOnEvent(-3,"_exit")
    $hChildGUI = GUICreate("Test2", 300, 300, 10, 10, $WS_MAXIMIZEBOX)
    GUISetOnEvent(-3,"_closeChild")

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

    $nExStyle = DllCall("user32.dll", "int", "GetWindowLong", "hwnd", $hChildGUI, "int", 0xEC)
    DllCall("user32.dll", "int", "SetWindowLong", "hwnd", $hChildGUI, "int", 0xEC, "int", BitOR($nExStyle[0], $WS_EX_MDICHILD))
    DllCall("user32.dll", "int", "SetParent", "hwnd", $hChildGUI, "hwnd", $hGUI)
    GUISetState()

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

    GUISetState(@SW_SHOW, $hGUI)

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

    While 1
    Sleep(100)

    WEnd

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

    Func _closeChild()
    GUIDelete($hChildGUI)
    EndFunc

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

    Func _exit()
    Exit
    EndFunc

    [/autoit]

    Mfg Spider

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™