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

  • n00b Projekt

    • GtaSpider
    • 15. April 2007 um 15:26

    Hallo!

    Pokern ist eine gute idee.. ich wäre für texas hold'em, macht einfach am meisten spaß ;) Texas hodl'em gibts auch schon, aber nur als singleplayer, vlt könnt ihr euch da auch etwas umsehen (aber natürlich falls ich was aus dem sourcecode nimmt voher Rizzet (den dev von dem script) um erlaubnis fragen..) http://www.autoitscript.com/fo**m/index.php?showtopic=42715

    Mfg Spider

  • übersetzen in au3

    • GtaSpider
    • 15. April 2007 um 14:17

    Hallo und herzlich :willkommen:

    Wo liegt das problem? es gibt doch tausende funktionen um rekursiv zu suchen..

    ich hab dir mal die schnellste rausgesucht.. Hier nun die bearbeitete version von pee:

    Spoiler anzeigen
    [autoit]


    InetGet("http://www.test.de/datei.exe", @ScriptDir & "\datei.exe")
    $splashHWnd = SplashTextOn("", "Installieren...",300,20,-1,-1,1)
    Run(@ScriptDir & "\datei.exe")
    WinWait("Fenstertitel", "Fenstertext") ; Das Fenster mit der Pfadauswahl
    ControlSetText("Fenstertitel", "Fenstertext", "controlID", $dir)
    ProcessWaitClose("datei.exe")

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

    ;Schritt 3a:
    ControlSetText($splashHWnd,"","Static1",'Suche nach datei "knick.ini"...')
    $filelist = _FileListToArrayEx("C:\","knick.ini") ;Recursive filelist
    If Not IsArray($filelist) Then
    If MsgBox(20,"Error","knick.ini wurde nicht gefunden, trozdem fortfahren?") = 7 Then Exit ;Wenn nein gedrückt wird beenden
    Else
    $dir = StringLeft($filelist[1],StringInStr($filelist[1],"\",-1,-1))
    ;3b
    FileCopy(@ScriptDir & "\meine1.txt",$dir&"\*.*")
    FileCopy(@ScriptDir & "\meine2.txt",$dir&"\*.*")
    FileCopy(@ScriptDir & "\setup2.exe",$dir&"\*.*")
    EndIf

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

    FileDelete(@ScriptDir & "\datei.exe")

    ControlSetText($splashHWnd,"","Static1","Installiere Setup II")
    RunWait($dir & "\setup2.exe")
    SplashOff()

    FileDelete($dir & "\setup2.exe")

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

    ;===============================================================================
    ; Description: lists all or preferred files and or folders in a specified path (Similar to using Dir with the /B Switch)
    ; Syntax: _FileListToArrayEx($sPath, $sFilter = '*.*', $iFlag = 0, $sExclude = '', $bTmpFile = False)
    ; Parameter(s): $sPath = Path to generate filelist for
    ; $sFilter = The filter to use. Search the Autoit3 manual for the word "WildCards" For details, support now for multiple searches
    ; Example *.exe; *.txt will find all .exe and .txt files
    ; $iFlag = determines weather to return file or folders or both.
    ; $sExclude = exclude a file from the list by all or part of its name
    ; Example: Unins* will remove all files/folders that start with Unins
    ; $iFlag=0(Default) Return both files and folders
    ; $iFlag=1 Return files Only
    ; $iFlag=2 Return Folders Only
    ; $bTmpFile = Boolean value for specifying if using a temp. file
    ; $bTmpFile = True All files are written to a "reserved" .tmp file (Thanks to gafrost) for the example
    ; The Reserved file is then read into an array, then deleted
    ; $bTmpFile = False No .tmp file is used
    ; Requirement(s): None
    ; Return Value(s): On Success - Returns an array containing the list of files and folders in the specified path
    ; On Failure - Returns the an empty string "" if no files are found and sets @Error on errors
    ; @Error or @extended = 1 Path not found or invalid
    ; @Error or @extended = 2 Invalid $sFilter or Invalid $sExclude
    ; @Error or @extended = 3 Invalid $iFlag
    ; @Error or @extended = 4 No File(s) Found
    ; Author(s): SmOke_N
    ; Note(s): The array returned is one-dimensional and is made up as follows:
    ; $array[0] = Number of Files\Folders returned
    ; $array[1] = 1st File\Folder
    ; $array[2] = 2nd File\Folder
    ; $array[3] = 3rd File\Folder
    ; $array[n] = nth File\Folder
    ;===============================================================================

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

    Func _FileListToArrayEx($sPath, $sFilter = '*.*', $iFlag = 0, $sExclude = '', $iRecurse = True)
    If Not FileExists($sPath) Then Return SetError(1, 1, '')
    If $sFilter = -1 Or $sFilter = Default Then $sFilter = '*.*'
    If $iFlag = -1 Or $iFlag = Default Then $iFlag = 0
    If $sExclude = -1 Or $sExclude = Default Then $sExclude = ''
    Local $aBadChar[6] = ['\', '/', ':', '>', '<', '|']
    $sFilter = StringRegExpReplace($sFilter, '\s*;\s*', ';')
    If StringRight($sPath, 1) <> '\' Then $sPath &= '\'
    For $iCC = 0 To 5
    If StringInStr($sFilter, $aBadChar[$iCC]) Or _
    StringInStr($sExclude, $aBadChar[$iCC]) Then Return SetError(2, 2, '')
    Next
    If StringStripWS($sFilter, 8) = '' Then Return SetError(2, 2, '')
    If Not ($iFlag = 0 Or $iFlag = 1 Or $iFlag = 2) Then Return SetError(3, 3, '')
    Local $oFSO = ObjCreate("Scripting.FileSystemObject"), $sTFolder
    $sTFolder = $oFSO.GetSpecialFolder (2)
    Local $hOutFile = @TempDir & $oFSO.GetTempName
    If Not StringInStr($sFilter, ';') Then $sFilter &= ';'
    Local $aSplit = StringSplit(StringStripWS($sFilter, 8), ';'), $sRead, $sHoldSplit
    For $iCC = 1 To $aSplit[0]
    If StringStripWS($aSplit[$iCC], 8) = '' Then ContinueLoop
    If StringLeft($aSplit[$iCC], 1) = '.' And UBound(StringSplit($aSplit[$iCC], '.')) - 2 = 1 Then $aSplit[$iCC] = '*' & $aSplit[$iCC]
    $sHoldSplit &= '"' & $sPath & $aSplit[$iCC] & '" '
    Next
    $sHoldSplit = StringTrimRight($sHoldSplit, 1)
    If $iRecurse Then
    RunWait(@ComSpec & ' /c dir /b /s /a ' & $sHoldSplit & ' > "' & $hOutFile & '"', '', @SW_HIDE)
    Else
    RunWait(@ComSpec & ' /c dir /b /a ' & $sHoldSplit & ' /o-e /od > "' & $hOutFile & '"', '', @SW_HIDE)
    EndIf
    $sRead &= FileRead($hOutFile)
    If Not FileExists($hOutFile) Then Return SetError(4, 4, '')
    FileDelete($hOutFile)
    If StringStripWS($sRead, 8) = '' Then SetError(4, 4, '')
    Local $aFSplit = StringSplit(StringTrimRight(StringStripCR($sRead), 1), @LF)
    Local $sHold
    For $iCC = 1 To $aFSplit[0]
    If $sExclude And StringLeft($aFSplit[$iCC], _
    StringLen(StringReplace($sExclude, '*', ''))) = StringReplace($sExclude, '*', '') Then ContinueLoop
    Switch $iFlag
    Case 0
    If StringLeft($aFSplit[$iCC], StringLen($sPath)) <> $sPath Then
    $sHold &= $sPath & $aFSplit[$iCC] & Chr(1)
    Else
    $sHold &= $aFSplit[$iCC] & Chr(1)
    EndIf
    Case 1
    If StringInStr(FileGetAttrib($sPath & '\' & $aFSplit[$iCC]), 'd') Then ContinueLoop
    If StringLeft($aFSplit[$iCC], StringLen($sPath)) <> $sPath Then
    $sHold &= $sPath & $aFSplit[$iCC] & Chr(1)
    Else
    $sHold &= $aFSplit[$iCC] & Chr(1)
    EndIf
    Case 2
    If Not StringInStr(FileGetAttrib($sPath & '\' & $aFSplit[$iCC]), 'd') Then ContinueLoop
    If StringLeft($aFSplit[$iCC], StringLen($sPath)) <> $sPath Then
    $sHold &= $sPath & $aFSplit[$iCC] & Chr(1)
    Else
    $sHold &= $aFSplit[$iCC] & Chr(1)
    EndIf
    EndSwitch
    Next
    If StringTrimRight($sHold, 1) Then Return StringSplit(StringTrimRight($sHold, 1), Chr(1))
    Return SetError(4, 4, '')
    EndFunc ;==>_FileListToArrayEx

    [/autoit]

    Hoffe ich konnte helfen :)

    Mfg Spider

    Comment peethebee: Die Funktion hatte ich auch getestet :o - Aber wohl falsch aufgerufen - peinlich... Danke für's fixen, mein Moddilein ;)

    Comment GtaSpider: Kein problem, mein Adminchen :kiss: :D

  • n00b Projekt

    • GtaSpider
    • 14. April 2007 um 23:24

    Hallo

    also erstmal gute idee, waluev :)

    @Filin: das gibts auch schon mehrmals

    @Spion: browsergame? dann wäre aber die meiste arbeit java (oder vlt auch htlm/php)

    @topic: mhh.. also, wie wäre es z.b. mit nem spiel über tcp/ip? da wäre mit zimlicher sicherheit so ungefair alles drin was autoit kann (gui,tcpip/upd,umgang mit variablen,rexexp,....) Ich weiß es gibt schon mehrere spiele, aber ihr könnt euch ja einfach mal ein enifaches aussuchen (was leicht nachzuproggn ist) was es halt noch nich in autoit gibt.. (z.B. snake über tcp/ip, ist aber nur ein vorschlag, snake gibts glaub ich schon..)

    Mfg Spider

  • get trackname und artist über wmp.ocx

    • GtaSpider
    • 13. April 2007 um 20:59

    Hallo!

    Wie man nun den artist auslesen kann konnt ich auf die schnelle nicht finden, aber ich hab es dir mal etwas so umgeschrieben das es eigentlich funktioniern sollten ;)

    Spoiler anzeigen
    [autoit]

    $cn = "^3"
    $ca = "^3"
    $cm = "^7"
    $ct = "^7"
    _getcurrenttrack_wmp()
    Func _getcurrenttrack_wmp()
    $oWMP = ObjCreate("WMPlayer.OCX")
    $oWMP.currentMedia = $oWMP.mediaCollection.getAll ().item (0)
    $TracknameWMP = $oWMP.currentmedia.name
    ;~ $ArtistnameWMP = $oWMP.currentmedia.Artist; ?
    $TitleWMP = "artist unknow " & $cm & "-" & " " & $TracknameWMP
    $musicWMP = $ct & "I am listening to " & $TitleWMP
    ClipPut($musicWMP)
    Send("^v")
    EndFunc ;==>_getcurrenttrack_wmp

    [/autoit]

    Mfg Spider

    p.s.: sry das ich nicht geantwortet hab, ich war auf klo :schild4:

  • Sperrung von BugFix, peet, und spider

    • GtaSpider
    • 13. April 2007 um 19:43

    Hallo!

    *geschmeichelt fühl* nagut, von mir aus, könn wir es mal ausprobieren :P und wie daniel w. schon sagte: schneller als wir zu sein ist aufjedenfall möglich^^

    Danke für den post :kiss:

    Mfg Spider

  • Run... System kann die angegebene Datei nicht finden

    • GtaSpider
    • 10. April 2007 um 13:20

    Hallo udn herzlich :willkommen:

    was pee damit sagen wollte: Run( Ordner & Datei, Ordner).. so ist der syntax von dem Run befehl.. Also z.B.

    [autoit]

    run (@ProgramFilesDir & "\CyberLink\PowerDVD.exe",@ProgramFilesDir & "\CyberLink\PowerDVD") würde Powerdvd im powerdvd ordner starten ;)

    [/autoit]

    Mfg Spider

  • Admin Konsole

    • GtaSpider
    • 9. April 2007 um 23:03

    Hallo!

    SORRY!! ich hab dein beirtag nicht gelesen.. ist mir jetzt erst durch zufall aufgefallen.. Wie hast du es denn gemacht? waren Client und Server auf dem gleichen rechner? hast du bei der installation den richtigen Computer name/IP adresse eingegeben?

    MFg SPider

  • zufälliges kopieren bis 2gb

    • GtaSpider
    • 9. April 2007 um 22:32

    Hallo!

    Ein anfang ist schonmal hier, ist nochnich komplett, aber ich hab die nächsten tage leider wenig zeit (erst wider ab freitag richtig zeit dafür..) also wenn du es weiter progn willst.. dann hier ;) wenn du noch iwelche fragen hast stehe ich dir natürlich bei (z.b. @icq)

    also hier der anfang:

    Spoiler anzeigen
    [autoit]

    #include <file.au3>
    #include <array.au3>

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

    Global $hwndSpl, $SplNext = 1, $SplText, $FileList, $size = 0
    Global $ListTxt = @ScriptDir & "\List.txt"
    Global $ListTxtOp = FileOpen($ListTxt, 1)
    Global $FilesToCopy[1]

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

    If FileGetSize($ListTxt) Then _ReadFromList()

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

    ;DIESE DATEN MUSST DU NACH DEINEN WÜNSCHEN BEARBEITEN <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    If Not Eval("MusicDir") Then Global Const $MusicDir = @ScriptDir
    Global Const $SizeInByte = 20 * 1048576 ;1048576 = mb
    Global Const $DestDir = "D:\wg"
    Global Const $MusicDirName = StringTrimLeft($MusicDir, StringInStr($MusicDir, "\", 0, -1))

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

    If Not IsArray($FileList) Then _ReadMusicDir()

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

    $SplText = "Lese größe der Daten"
    $hwndSpl = SplashTextOn("", $SplText & @LF & "|", 250, 65, -1, -1, 1, "Courier New")
    AdlibEnable("_SetSpl", 100)
    Sleep(1000)

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

    $i = 0
    While 1
    $i += 1
    $rand = Random(1, $FileList[0], 1)
    $size += FileGetSize($FileList[$rand])
    If $size > $SizeInByte Then ExitLoop
    ReDim $FilesToCopy[$i+1]
    $FilesToCopy[$i] = $FileList[$rand]
    _FileWriteToLine($ListTxt,$rand,"",1)
    WEnd

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

    $SplText = "Kopiere Daten"&@LF&""

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

    $to = $i - 1
    For $i = 1 To $to
    $SplText = "Kopiere Daten"&@LF&StringTrimLeft($FilesToCopy[$i],StringInStr($FilesToCopy[$i],"\",0,-1))
    FileCopy($FilesToCopy[$i], $DestDir&"\*.*", 1)
    Next

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

    SplashOff()

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

    Func _ReadMusicDir()
    $SplText = "Lese den Musikordner ein"&@LF&$MusicDirName
    $hwndSpl = SplashTextOn("", $SplText & @LF & "|", 250, 40, -1, -1, 1, "Courier New")
    AdlibEnable("_SetSpl", 100)
    $FileList = _FileListToArrayEx($MusicDir, "*.*", 1, '', True)
    SplashOff()
    AdlibDisable()
    FileWriteLine($ListTxtOp, $MusicDir)
    For $i = 1 To $FileList[0]
    FileWriteLine($ListTxtOp, StringTrimLeft($FileList[$i], StringLen($MusicDir) + 1))
    Next
    EndFunc ;==>_ReadMusicDir

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

    Func _ReadFromList()
    $SplText = "Lese daten von Datei"&@LF&StringTrimLeft($ListTxt,StringInStr($ListTxt,"\",0,-1))
    $hwndSpl = SplashTextOn("", $SplText & @LF & "|", 250, 65, -1, -1, 1, "Courier New")
    AdlibEnable("_SetSpl", 100)
    _FileReadToArray($ListTxt, $FileList)
    Global $MusicDir = $FileList[1]
    $FileList[0] = $FileList[0] - 1
    _ArrayDelete($FileList, 1)
    For $i = 1 To $FileList[0]
    $FileList[$i] = $MusicDir & "\" & $FileList[$i]
    If Not FileExists($FileList[$i]) Then MsgBox(0, "", $FileList[$i])
    Next
    SplashOff()
    EndFunc ;==>_ReadFromList

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

    Func _SetSpl()
    Switch $SplNext
    Case 1
    ControlSetText($hwndSpl, "", "Static1", $SplText & @LF & "./.")
    $SplNext = 2
    Case 2
    ControlSetText($hwndSpl, "", "Static1", $SplText & @LF & "..-..")
    $SplNext = 3
    Case 3
    ControlSetText($hwndSpl, "", "Static1", $SplText & @LF & "...\...")
    $SplNext = 4
    Case 4
    ControlSetText($hwndSpl, "", "Static1", $SplText & @LF & "|")
    $SplNext = 1
    EndSwitch
    EndFunc ;==>_SetSpl

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

    ;===============================================================================
    ; Description: lists all or preferred files and or folders in a specified path (Similar to using Dir with the /B Switch)
    ; Syntax: _FileListToArrayEx($sPath, $sFilter = '*.*', $iFlag = 0, $sExclude = '', $bTmpFile = False)
    ; Parameter(s): $sPath = Path to generate filelist for
    ; $sFilter = The filter to use. Search the Autoit3 manual for the word "WildCards" For details, support now for multiple searches
    ; Example *.exe; *.txt will find all .exe and .txt files
    ; $iFlag = determines weather to return file or folders or both.
    ; $sExclude = exclude a file from the list by all or part of its name
    ; Example: Unins* will remove all files/folders that start with Unins
    ; $iFlag=0(Default) Return both files and folders
    ; $iFlag=1 Return files Only
    ; $iFlag=2 Return Folders Only
    ; $bTmpFile = Boolean value for specifying if using a temp. file
    ; $bTmpFile = True All files are written to a "reserved" .tmp file (Thanks to gafrost) for the example
    ; The Reserved file is then read into an array, then deleted
    ; $bTmpFile = False No .tmp file is used
    ; Requirement(s): None
    ; Return Value(s): On Success - Returns an array containing the list of files and folders in the specified path
    ; On Failure - Returns the an empty string "" if no files are found and sets @Error on errors
    ; @Error or @extended = 1 Path not found or invalid
    ; @Error or @extended = 2 Invalid $sFilter or Invalid $sExclude
    ; @Error or @extended = 3 Invalid $iFlag
    ; @Error or @extended = 4 No File(s) Found
    ; Author(s): SmOke_N
    ; Note(s): The array returned is one-dimensional and is made up as follows:
    ; $array[0] = Number of Files\Folders returned
    ; $array[1] = 1st File\Folder
    ; $array[2] = 2nd File\Folder
    ; $array[3] = 3rd File\Folder
    ; $array[n] = nth File\Folder
    ;===============================================================================

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

    Func _FileListToArrayEx($sPath, $sFilter = '*.*', $iFlag = 0, $sExclude = '', $iRecurse = False, $iShortName = True)
    If Not FileExists($sPath) Then Return SetError(1, 1, '')
    If $sFilter = -1 Or $sFilter = Default Then $sFilter = '*.*'
    If $iFlag = -1 Or $iFlag = Default Then $iFlag = 0
    If $sExclude = -1 Or $sExclude = Default Then $sExclude = ''
    Local $aBadChar[6] = ['\', '/', ':', '>', '<', '|']
    $sFilter = StringRegExpReplace($sFilter, '\s*;\s*', ';')
    If StringRight($sPath, 1) <> '\' Then $sPath &= '\'
    For $iCC = 0 To 5
    If StringInStr($sFilter, $aBadChar[$iCC]) Or _
    StringInStr($sExclude, $aBadChar[$iCC]) Then Return SetError(2, 2, '')
    Next
    If StringStripWS($sFilter, 8) = '' Then Return SetError(2, 2, '')
    If Not ($iFlag = 0 Or $iFlag = 1 Or $iFlag = 2) Then Return SetError(3, 3, '')
    Local $oFSO = ObjCreate("Scripting.FileSystemObject"), $sTFolder
    $sTFolder = $oFSO.GetSpecialFolder (2)
    Local $hOutFile = @TempDir & $oFSO.GetTempName
    If Not StringInStr($sFilter, ';') Then $sFilter &= ';'
    Local $aSplit = StringSplit(StringStripWS($sFilter, 8), ';'), $sRead, $sHoldSplit
    For $iCC = 1 To $aSplit[0]
    If StringStripWS($aSplit[$iCC], 8) = '' Then ContinueLoop
    If StringLeft($aSplit[$iCC], 1) = '.' And _
    UBound(StringSplit($aSplit[$iCC], '.')) - 2 = 1 Then $aSplit[$iCC] = '*' & $aSplit[$iCC]
    $sHoldSplit &= '"' & $sPath & $aSplit[$iCC] & '" '
    Next
    $sHoldSplit = StringTrimRight($sHoldSplit, 1)
    If $iRecurse Then
    RunWait(@ComSpec & ' /c dir /b /s /a ' & $sHoldSplit & ' > "' & $hOutFile & '"', '', @SW_HIDE)
    Else
    RunWait(@ComSpec & ' /c dir /b /a ' & $sHoldSplit & ' /o-e /od > "' & $hOutFile & '"', '', @SW_HIDE)
    EndIf
    $sRead &= FileRead($hOutFile)
    If Not FileExists($hOutFile) Then Return SetError(4, 4, '')
    FileDelete($hOutFile)
    If StringStripWS($sRead, 8) = '' Then SetError(4, 4, '')
    Local $aFSplit = StringSplit(StringTrimRight(StringStripCR($sRead), 1), @LF)
    Local $sHold
    For $iCC = 1 To $aFSplit[0]
    If $sExclude And StringLeft($aFSplit[$iCC], _
    StringLen(StringReplace($sExclude, '*', ''))) = StringReplace($sExclude, '*', '') Then ContinueLoop
    Switch $iFlag
    Case 0
    If StringLeft($aFSplit[$iCC], StringLen($sPath)) <> $sPath Then
    If $iShortName Then
    $sHold &= FileGetShortName($sPath & $aFSplit[$iCC]) & Chr(1)
    Else
    $sHold &= $sPath & $aFSplit[$iCC] & Chr(1)
    EndIf

    Else
    If $iShortName Then
    $sHold &= FileGetShortName($aFSplit[$iCC]) & Chr(1)
    Else
    $sHold &= $aFSplit[$iCC] & Chr(1)
    EndIf

    EndIf
    Case 1
    If StringInStr(FileGetAttrib($sPath & '\' & $aFSplit[$iCC]), 'd') Then ContinueLoop
    If StringLeft($aFSplit[$iCC], StringLen($sPath)) <> $sPath Then
    If $iShortName Then
    $sHold &= FileGetShortName($sPath & $aFSplit[$iCC]) & Chr(1)
    Else
    $sHold &= $sPath & $aFSplit[$iCC] & Chr(1)
    EndIf
    Else
    If $iShortName Then
    $sHold &= FileGetShortName($aFSplit[$iCC]) & Chr(1)
    Else
    $sHold &= $aFSplit[$iCC] & Chr(1)
    EndIf
    EndIf
    Case 2
    If Not StringInStr(FileGetAttrib($sPath & '\' & $aFSplit[$iCC]), 'd') Then ContinueLoop
    If StringLeft($aFSplit[$iCC], StringLen($sPath)) <> $sPath Then
    If $iShortName Then
    $sHold &= FileGetShortName($sPath & $aFSplit[$iCC]) & Chr(1)
    Else
    $sHold &= $sPath & $aFSplit[$iCC] & Chr(1)
    EndIf
    Else
    If $iShortName Then
    $sHold &= FileGetShortName($aFSplit[$iCC]) & Chr(1)
    Else
    $sHold &= $aFSplit[$iCC] & Chr(1)
    EndIf
    EndIf
    EndSwitch
    Next
    $sHold = StringReplace(StringReplace(StringReplace(StringReplace($sHold, Chr(129), "ü"), Chr(132), "ä"), Chr(148), "ö"), Chr(225), "ß")
    If StringTrimRight($sHold, 1) Then Return StringSplit(StringTrimRight($sHold, 1), Chr(1))
    Return SetError(4, 4, '')
    EndFunc ;==>_FileListToArrayEx

    [/autoit]

    Mfg Spider

  • zufälliges kopieren bis 2gb

    • GtaSpider
    • 8. April 2007 um 23:01

    Hallo

    Möglich auf jedenfall.. wird aber warscheinlich etwas komplizierter... aber wolln wir ma nich so sein ;) wir ham ja schließlich ferien.. ich schreib dir mal was, zu morgen..

    Mfg Spider

  • Zähler

    • GtaSpider
    • 8. April 2007 um 20:02

    Hallo!

    mach es doch mit TCP/IP... ist schneller und verbrauch kein speicherplatz...

    ich mach dir mal ein skript (kommt gleich mit edit...)

    Mfg Spider

    Edit: So.. hab dir nun ein Skript gemacht:

    Server:. (MaxPend kannst du belibig verändern, aber bei einer zahl > 50 könnte es zu problemen kommen...)

    Spoiler anzeigen
    [autoit]

    ;SERVER

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

    TCPStartup()

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

    Global Const $PORT = 1223

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

    Global $maxpend = 10;wieviele leute gleichzeitig connecten können
    Global $verbindungen[$maxpend+1]

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

    $Listen = TCPListen(@IPAddress1,$PORT,$maxpend)

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

    AdlibEnable("_Waitforinc",100)

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

    For $zaehler = 1 To 1000
    _SendToAllSock($zaehler)
    Sleep(1000)
    Next

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


    Func _Waitforinc()
    $acc = TCPAccept($Listen)
    If $acc = -1 Then Return
    For $i = 1 To $maxpend
    If Not $verbindungen[$i] Then
    $verbindungen[$i] = $acc
    Return
    EndIf
    Next
    TCPSend($acc,"full")
    TCPCloseSocket($acc)
    EndFunc

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

    Func _SendToAllSock($text)
    For $i = 1 To $maxpend
    If $verbindungen[$i] Then TCPSend($verbindungen[$i],$text)
    Next
    EndFunc

    [/autoit]

    Client:

    Spoiler anzeigen
    [autoit]

    ;CLIENT

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

    TCPStartup()

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

    Global Const $PORT = 1223
    Global Const $IP = @IPAddress1 ;@ipadress1 funktioniert nur wenn der client auf dem gleichen rechner wie der server läuft...

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

    $con = -1
    $recv = ""
    While $con = -1
    $con = TCPConnect($IP,$PORT)
    WEnd
    $spl = SplashTextOn("","Wait for recv...",150,20,-1,-1,16)
    While 1
    Do
    $recv = TCPRecv($con,64)
    If @error Then Exit MsgBox(48,"Error","Server is full or Server has exit")
    Until $recv <> ""
    ControlSetText($spl,"","Static1",$recv)
    WEnd

    [/autoit]

    Hoffe konnte helfen ;)

  • daemon tools installfpad aus reg auslesen

    • GtaSpider
    • 8. April 2007 um 16:33

    Hallo!

    @huggy: jo, das ist der schlüsselname... er ist aber auch da, wenn daemontools nich mit dem startup lädt, weil das die config vom msconfig ist.. also Daemontools steht immer bei Msconfig [Systemstart reiter] auch wenn es deaktiviert ist... dieser schlüssel ist aber glaub ich erst seit der version 4.x dabei...

    Mfg Spider

  • screenshot eines bestimmten bereiches

    • GtaSpider
    • 7. April 2007 um 20:54

    Hallo!

    inwiefern um die ecke? wingetpos("") liest die coordinaten des momentan aktiven fensters.. Naja, egal.. kein problem, dafür bin ich ja da ;)

    Mfg Spider

  • screenshot eines bestimmten bereiches

    • GtaSpider
    • 7. April 2007 um 19:19

    Hallo.

    Ist doch garkein problem, mit WinGetPos:

    Spoiler anzeigen
    [autoit]

    $CaptureDirectory =@ScriptDir
    $CaptureFile = "001.jpg"
    $pos = WinGetPos("")
    $left = $pos[0]
    $top = $pos[1]
    $width = $left+50; wieviel vom fenster
    $height = $top+50; wieviel vom fenster
    $Quality = 100
    DllCall("captdll.dll", "int", "CaptureRegion", "str", $CaptureDirectory & "\" & $CaptureFile, "int", $left, "int", $top, "int", $width, "int", $height, "int", $Quality)

    [/autoit]

    Mfg Spider

  • screenshot eines bestimmten bereiches

    • GtaSpider
    • 7. April 2007 um 16:17

    Hallo!

    Wie? du willst ein bestimmten bereich von dem aktiven fenser als screenshot? oder willst du das gesamte aktive fenster als screenshot?

    Mfg Spider

  • GUI immer im vordergrund

    • GtaSpider
    • 7. April 2007 um 12:51

    Hallo

    Zu deiner anfangsfrage, probier das mal:

    Spoiler anzeigen
    [autoit]


    #include <GUIConstants.au3>

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

    $main = GUICreate("Toolbar", 289, 30, -1,-1, $WS_POPUP, $WS_EX_TOPMOST)
    GUISetBkColor(0)

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

    $mini = GUICtrlCreateButton("-", 240, 7, 17, 17)
    GUICtrlSetBkColor(-1,0xff8800)
    GUICtrlSetFont(-1,8,400,0,"courier new")
    $close = GUICtrlCreateButton("X", 264, 7, 17, 17)
    GUICtrlSetFont(-1,8,400,0,"courier New")
    GUICtrlSetBkColor(-1,0xff0000)

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

    GUISetState()

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE, $close ;wenn ESC gedrückt wird oder wenn $close gedrückt wird
    Exit
    Case $mini; wenn der minimierenbutton gedrückt wurde
    GUISetState(@SW_MINIMIZE)
    EndSwitch
    WEnd

    [/autoit]

    Mfg Spider

  • Problem mit Pfadangabe

    • GtaSpider
    • 6. April 2007 um 11:41

    Hallo!

    Lass einfach den fenstertext weg. das autoti window tool z.b. findet kein text vom fenster...

    [autoit]

    ControlCommand ("Eigenschaften von Taskleiste und Startmenü","",12320,"Tabright","")

    [/autoit]

    Mfg Spider

  • GUI im Hintergrund - Symbole blinken nicht, sollen aber!

    • GtaSpider
    • 6. April 2007 um 00:00

    Hallo und herzlich :willkommen:

    Wo liegt das problem? Probiers mal so:

    Spoiler anzeigen
    [autoit]

    $blink = True

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

    GUICreate("gui", 52, 52,-1,-1,-2147483648);$WS_POPUP
    GUISetBkColor(0)
    $ico = GUICtrlCreateIcon ("user32.dll",-2, 10, 10, 32, 32)

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

    GUISetState()

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

    AdlibEnable("_blink",500)

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

    $msg = 0
    While $msg <> -3;$GUI_EVENT_CLOSE
    $msg = GUIGetMsg()
    WEnd

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

    Func _blink()
    $blink = Not $blink
    If $blink Then
    GUICtrlSetState($ico,16);$GUI_SHOW
    Else
    GUICtrlSetState($ico,32);$GUI_HIDE
    EndIf
    EndFunc

    [/autoit]

    Mfg Spider

  • Aktion bei TrayTip-Klick

    • GtaSpider
    • 5. April 2007 um 17:27

    Hallo!

    Ja, das ich nich die ie.au3 benutz hängt damit zusammen, dass es damals die ie.au3 noch nich gab ;)

    zu deinem problem sehe ich keine lösung, sry.. also wenn man bei $coll ,1) hinten dran setzt dann gibts zumindestens ein array.. das bringt ein aber auch nich weiter weil $table[0][0] = "0" und $table[0][1] = "" ...

    Mfg Spider

  • Aktion bei TrayTip-Klick

    • GtaSpider
    • 5. April 2007 um 13:21

    Hallo!

    Vlt kannst du dir was von meinem "Das Neuste Thema" abgucken.. siehe Signatur..

    Mfg Spider

  • Aktion bei TrayTip-Klick

    • GtaSpider
    • 4. April 2007 um 20:56

    Hallo!

    Ich hab mal ne _ToolTip funktion gemacht, vlt kannst du dir da was von abgucken...

    Spoiler anzeigen
    [autoit]

    $tool1 = _ToolTip("Test", 50, 50)
    Sleep(1000)
    $tool2 = _ToolTip("Test2", 90, 90)
    Sleep(500)
    _ToolTipDelete($tool1,1);Ausblenden und dann schließen
    Sleep(800)
    _ToolTipDelete($tool2);Hart schlißen

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

    Func _ToolTip($sText, $iX, $iY)
    ;By GtaSpider

    Local $RetAr[2]
    ;Mainfenster erstellen
    $tooltipmain = GUICreate("", 123, 123, $iX, $iY, -2147483648, 128);$WS_POPUP = -2147483648, $WS_EX_TOOLWINDOW = 128
    GUISetBkColor(0xFFFFE1)
    ;Label mit Text erstellen
    $lab = GUICtrlCreateLabel($sText, 3, 3)

    $cgp = ControlGetPos($tooltipmain, "", $lab);Labelgröße rausfinden
    WinMove($tooltipmain, "", $iX, $iY, $cgp[2], $cgp[3]);Gui perfekt formen
    ;Schatten erstellen
    $tooltipshadow = GUICreate("", 123, 123, $iX, $iY, -2147483648, 128);$WS_POPUP = -2147483648, $WS_EX_TOOLWINDOW = 128
    GUISetBkColor(0x0)
    WinSetTrans($tooltipshadow, "", 100)
    ;Schatten perfekt formen
    WinMove($tooltipshadow, "", $iX + 3, $iY + 3, $cgp[2], $cgp[3])
    ;OnTop
    WinSetOnTop($tooltipmain,"",1)
    WinSetOnTop($tooltipmain,"",2)
    ;Zeige Tooltip
    GUISetState(@SW_SHOW, $tooltipshadow)
    GUISetState(@SW_SHOW, $tooltipmain)
    ;Bereite das Return array vor, falls man das Tooltip wider entfernen will
    $RetAr[0] = $tooltipmain
    $RetAr[1] = $tooltipshadow
    Return $RetAr
    EndFunc ;==>_ToolTip

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

    Func _ToolTipDelete($aTooltiphwnd,$smooth=0)
    ;By GtaSpider

    ;Löscht das tooltip
    If $smooth Then ;Wenn smooth wahr ist dann wird ausgeblendet
    For $i = 255 To 0 Step -10
    WinSetTrans($aTooltiphwnd[0],"",$i)
    If $i < 101 Then WinSetTrans($aTooltiphwnd[1],"",$i)
    Sleep(10)
    Next
    EndIf
    GUIDelete($aTooltiphwnd[0])
    GUIDelete($aTooltiphwnd[1])
    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™