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

Beiträge von johnnyboyy

  • Rechner leistung ?

    • johnnyboyy
    • 3. Dezember 2009 um 20:52

    Prozessor :
    habe einen AMD Athlon 64 Processor (Single core) 3500+ 2.21 GHz und 2GB RAM ,
    Hardware :
    Windows XP Home Edition ,Version 2002 , Service Pack 3
    Graka :
    ATI Radeon HD4350 , 1GB RAM

    jetzt möcht ich fragen ist der pc gut oder schlecht , weil bei mir läuft eigendlich alles flüssig keine software oder Hardware fehler bis jetzt gewesen , aber wie ist eure meinung zu dem PC , hält er noch gute Spiele aus ?

    hab bis jetzt an 2 spielen getestet : [Prototype] , Gothic III 
    Läuft da flüssig , aber da ich ja nicht weiß ob er in zukunft was taugt frage ich ma ^^

  • Mini FTP Client - vorstellung

    • johnnyboyy
    • 20. November 2009 um 16:31

    ja habe da eine verbesserung mach doch das man in Ordner reingehen kann^^ das wäre bessa

  • Game Launcher

    • johnnyboyy
    • 17. November 2009 um 19:58

    ier such

    [autoit]

    For $i = 0 To 119 Step 1

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

    $Node_Particle[$i] = AddCubeSceneNode(Random(1,4,1))
    ; $Node_Particle[$i] = AddSphereSceneNode(Random(1,2,1), 20)
    $particle[$i][0] = Random(-200,200,1)
    $particle[$i][1] = Random(-200,200,1)
    $particle[$i][2] = Random(-200,300,1)
    $particle[$i][3] = Random(1,4,1)
    SetPosition($Node_Particle[$i],$particle[$i][0],$particle[$i][1],-$particle[$i][2])
    Next

    [/autoit]


    is zeile 133 - 142

  • Game Launcher

    • johnnyboyy
    • 16. November 2009 um 14:41

    das was tince gezeigt hat sowas wäre perfect also das aussehen ist nich so Mädchen lieben Pink sonder mehr so ausgewogen dunkel^^
    oder mach doch gleich 2 stk einmal normale exe und einmal Dark.exe^^ mit dem dunkelvorschlag von tince

  • Game Launcher

    • johnnyboyy
    • 15. November 2009 um 08:55

    geht nimmer bei Rapidshare -.- möcht auch den starter

  • Scroll im IE simulieren

    • johnnyboyy
    • 14. November 2009 um 13:26

    weiß keiner wie das geht ond ob das möglich ist _IEAction zeigt auch keine Scrollfunktion

  • Scroll im IE simulieren

    • johnnyboyy
    • 14. November 2009 um 12:59

    ist es möglich und wenn ja wie : kann man einen Scroll simulieren da einige internetseiten ja nen <Header> haben aber ich die <News> sehen will

    also ich arbeite mit diesen mitteln

    [autoit]

    $oIE = ObjCreate("Shell.Explorer.2")
    $GUIActiveX = GUICtrlCreateObj($oIE,19, 254, 433, 198)
    $oIE.navigate("www.website-mit-infos.de/")

    [/autoit]
  • MyOnlineTelevision(Jetzt im Projekt bereich)

    • johnnyboyy
    • 13. November 2009 um 19:54

    ja auch grade gemerkt^^ aber hier leuft einer finde amer im quellcode den link ned


    EDIT hab den link rausbekommen : http://www.justin.tv/widgets/live_e…f?channel=grg06

  • MyOnlineTelevision(Jetzt im Projekt bereich)

    • johnnyboyy
    • 13. November 2009 um 19:17

    hm habe grade was ausprobiert und es geht ... nimm doch einfach Livestreams von "mega-stream.us" da habe ich Nick gefunden und per _IECreateEmbeeded reingemacht
    also dein script schaut bei mir so aus :

    Spoiler anzeigen
    [autoit]


    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <GuiStatusBar.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #include <IE.au3>
    Global $Form2
    $oWMP = ObjCreate("WMPlayer.OCX")
    $oIE=_IECreateEmbedded()
    #Region ### START Koda GUI section ### Form=
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("MyOnlineTelevision", 779, 513, 192, 154)
    $Button1 = GUICtrlCreateButton("N-TV", 696, 40, 75, 17)
    $Button2 = GUICtrlCreateButton("Stoppen", 236, 464, 75, 25)
    $Button3 = GUICtrlCreateButton("Starten", 340, 464, 75, 25)
    $Button4 = GUICtrlCreateButton("KI.KA", 696, 64, 75, 17)
    $Button5 = GUICtrlCreateButton("Game TV", 696, 88, 75, 17)
    $Button6 = GUICtrlCreateButton("Bahn TV", 696, 112, 75, 17)
    $Button7 = GUICtrlCreateButton("Tennis TV", 696, 136, 75, 17)
    $Button8 = GUICtrlCreateButton("Deluxe Music", 696, 160, 75, 17)
    $Button9 = GUICtrlCreateButton("Nick", 696, 184, 75, 17, 0)
    $Button10 = GUICtrlCreateButton("Nicht belegt", 696, 208, 75, 17, 0)
    $Button11 = GUICtrlCreateButton("Nicht belegt", 696, 232, 75, 17)
    $Button12 = GUICtrlCreateButton("Vollbild Nick", 696, 256, 75, 17)
    $Slider1 = GUICtrlCreateSlider(8, 454, 222, 29)
    $Label1 = GUICtrlCreateLabel("Lautstärke", 16, 436, 54, 17)
    GUICtrlSetData($Slider1,100)
    $wmp = GUICtrlCreateObj($oWMP, 8, 8, 680, 430)
    $ie = GUICtrlCreateObj($oIE,8,8,680,430)
    GUICtrlSetState($ie,@SW_HIDE)
    GUISetState(@SW_SHOW)

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

    With $oWMP
    .URL = ("")
    .fullScreen = True
    .windowlessVideo = True
    .stretchToFit = True
    .enableContextMenu = True
    ;.enabled = True
    .uiMode = "none"; none / mini full
    .settings.autostart = True
    .settings.mute = True
    .settings.volume = 100; 0 - 100
    .settings.Balance = 0; -100 to 100
    EndWith
    $StatusBar1 = _GUICtrlStatusBar_Create($Form1)

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

    #EndRegion ### END Koda GUI section ###
    Global $oMediaPlayControl = $oWMP.Controls

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    GUIDelete($Form2)
    GUISetState(@SW_SHOW,$Form1)
    Case $button12
    GUISetState(@SW_HIDE,$Form1)
    $oIE=_IECreateEmbedded()
    $Form2 = GUICreate("MyOnlineTelevision", 1280, 1024, 0, 0)
    $ie = GUICtrlCreateObj($oIE,0,0,1280,1024)
    GUISetState(@SW_SHOW,$Form2)
    _IENavigate($oIE,"http://cdn.livestream.com/grid/PlayerV2.swf?channel=SuperRTL&Fullscreen",0)
    Case $Button9
    GUICtrlSetState($wmp,@SW_HIDE)
    GUICtrlSetState($ie,@SW_SHOW)
    _GUICtrlStatusBar_SetText($StatusBar1,"Verbinde mit Mega-Stream.com")
    If Ping("google.de")=0 Then
    _GUICtrlStatusBar_SetText($StatusBar1,"Verbindung mit Mega-Stream.com Fehlgeschlagen")
    Else
    _IENavigate($oIE,"http://cdn.livestream.com/grid/PlayerV2.swf?channel=SuperRTL&Fullscreen",0)
    EndIf
    Case $Button8
    _GUICtrlStatusBar_SetText($StatusBar1,"Verbine mit Deluxe Music...")
    If Ping("google.de")=0 Then
    _GUICtrlStatusBar_SetText($StatusBar1,"Verbindung mit Deluxe Music Fehlgeschlagen")
    Else
    $oWMP.url = ("mms://ha-lb01.cdn.eviscomedia.com/deluxemusictv_video")

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

    _GUICtrlStatusBar_SetText($StatusBar1,"Verbindung wurde erfolgreich hergestellt")
    endif

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

    Case $Button7
    _GUICtrlStatusBar_SetText($StatusBar1,"Verbine mit Tennis-TV...")
    If Ping("google.de")=0 Then
    _GUICtrlStatusBar_SetText($StatusBar1,"Verbindung mit Tennis-TV Fehlgeschlagen")
    Else
    $oWMP.url = ("mms://213.155.73.173/Speedup-TV_Tennis-TV_10")

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

    _GUICtrlStatusBar_SetText($StatusBar1,"Verbindung wurde erfolgreich hergestellt")
    endif

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

    Case $Button6
    _GUICtrlStatusBar_SetText($StatusBar1,"Verbine mit Bahn-TV...")
    If Ping("google.de")=0 Then
    _GUICtrlStatusBar_SetText($StatusBar1,"Verbindung mit Bahn-TV Fehlgeschlagen")
    Else
    $oWMP.url = ("mms://atkon-webcast1-700k.wm.llnwd.net/atkon_webcast1_700K")

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

    _GUICtrlStatusBar_SetText($StatusBar1,"Verbindung wurde erfolgreich hergestellt")
    endif
    Case $Button5
    _GUICtrlStatusBar_SetText($StatusBar1,"Verbine mit Game-TV...")
    If Ping("google.de")=0 Then
    _GUICtrlStatusBar_SetText($StatusBar1,"Verbindung mit Game-TV Fehlgeschlagen")
    Else
    $oWMP.url = (@ScriptDir&"\Sender\gametv.asx")

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

    _GUICtrlStatusBar_SetText($StatusBar1,"Verbindung wurde erfolgreich hergestellt")
    endif
    Case $Button4
    _GUICtrlStatusBar_SetText($StatusBar1,"Verbine mit KI.KA...")
    If Ping("google.de")=0 Then
    _GUICtrlStatusBar_SetText($StatusBar1,"Verbindung mit KI.KA Fehlgeschlagen")
    Else

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

    $oWMP.url = (@ScriptDir&"\Sender\kika.asx")

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

    _GUICtrlStatusBar_SetText($StatusBar1,"Verbindung wurde erfolgreich hergestellt")
    endif
    Case $Button2
    $oMediaPlayControl.stop
    Case $Button3
    $oMediaPlayControl.play
    Case $Button1
    _GUICtrlStatusBar_SetText($StatusBar1,"Verbine mit N-TV...")
    If Ping("google.de")=0 Then
    _GUICtrlStatusBar_SetText($StatusBar1,"Verbindung mit N-TV Fehlgeschlagen")
    Else
    $oWMP.url = (@ScriptDir&"\Sender\ntv.asx")

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

    _GUICtrlStatusBar_SetText($StatusBar1,"Verbindung wurde erfolgreich hergestellt")
    endif

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

    EndSwitch
    $oWMP.settings.volume=GUiCtrlRead($Slider1)
    WEnd

    [/autoit] [autoit][/autoit] [autoit][/autoit]
  • Mit AutoIt .Rar datei Entpacken

    • johnnyboyy
    • 1. November 2009 um 12:10

    @simon : kannst du mir ein beispiel Schreiben?

    ähm habe hier noch ne UDF habe aber vergessen von wo:

    Spoiler anzeigen
    [autoit]

    ;#AutoIt3Wrapper_au3check_parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
    #include <array.au3>
    ; ------------------------------------------------------------------------------
    ;
    ; AutoIt Version: 3.2
    ; Language: English
    ; Description: ZIP Functions.
    ; Author: torels_
    ;
    ; ------------------------------------------------------------------------------

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

    If UBound($CMDLine) > 1 Then
    If $CMDLine[1] <> "" Then _Zip_VirtualZipOpen()
    EndIf

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

    ;===============================================================================
    ;
    ; Function Name: _Zip_Create()
    ; Description: Create Empty ZIP file.
    ; Parameter(s): $hFilename - Complete path to zip file that will be created
    ; Requirement(s): none.
    ; Return Value(s): Returns the Zip file path (to be used as a handle - even though it's not necessary)
    ; Author(s): torels_
    ;
    ;===============================================================================
    Func _Zip_Create($hFilename)
    $hFp = FileOpen($hFilename, 26)
    $sString = Chr(80) & Chr(75) & Chr(5) & Chr(6) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0) & Chr(0)
    FileWrite($hFp, $sString)
    If @error Then Return SetError(1,0,0)
    FileClose($hFp)

    While Not FileExists($hFilename)
    Sleep(10)
    Wend
    Return $hFilename
    EndFunc ;==>_Zip_Create

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

    ;===============================================================================
    ;
    ; Function Name: _Zip_AddFile()
    ; Description: Add a file to a ZIP Archieve.
    ; Parameter(s): $hZipFile - Complete path to zip file that will be created (or handle if existant)
    ; $hFile2Add - Complete path to the file that will be added
    ; $flag = 1
    ; - 0 ProgressBox
    ; - 1 no progress box
    ; Requirement(s): none.
    ; Return Value(s): On Success - 0
    ; On Failure - sets @error 1~3
    ; @error = 1 no Zip file
    ; @error = 2 no dll
    ; @error = 3 dll isn't registered
    ; On Failure - Returns False
    ; Author(s): torels_
    ; Notes: The return values will be given once the compressing process is ultimated... it takes some time with big files
    ;
    ;===============================================================================
    Func _Zip_AddFile($hZipFile, $hFile2Add, $flag = 1)
    Local $DLLChk = _Zip_DllChk()
    Local $files = _Zip_Count($hZipFile)
    If $DLLChk <> 0 Then Return SetError($DLLChk, 0, 0);no dll
    If not _IsFullPath($hZipFile) then Return SetError(4,0) ;zip file isn't a full path
    If Not FileExists($hZipFile) Then Return SetError(1, 0, 0) ;no zip file
    $oApp = ObjCreate("Shell.Application")
    $copy = $oApp.NameSpace($hZipFile).CopyHere($hFile2Add)
    While 1
    If $flag = 1 then _Hide()
    If _Zip_Count($hZipFile) = ($files+1) Then ExitLoop
    Sleep(10)
    WEnd
    Return SetError(0,0,1)
    EndFunc ;==>_Zip_AddFile

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

    ;===============================================================================
    ;
    ; Function Name: _Zip_AddFolder()
    ; Description: Add a folder to a ZIP Archieve.
    ; Parameter(s): $hZipFile - Complete path to zip file that will be created (or handle if existant)
    ; $hFolder - Complete path to the folder that will be added (possibly including "\" at the end)
    ; $flag = 1
    ; - 1 no progress box
    ; - 0 progress box
    ; Requirement(s): none.
    ; Return Value(s): On Success - 0
    ; On Failure - sets @error 1~3
    ; @error = 1 no Zip file
    ; @error = 2 no dll
    ; @error = 3 dll isn't registered
    ; Author(s): torels_
    ; Notes: The return values will be given once the compressing process is ultimated... it takes some time with big files
    ;
    ;===============================================================================
    Func _Zip_AddFolder($hZipFile, $hFolder, $flag = 1)
    Local $DLLChk = _Zip_DllChk()
    If $DLLChk <> 0 Then Return SetError($DLLChk, 0, 0);no dll
    If not _IsFullPath($hZipFile) then Return SetError(4,0) ;zip file isn't a full path
    If Not FileExists($hZipFile) Then Return SetError(1, 0, 0) ;no zip file
    If StringRight($hFolder, 1) <> "\" Then $hFolder &= "\"
    $files = _Zip_Count($hZipFile)
    $oApp = ObjCreate("Shell.Application")
    $oCopy = $oApp.NameSpace($hZipFile).CopyHere($oApp.Namespace($hFolder))
    While 1
    If $flag = 1 then _Hide()
    If _Zip_Count($hZipFile) = ($files+1) Then ExitLoop
    Sleep(10)
    WEnd
    Return SetError(0,0,1)
    EndFunc ;==>_Zip_AddFolder

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

    ;===============================================================================
    ;
    ; Function Name: _Zip_AddFolderContents()
    ; Description: Add a folder to a ZIP Archieve.
    ; Parameter(s): $hZipFile - Complete path to zip file that will be created (or handle if existant)
    ; $hFolder - Complete path to the folder that will be added (possibly including "\" at the end)
    ; $flag = 1
    ; - 1 no progress box
    ; - 0 progress box
    ; Requirement(s): none.
    ; Return Value(s): On Success - 0
    ; On Failure - sets @error 1~3
    ; @error = 1 no Zip file
    ; @error = 2 no dll
    ; @error = 3 dll isn't registered
    ; Author(s): torels_
    ; Notes: The return values will be given once the compressing process is ultimated... it takes some time with big files
    ;
    ;===============================================================================
    Func _Zip_AddFolderContents($hZipFile, $hFolder, $flag = 1)
    Local $DLLChk = _Zip_DllChk()
    If $DLLChk <> 0 Then Return SetError($DLLChk, 0, 0);no dll
    If not _IsFullPath($hZipFile) then Return SetError(4,0) ;zip file isn't a full path
    If Not FileExists($hZipFile) Then Return SetError(1, 0, 0) ;no zip file
    If StringRight($hFolder, 1) <> "\" Then $hFolder &= "\"
    $files = _Zip_Count($hZipFile)
    $oApp = ObjCreate("Shell.Application")
    $oFolder = $oApp.NameSpace($hFolder)
    $oCopy = $oApp.NameSpace($hZipFile).CopyHere($oFolder.Items)
    $oFC = $oApp.NameSpace($hFolder).items.count
    While 1
    If $flag = 1 then _Hide()
    If _Zip_Count($hZipFile) = ($files+$oFC) Then ExitLoop
    Sleep(10)
    WEnd
    Return SetError(0,0,1)
    EndFunc ;==>_Zip_AddFolderContents

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

    ;===============================================================================
    ;
    ; Function Name: _Zip_Delete()
    ; Description: Delete a file from a ZIP Archive.
    ; Parameter(s): $hZipFile - Complete path to zip file that will be created (or handle if existant)
    ; $hFolder - Complete path to the folder that will be added (possibly including "\" at the end)
    ; $flag = 1
    ; - 1 no progress box
    ; - 0 progress box
    ; Requirement(s): none.
    ; Return Value(s): On Success - 0
    ; On Failure - sets @error 1~3
    ; @error = 1 no Zip file
    ; @error = 2 no dll
    ; @error = 3 dll isn't registered
    ; Author(s): torels_
    ; Notes: none
    ;
    ;===============================================================================
    Func _Zip_Delete($hZipFile, $hFilename, $flag = 1)
    Local $DLLChk = _Zip_DllChk()
    If $DLLChk <> 0 Then Return SetError($DLLChk, 0, 0);no dll
    If not _IsFullPath($hZipFile) then Return SetError(4,0) ;zip file isn't a full path
    If Not FileExists($hZipFile) Then Return SetError(1, 0, 0) ;no zip file
    $list = _Zip_List($hZipFile)
    $dir = @TempDir & "\tmp" & Floor(Random(0,100))
    For $i = 1 to $list[0]
    If $list[$i] <> $hFilename Then _Zip_Unzip($hZipFile,$list[$i],$dir, $flag)
    Next
    FileDelete($hZipFile)
    _Zip_Create($hZipFile)
    _Zip_AddFolderContents($hZipFile, $dir, $flag)
    DirRemove($dir)
    EndFunc

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

    ;===============================================================================
    ;
    ; Function Name: _Zip_UnzipAll()
    ; Description: Extract all files contained in a ZIP Archieve.
    ; Parameter(s): $hZipFile - Complete path to zip file that will be created (or handle if existant)
    ; $hDestPath - Complete path to where the files will be extracted
    ; $flag = 1
    ; - 1 no progress box
    ; - 0 progress box
    ; Requirement(s): none.
    ; Return Value(s): On Success - 0
    ; On Failure - sets @error 1~3
    ; @error = 1 no Zip file
    ; @error = 2 no dll
    ; @error = 3 dll isn't registered
    ; Author(s): torels_
    ; Notes: The return values will be given once the extracting process is ultimated... it takes some time with big files
    ;
    ;===============================================================================
    Func _Zip_UnzipAll($hZipFile, $hDestPath, $flag = 1)
    Local $DLLChk = _Zip_DllChk()
    If $DLLChk <> 0 Then Return SetError($DLLChk, 0, 0);no dll
    If not _IsFullPath($hZipFile) then Return SetError(4,0) ;zip file isn't a full path
    If Not FileExists($hZipFile) Then Return SetError(2, 0, 0) ;no zip file
    If Not FileExists($hDestPath) Then DirCreate($hDestPath)
    Local $aArray[1]
    $oApp = ObjCreate("Shell.Application")
    $oApp.Namespace($hDestPath).CopyHere($oApp.Namespace($hZipFile).Items)
    For $item In $oApp.Namespace($hZipFile).Items
    _ArrayAdd($aArray, $item)
    Next
    While 1
    If $flag = 1 then _Hide()
    If FileExists($hDestPath & "\" & $aArray[UBound($aArray) - 1]) Then
    Return SetError(0, 0, 1)
    ExitLoop
    EndIf
    Sleep(500)
    WEnd
    EndFunc ;==>_Zip_UnzipAll

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

    ;===============================================================================
    ;
    ; Function Name: _Zip_Unzip()
    ; Description: Extract a single file contained in a ZIP Archieve.
    ; Parameter(s): $hZipFile - Complete path to zip file that will be created (or handle if existant)
    ; $hFilename - Name of the element in the zip archive ex. "hello_world.txt"
    ; $hDestPath - Complete path to where the files will be extracted
    ; $flag = 1
    ; - 1 no progress box
    ; - 0 progress box
    ; Requirement(s): none.
    ; Return Value(s): On Success - 0
    ; On Failure - sets @error 1~3
    ; @error = 1 no Zip file
    ; @error = 2 no dll
    ; @error = 3 dll isn't registered
    ; Author(s): torels_
    ; Notes: The return values will be given once the extracting process is ultimated... it takes some time with big files
    ;
    ;===============================================================================
    Func _Zip_Unzip($hZipFile, $hFilename, $hDestPath, $flag = 1)
    Local $DLLChk = _Zip_DllChk()
    If $DLLChk <> 0 Then Return SetError($DLLChk, 0, 0) ;no dll
    If not _IsFullPath($hZipFile) then Return SetError(4,0) ;zip file isn't a full path
    If Not FileExists($hZipFile) Then Return SetError(1, 0, 0) ;no zip file
    If Not FileExists($hDestPath) Then DirCreate($hDestPath)
    $oApp = ObjCreate("Shell.Application")
    $hFolderitem = $oApp.NameSpace($hZipFile).Parsename($hFilename)
    $oApp.NameSpace($hDestPath).Copyhere($hFolderitem)
    While 1
    If $flag = 1 then _Hide()
    If FileExists($hDestPath & "\" & $hFilename) Then
    return SetError(0, 0, 1)
    ExitLoop
    EndIf
    Sleep(500)
    WEnd
    EndFunc ;==>_Zip_Unzip

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

    ;===============================================================================
    ;
    ; Function Name: _Zip_Count()
    ; Description: Count files contained in a ZIP Archieve.
    ; Parameter(s): $hZipFile - Complete path to zip file that will be created (or handle if existant)
    ; Requirement(s): none.
    ; Return Value(s): On Success - 0
    ; On Failure - sets @error 1~3
    ; @error = 1 no Zip file
    ; @error = 2 no dll
    ; @error = 3 dll isn't registered
    ; Author(s): torels_
    ;
    ;===============================================================================
    Func _Zip_Count($hZipFile)
    Local $DLLChk = _Zip_DllChk()
    If $DLLChk <> 0 Then Return SetError($DLLChk, 0, 0) ;no dll
    If not _IsFullPath($hZipFile) then Return SetError(4,0) ;zip file isn't a full path
    If Not FileExists($hZipFile) Then Return SetError(1, 0, 0) ;no zip file
    $items = _Zip_List($hZipFile)
    Return UBound($items) - 1
    EndFunc ;==>_Zip_Count

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

    ;===============================================================================
    ;
    ; Function Name: _Zip_CountAll()
    ; Description: Count All files contained in a ZIP Archive (including Sub Directories)
    ; Parameter(s): $hZipFile - Complete path to zip file that will be created (or handle if existant)
    ; Requirement(s): none.
    ; Return Value(s): On Success - 0
    ; On Failure - sets @error 1~3
    ; @error = 1 no Zip file
    ; @error = 2 no dll
    ; @error = 3 dll isn't registered
    ; Author(s): torels_, Smashly
    ;
    ;===============================================================================
    Func _Zip_CountAll($hZipFile)
    Local $DLLChk = _Zip_DllChk()
    If $DLLChk <> 0 Then Return SetError($DLLChk, 0, 0) ;no dll
    If not _IsFullPath($hZipFile) then Return SetError(4,0) ;zip file isn't a full path
    If Not FileExists($hZipFile) Then Return SetError(1, 0, 0) ;no zip file
    $oApp = ObjCreate("Shell.Application")
    $oDir = $oApp.NameSpace(StringLeft($hZipFile, StringInStr($hZipFile, "\", 0, -1)))
    $sZipInf = $oDir.GetDetailsOf($oDir.ParseName(StringTrimLeft($hZipFile, StringInStr($hZipFile, "\", 0, -1))), -1)
    Return StringRight($sZipInf, StringLen($sZipInf) - StringInStr($sZipInf, ": ") - 1)
    EndFunc

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

    ;===============================================================================
    ;
    ; Function Name: _Zip_List()
    ; Description: Returns an Array containing of all the files contained in a ZIP Archieve.
    ; Parameter(s): $hZipFile - Complete path to zip file that will be created (or handle if existant)
    ; Requirement(s): none.
    ; Return Value(s): On Success - 0
    ; On Failure - sets @error 1~3
    ; @error = 1 no Zip file
    ; @error = 2 no dll
    ; @error = 3 dll isn't registered
    ; Author(s): torels_
    ;
    ;===============================================================================
    Func _Zip_List($hZipFile)
    local $aArray[1]
    Local $DLLChk = _Zip_DllChk()
    If $DLLChk <> 0 Then Return SetError($DLLChk, 0, 0) ;no dll
    If not _IsFullPath($hZipFile) then Return SetError(4,0) ;zip file isn't a full path
    If Not FileExists($hZipFile) Then Return SetError(1, 0, 0) ;no zip file
    $oApp = ObjCreate("Shell.Application")
    $hList = $oApp.Namespace($hZipFile).Items
    For $item in $hList
    _ArrayAdd($aArray,$item.name)
    Next
    $aArray[0] = UBound($aArray) - 1
    Return $aArray
    EndFunc ;==>_Zip_List

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

    ;===============================================================================
    ;
    ; Function Name: _Zip_Search()
    ; Description: Search files in a ZIP Archive.
    ; Parameter(s): $hZipFile - Complete path to zip file that will be created (or handle if existant)
    ; $sSearchString - name of the file to be searched
    ; Requirement(s): none.
    ; Return Value(s): On Success - 0
    ; On Failure - sets @error 1 (no file found)
    ; Author(s): torels_
    ; Notes: none
    ;
    ;===============================================================================
    Func _Zip_Search($hZipFile, $sSearchString)
    local $aArray
    Local $DLLChk = _Zip_DllChk()
    If $DLLChk <> 0 Then Return SetError($DLLChk, 0, 0) ;no dll
    If not _IsFullPath($hZipFile) then Return SetError(4,0) ;zip file isn't a full path
    If Not FileExists($hZipFile) Then Return SetError(1, 0, 0) ;no zip file
    $list = _Zip_List($hZipFile)
    for $i = 0 to UBound($list) - 1
    if StringInStr($list[$i],$sSearchstring) > 0 Then
    _ArrayAdd($aArray, $list[$i])
    EndIf
    Next
    if UBound($aArray) - 1 = 0 Then
    Return SetError(1,0,0)
    Else
    Return $aArray
    EndIf
    EndFunc ;==> _Zip_Search

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

    ;===============================================================================
    ;
    ; Function Name: _Zip_SearchInFile()
    ; Description: Search files in a ZIP Archive's File.
    ; Parameter(s): $hZipFile - Complete path to zip file that will be created (or handle if existant)
    ; $sSearchString - name of the file to be searched
    ; Requirement(s): none.
    ; Return Value(s): On Success - 0
    ; On Failure - sets @error 1 (no file found)
    ; Author(s): torels_
    ; Notes: none
    ;
    ;===============================================================================
    Func _Zip_SearchInFile($hZipFile, $sSearchString)
    local $aArray
    $list = _Zip_List($hZipFile)
    for $i = 1 to UBound($list) - 1
    _Zip_Unzip($hZipFile, $list[$i], @TempDir & "\tmp_zip.file")
    $read = FileRead(@TempDir & "\tmp_zip.file")
    if StringInStr($read,$sSearchstring) > 0 Then
    _ArrayAdd($aArray, $list[$i])
    EndIf
    Next
    if UBound($aArray) - 1 = 0 Then
    Return SetError(1,0,1)
    Else
    Return $aArray
    EndIf
    EndFunc ;==> _Zip_Search

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

    ;===============================================================================
    ;
    ; Function Name: _Zip_VirtualZipCreate()
    ; Description: Create a Virtual Zip.
    ; Parameter(s): $hZipFile - Complete path to zip file that will be created (or handle if existant)
    ; $sPath - Path to where create the Virtual Zip
    ; Requirement(s): none.
    ; Return Value(s): On Success - List of Created Files
    ; On Failure - sets @error 1~3
    ; @error = 1 no Zip file
    ; @error = 2 no dll
    ; @error = 3 dll isn't registered
    ; Author(s): torels_
    ; Notes: none
    ;
    ;===============================================================================
    Func _Zip_VirtualZipCreate($hZipFile, $sPath)
    $List = _Zip_List($hZipFile)
    If @error Then Return SetError(@error,0,0)
    If Not FileExists($sPath) Then DirCreate($sPath)
    If StringRight($sPath, 1) = "\" Then $sPath = StringLeft($sPath, StringLen($sPath) -1)
    For $i = 1 to $List[0]
    If Not @Compiled Then
    $Cmd = @AutoItExe
    $params = '"' & @ScriptFullPath & '" ' & '"' & $hZipFile & "," & $List[$i] & '"'
    Else
    $Cmd = @ScriptFullPath
    $Params = '"' & $hZipFile & "," & $List[$i] & '"'
    EndIf
    FileCreateShortcut($Cmd, $sPath & "\" & $List[$i], -1,$Params, "Virtual Zipped File", _GetIcon($List[$i], 0), "", _GetIcon($List[$i], 1))
    Next
    $List = _ArrayInsert($List, 1, $sPath)
    Return $List
    EndFunc

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

    ;===============================================================================
    ;
    ; Function Name: _Zip_VirtualZipOpen()
    ; Description: Open A File in a Virtual Zip, Internal Function.
    ; Parameter(s): none.
    ; Requirement(s): none.
    ; Return Value(s): On Success - 0
    ; On Failure - sets @error 1~3
    ; @error = 1 no Zip file
    ; @error = 2 no dll
    ; @error = 3 dll isn't registered
    ; Author(s): torels_
    ; Notes: none
    ;
    ;===============================================================================
    Func _Zip_VirtualZipOpen()
    $ZipSplit = StringSplit($CMDLine[1], ",")
    $ZipName = $ZipSplit[1]
    $ZipFile = $ZipSplit[2]
    _Zip_Unzip($ZipName, $ZipFile, @TempDir & "\", 4+16) ;no progress + yes to all
    If @error Then Return SetError(@error,0,0)
    ShellExecute(@TempDir & "\" & $ZipFile)
    EndFunc

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

    ;===============================================================================
    ;
    ; Function Name: _Zip_VirtualZipOpen()
    ; Description: Delete a Virtual Zip.
    ; Parameter(s): none.
    ; Requirement(s): none.
    ; Return Value(s): On Success - 0
    ; On Failure - none.
    ; Author(s): torels_
    ; Notes: none
    ;
    ;===============================================================================
    Func _Zip_VirtualZipDelete($aVirtualZipHandle)
    For $i = 2 to UBound($aVirtualZipHandle)-1
    If FileExists($aVirtualZipHandle[1] & "\" & $aVirtualZipHandle[$i]) Then FileDelete($aVirtualZipHandle[1] & "\" & $aVirtualZipHandle[$i])
    Next
    Return 0
    EndFunc

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

    ;===============================================================================
    ;
    ; Function Name: _Zip_DllChk()
    ; Description: Internal error handler.
    ; Parameter(s): none.
    ; Requirement(s): none.
    ; Return Value(s): Failure - @extended = 1
    ; Author(s): smashley
    ;
    ;===============================================================================
    Func _Zip_DllChk()
    If Not FileExists(@SystemDir & "\zipfldr.dll") Then Return 2
    If Not RegRead("HKEY_CLASSES_ROOT\CLSID\{E88DCCE0-B7B3-11d1-A9F0-00AA0060FA31}", "") Then Return 3
    Return 0
    EndFunc ;==>_Zip_DllChk

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

    ;===============================================================================
    ;
    ; Function Name: _GetIcon()
    ; Description: Internal Function.
    ; Parameter(s): $file - File form which to retrieve the icon
    ; $ReturnType - IconFile or IconID
    ; Requirement(s): none.
    ; Return Value(s): Icon Path/ID
    ; Author(s): torels_
    ;
    ;===============================================================================
    Func _GetIcon($file, $ReturnType = 0)
    $FileType = StringSplit($file, ".")
    $FileType = $FileType[UBound($FileType)-1]
    $FileParam = RegRead("HKEY_CLASSES_ROOT\." & $FileType, "")
    $DefaultIcon = RegRead("HKEY_CLASSES_ROOT\" & $FileParam & "\DefaultIcon", "")

    If Not @error Then
    $IconSplit = StringSplit($DefaultIcon, ",")
    ReDim $IconSplit[3]
    $Iconfile = $IconSplit[1]
    $IconID = $IconSplit[2]
    Else
    $Iconfile = @SystemDir & "\shell32.dll"
    $IconID = -219
    EndIf

    If $ReturnType = 0 Then
    Return $Iconfile
    Else
    Return $IconID
    EndIf
    EndFunc

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

    ;===============================================================================
    ;
    ; Function Name: _IsFullPath()
    ; Description: Internal Function.
    ; Parameter(s): $path - a zip path
    ; Requirement(s): none.
    ; Return Value(s): success - True.
    ; failure - False.
    ; Author(s): torels_
    ;
    ;===============================================================================
    Func _IsFullPath($path)
    if StringInStr($path,":\") then
    Return True
    Else
    Return False
    EndIf
    Endfunc

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

    ;===============================================================================
    ;
    ; Function Name: _Hide()
    ; Description: Internal Function.
    ; Parameter(s): none
    ; Requirement(s): none.
    ; Return Value(s): none.
    ; Author(s): torels_
    ;
    ;===============================================================================
    Func _Hide()
    If ControlGetHandle("[CLASS:#32770]", "", "[CLASS:SysAnimate32; INSTANCE:1]") <> "" And WinGetState("[CLASS:#32770]") <> @SW_HIDE Then ;The Window Exists
    $hWnd = WinGetHandle("[CLASS:#32770]")
    WinSetState($hWnd, "", @SW_HIDE)
    EndIf
    EndFunc

    [/autoit]
  • Mit AutoIt .Rar datei Entpacken

    • johnnyboyy
    • 1. November 2009 um 11:47

    Ist es Möglich mit AutoIt eine .Rar Datei zu Entpacken? fals ja : Wie? und Link dann bitte posten wenn schon Vorhanden .
    Danke

  • Desktop Radio 3.9

    • johnnyboyy
    • 1. November 2009 um 10:30

    hm hätte hier nochn Radio kanal : Hitradio Antenne Niedersachsen : http://213.200.64.229/freestream/dow…n/frameset.html

  • GUI mit Child-Gui und Buttons

    • johnnyboyy
    • 27. Oktober 2009 um 20:33

    Compilier das mal ohne UPX^^ da das meistens den fehler zeigt^^

    MFG. ich^^

  • RibbonsBar (Office 2007 Bar) UDF

    • johnnyboyy
    • 14. Oktober 2009 um 13:33

    @Christos :
    versuch ma die Buttons vor das bild zu setzten dann sollte es gehen^^

  • Programm aufrufen

    • johnnyboyy
    • 12. September 2009 um 19:40

    versucht mal mit


    Run("C:\Programme\PSPad\PSPad.exe -C:\Test.txt")

  • Nur Youtube / MyVideo Videos in GUI anzeigen

    • johnnyboyy
    • 12. September 2009 um 15:38

    ist es möglich nur das Video z.b. von Youtube anzuzeigen also fals eine Website mit Video angezeigt wird das es dann nur das Video zeigt und beim rest Normal

    und dann noch den Ablauf des Video´s in einem Progress zu Zeigen
    und da ich nicht mal im geringsten weiß wie ich das anstellen soll
    hier mal die GUI hoffe Jemand weis da was
    :GUI Hier:

    Spoiler anzeigen
    [autoit]


    #Region GUI & Includes
    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <GuiStatusBar.au3>
    #include <ProgressConstants.au3>
    #include <TabConstants.au3>
    #include <WindowsConstants.au3>
    #Region ### START Koda GUI section ### Form=
    $Form1_1 = GUICreate("Video View", 634, 448, 192, 124)
    $Progress1 = GUICtrlCreateProgress(8, 400, 614, 25)
    $StatusBar1 = _GUICtrlStatusBar_Create($Form1_1)
    _GUICtrlStatusBar_SetSimple($StatusBar1)
    _GUICtrlStatusBar_SetText($StatusBar1, "Url of Website")
    $Tab1 = GUICtrlCreateTab(0, 0, 633, 401)
    GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
    $Button1 = GUICtrlCreateButton("",999, 999, 0, 0, BitOR($BS_DEFPUSHBUTTON,$WS_GROUP))
    $URLLINK=GUICtrlCreateCombo("google.de",130,0,500)
    $Seite1 = GUICtrlCreateTabItem("Seite1")
    $InetOne = ObjCreate("Shell.Explorer.2")
    $InetOne_ctrl = GUICtrlCreateObj($InetOne, 4, 25, 626, 372)
    $Seite2 = GUICtrlCreateTabItem("Seite2")
    $InetTwo = ObjCreate("Shell.Explorer.2")
    $Obj1_ctrl = GUICtrlCreateObj($InetTwo, 4, 25, 626, 372)
    $Seite3 = GUICtrlCreateTabItem("Seite3")
    $InetTree = ObjCreate("Shell.Explorer.2")
    $Obj2_ctrl = GUICtrlCreateObj($InetTree, 4, 25, 626, 372)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###
    $InetOne.navigate("google.de")
    $InetTree.navigate("google.de")
    $InetTwo.navigate("google.de")
    GUICtrlSetState($Seite1,$GUI_SHOW)
    GUICtrlSetState($URLLINK,$GUI_SHOW)
    #EndRegion GUI
    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $Button1
    $InetOne.navigate(GUICtrlRead($URLLINK))
    EndSwitch
    WEnd

    [/autoit] [autoit][/autoit] [autoit][/autoit]
  • Fehler CUI - UDF

    • johnnyboyy
    • 10. September 2009 um 18:24

    weiß niemand warum sich das bei mir sofort schließt Google gibt nichts des gleichen aus

  • Fehler CUI - UDF

    • johnnyboyy
    • 10. September 2009 um 16:11

    ,maaan das schließt sofort bei mir das ist ja der fehler

  • Fehler CUI - UDF

    • johnnyboyy
    • 10. September 2009 um 15:51

    das ist kein script Die Console von Kasoki schließt einfachso genau wie diese Konsole :

    [autoit]


    $data = FileWrite(@DesktopDir&"\New.bat","@echo off"&@CRLF)
    $data = FileWrite(@DesktopDir&"\New.bat","echo Das ist ein Test"&@CRLF)
    $data = FileWrite(@DesktopDir&"\New.bat","pause<nul")
    Run("New.bat")

    [/autoit]
  • Fehler CUI - UDF

    • johnnyboyy
    • 10. September 2009 um 15:39

    Weiß keiner warum das so ist ? google gibt nur fehler über C++ Programme mit Consolen GUI aus...

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™