1. Dashboard
  2. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  3. Forenregeln
  4. Forum
    1. Unerledigte Themen
  • Anmelden
  • Registrieren
  • Suche
Alles
  • Alles
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche
  1. AutoIt.de - Das deutschsprachige Forum.
  2. Mitglieder
  3. Xenobiologist

Beiträge von Xenobiologist

  • Auswertung vom Schtasks.exe Output

    • Xenobiologist
    • 12. April 2010 um 20:22

    Hi,
    da kommt bei mir natürlich nichts. Kannst du mal zeigen wir der Output aussieht und was du davon brauchst.
    Mega

  • StringRegExp Ausdruck

    • Xenobiologist
    • 12. April 2010 um 20:09
    Spoiler anzeigen
    [autoit]

    #include <Array.au3>
    $str = "Hallo wie gehtss"
    $re = StringRegExp($str, '.{4}', 3)
    _ArrayDisplay($re)

    [/autoit]
  • [Beep] funktioniert nicht

    • Xenobiologist
    • 25. März 2010 um 21:34

    http://www.pctipp.ch/praxishilfe/ku…_abstellen.html

  • Star Wars Intro NEU

    • Xenobiologist
    • 25. März 2010 um 21:16

    Ich schließe mich meinem Vorposter an! :D

  • [Beep] funktioniert nicht

    • Xenobiologist
    • 25. März 2010 um 21:14

    Geh doch in deine audioeigenschaften und teste mal. Geht er gar nicht mehr? nur bei Autoit nicht?

  • Ein bestimmtes Wort in mehreren Log-Dateien zählen

    • Xenobiologist
    • 25. März 2010 um 20:58

    Hi,

    1) _FileListToArray mit *.log
    2) Eine For Schleife über alle Dateien
    Darin einleisen, StringReplace dein Wort durch dein Wort und in @extented steht die Anzahl
    Dann wegschreiben in deine SQL DB oder einfach in eine Datei (z.B. Ini Datei)
    3) Datei umbenennen mit FileMove
    4) Fertig und freuen

    Mega

  • [Beep] funktioniert nicht

    • Xenobiologist
    • 25. März 2010 um 20:55

    Ist heute schon der 01.04?

  • Fensterinhalt mit GDI+ vergrößert in anderem Fenster darstellen ?

    • Xenobiologist
    • 23. März 2010 um 18:12

    Such mal nach Lupe, das sollte auch ein paar Treffer bringen.

  • Herunterfahren disablen

    • Xenobiologist
    • 19. März 2010 um 11:01

    Kannst ja mal sowas probieren

    [autoit]

    AdlibRegister('_undoShutdown', 1000)

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

    While 1
    Sleep(1000)
    WEnd

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

    Func _undoShutdown()
    ShellExecute("shutdown", "-a", @ScriptDir, Default, @SW_HIDE)
    EndFunc ;==>_undoShutdown

    [/autoit]
  • Herunterfahren disablen

    • Xenobiologist
    • 19. März 2010 um 10:34

    Warum das bitte?

  • Aus DLL eingebunde Icons werden seltsam angezeigt

    • Xenobiologist
    • 18. März 2010 um 22:16

    Hi,

    bist du dir sicher, das Höhe und Breite auch zum Icon passen? Nicht das es gestreckt wird oder ähnliches.

    Mega

  • Auf Welche Dateien greift ein Prozess zu?

    • Xenobiologist
    • 18. März 2010 um 15:17

    Guck mal hier :http://www.autoitscript.com/forum/index.php?showtopic=83145

  • Auf Welche Dateien greift ein Prozess zu?

    • Xenobiologist
    • 18. März 2010 um 14:36

    Hi,

    schon mal FileMon oder ProcessExplorer probiert?

    Mega

  • Organize Includes

    • Xenobiologist
    • 18. März 2010 um 13:15

    Hi,

    um es am Script ausrichten zu können, habe ich mir gedacht den Parameter auch im Script zu hinterlegen.
    Sowas:

    [autoit]

    #OrganizeIncludes_ScriptIncludePath= '\include'

    [/autoit]

    Davon könnten dann auch mehrere genutzt werden.

    Was hälst du davon?
    Mega

  • Organize Includes

    • Xenobiologist
    • 17. März 2010 um 10:47

    Hi bernd,

    da hat du natürlich vollkommen recht. Ich frage mich nur, wie ich das am besten einbauen sollte.
    Ich denke, ich müsste einen Extrapunkt einbauen für Projektpfad. Diesen könnte man dann relativ (oder absolut) zum Script angeben und OI müsste diesen auch mit ranziehen.

    Sprich ScripDirIncludesPath = \include
    Dann würde OI alle au3 Dateien in @scriptDir &'\inlcude' auch untersuchen. und diese ggf. mit ' ...' oder "..." einbinden.

    Das würde helfen oder?

    Mega

    DANKE schon mal!

  • TCP - Server empfängt nicht oder nur einmal :(

    • Xenobiologist
    • 16. März 2010 um 18:36
    Zitat von HalliHalloSchat

    geht er nicht aus dieser Schleife raus, da er nichts empfängt wird doch @error von TCPRecv() gesetzt:


    [autoit]


    While 1
    $Recv = TCPRecv($ConnectedSocket,4096)
    if $Recv <> "" then TrayTip("SERVER","Received " & $Recv,1000)
    if @error then
    ExitLoop
    EndIf
    WEnd

    [/autoit]

    Edit: Frage: wie bekommt man das Eingerückt dargestellt???

    Alles anzeigen

    STRG+T in SciTE

    Ja ja, die gute alte Reihenfolge :D

  • Organize Includes

    • Xenobiologist
    • 16. März 2010 um 13:55

    Hi bernd,

    das Einbinden der Dinge aus UDF Ordner, oder ScriptDir mit " oder ' habe ich eingebaut. (Noch nicht gepostet)
    Aber wie soll das mit den relativen\absoluten Pfaden gehen?
    Macht es nicht mehr Sinn, diese Ordner auch in den UDF path mit aufzunehmen?

    Mega

  • TCP - Server empfängt nicht oder nur einmal :(

    • Xenobiologist
    • 16. März 2010 um 12:07

    Gute Einstellung.
    Du must immer auf die Reihenfolge achten.
    Also irgendwie sollte es umgefähr so aussehen: Listen --> Connect --> Send --> receive

  • TCP - Server empfängt nicht oder nur einmal :(

    • Xenobiologist
    • 16. März 2010 um 12:02

    Hi,

    es gibt doch schon so viele Chatprogramme. Hier ist ein altes von mir :)
    Einfach 2x kompilieren und dann doppelt starten. Listen beim anderen connect und umgekehrt.
    Das Script ist beides Server und Client.

    Spoiler anzeigen
    [autoit]

    ; MegaChat
    #include <File.au3>
    #include <GuiIPAddress.au3>
    #include <Inet.au3>
    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>

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

    Opt("OnExitFunc", "_endscript")
    Opt("MustDeclareVars", 1)

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

    Global $title = "MegaChat", $l_port_startValue = 10000, $r_port_startValue = 20000, $left = 100, $logPath = 'MegaChat.log'

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

    If WinExists($title) Then
    $title &= ' 2'
    $l_port_startValue = 20000
    $r_port_startValue = 10000
    $left += 500
    $logPath = 'MegaChat2.log'
    EndIf

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

    Global $GUI
    Global $l_hostname_I, $l_ip_IC, $l_port_I, $listen_B
    Global $r_hostname_I, $r_ip_IC, $r_port_I, $connect_B
    Global $comm_E, $send_E, $send_B

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

    #Region ### START Koda GUI section ### Form=c:\dokumente und einstellungen\xf01145\eigene dateien\chat.kxf
    $GUI = GUICreate($title, 445, 508, $left, 111)

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

    GUICtrlCreateGroup("Local settings", 10, 10, 420, 105)
    GUICtrlCreateLabel("Hostname", 20, 30, 52, 17)
    $l_hostname_I = GUICtrlCreateInput(@ComputerName, 105, 25, 131, 21)
    GUICtrlCreateLabel("IP-address", 20, 55, 54, 17)
    $l_ip_IC = _GUICtrlIpAddress_Create($GUI, 105, 50, 130, 21)
    _GUICtrlIpAddress_Set($l_ip_IC, @IPAddress1)
    GUICtrlCreateLabel("Listener-Port", 20, 80, 63, 17)
    $l_port_I = GUICtrlCreateInput($l_port_startValue, 105, 75, 131, 21)
    $listen_B = GUICtrlCreateButton("Listen", 275, 25, 120, 25, $WS_GROUP)
    GUICtrlCreateGroup("", -99, -99, 1, 1)

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

    GUICtrlCreateGroup("Remote settings", 10, 115, 420, 105)
    GUICtrlCreateLabel("Hostname", 20, 135, 52, 17)
    $r_hostname_I = GUICtrlCreateInput("not connected ...", 105, 130, 131, 21)
    GUICtrlCreateLabel("IP-address", 20, 160, 54, 17)
    $r_ip_IC = _GUICtrlIpAddress_Create($GUI, 105, 155, 130, 21)
    _GUICtrlIpAddress_Set($r_ip_IC, @IPAddress1)
    GUICtrlCreateLabel("Listener-Port", 20, 185, 63, 17)
    $r_port_I = GUICtrlCreateInput($r_port_startValue, 105, 180, 131, 21)
    $connect_B = GUICtrlCreateButton("Connect", 280, 130, 120, 25, $WS_GROUP)
    GUICtrlCreateGroup("", -99, -99, 1, 1)

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

    GUICtrlCreateGroup("Communication summary", 10, 220, 420, 155)
    $comm_E = GUICtrlCreateEdit("", 15, 235, 410, 134)
    GUICtrlCreateGroup("", -99, -99, 1, 1)

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

    GUICtrlCreateGroup("Communication send", 10, 375, 420, 95)
    $send_E = GUICtrlCreateEdit("", 15, 390, 410, 74)
    GUICtrlCreateGroup("", -99, -99, 1, 1)

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

    $send_B = GUICtrlCreateButton("Send", 10, 475, 90, 25, $WS_GROUP)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    ; Start The TCP Services
    ;==============================================
    TCPStartup()
    ; Initialize a variable to represent a server-connection
    ;==============================================
    Global $ConnectedSocket = -1
    ; Initialize a variable to represent a client-connection
    ;==============================================
    Global $ConnectedToSocket = -1
    Global $recv

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

    _main()

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

    Func _main()
    Local $nMsg

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $listen_B
    _listen()
    Case $connect_B
    _connect()
    Case $send_B
    If $ConnectedToSocket <> -1 Then
    _send()
    Else
    _FileWriteLog($logPath, 'You are not connected!')
    MsgBox(16, 'Error', 'You are not connected!', 5)
    EndIf
    EndSwitch
    If $ConnectedSocket <> -1 Then _receive()
    WEnd
    EndFunc ;==>_main

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

    Func _send()
    Local $txt = GUICtrlRead($send_E)
    If $txt <> '' Then TCPSend($ConnectedToSocket, $txt)
    ; If the send failed with @error then the socket has disconnected
    ;----------------------------------------------------------------
    If @error Then
    _FileWriteLog($logPath, 'TCPSend error')
    Else
    GUICtrlSetData($comm_E, _
    @UserName & " : " & $txt & @CRLF & GUICtrlRead($comm_E))
    GUICtrlSetData($send_E, '')
    EndIf
    EndFunc ;==>_send

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

    Func _connect()
    ;Attempt to connect to SERVER at its IP and PORT
    ;=======================================================
    $ConnectedToSocket = TCPConnect(_GUICtrlIpAddress_Get($r_ip_IC), GUICtrlRead($r_port_I))

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

    ; If there is an error... show it
    If @error Then
    MsgBox(4112, "Error", "TCPConnect failed with WSA error: " & @error & @CRLF & 'Maybe nobody is listening ...')
    _FileWriteLog($logPath, 'Connecting error')
    EndIf
    EndFunc ;==>_connect

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

    Func _receive()
    ; Try to receive (up to) 2048 bytes
    ;----------------------------------------------------------------
    $recv = TCPRecv($ConnectedSocket, 2048)

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

    ; If the receive failed with @error then the socket has disconnected
    ;----------------------------------------------------------------
    If @error Then
    _FileWriteLog($logPath, 'Disconnected')
    $ConnectedSocket = -1
    EndIf

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

    ; Update the edit control with what we have received
    ;----------------------------------------------------------------
    If $recv <> "" Then GUICtrlSetData($comm_E, _
    GUICtrlRead($r_hostname_I) & " -> " & $recv & @CRLF & GUICtrlRead($comm_E))
    EndFunc ;==>_receive

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

    Func _listen()
    ; Create a Listening "SOCKET"
    ;==============================================
    Local $MainSocket = TCPListen(@IPAddress1, GUICtrlRead($l_port_I), 100)
    If $MainSocket = -1 Then
    _FileWriteLog($logPath, 'TCPListen error')
    Exit
    EndIf

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

    ;Wait for and Accept a connection
    ;==============================================
    Local $start = TimerInit()
    Do
    $ConnectedSocket = TCPAccept($MainSocket)
    Until $ConnectedSocket <> -1 Or (TimerDiff($start) > 25000)

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

    ; Get IP of client connecting
    Local $szIP_Accepted = SocketToIP($ConnectedSocket)
    GUICtrlSetData($r_hostname_I, _TCPIpToName($szIP_Accepted))
    EndFunc ;==>_listen

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

    ; Function to return IP Address from a connected socket.
    ;----------------------------------------------------------------------
    Func SocketToIP($SHOCKET)
    Local $sockaddr, $aRet

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

    $sockaddr = DllStructCreate("short;ushort;uint;char[8]")

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

    $aRet = DllCall("Ws2_32.dll", "int", "getpeername", "int", $SHOCKET, _
    "ptr", DllStructGetPtr($sockaddr), "int*", DllStructGetSize($sockaddr))
    If Not @error And $aRet[0] = 0 Then
    $aRet = DllCall("Ws2_32.dll", "str", "inet_ntoa", "int", DllStructGetData($sockaddr, 3))
    If Not @error Then $aRet = $aRet[0]
    Else
    $aRet = 0
    EndIf

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

    $sockaddr = 0

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

    Return $aRet
    EndFunc ;==>SocketToIP

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

    Func _endscript()
    TCPCloseSocket($ConnectedSocket)
    TCPShutdown()
    Exit (0)
    EndFunc ;==>_endscript

    [/autoit]

    Mega

  • ( Dubletten - Finder ) bei Übereinstim.... der Dateinamen

    • Xenobiologist
    • 13. März 2010 um 23:33

    Hi,

    gute Idee. Guck dir mal AntiTwin an, der findet auch inhaltlich gleiche Dateien auch wenn sie nicht gleich heißen.
    Ist sehr gut für MP3s!

    Mega

Spenden

Jeder Euro hilft uns, Euch zu helfen.

Download

AutoIt Tutorial
AutoIt Buch
Onlinehilfe
AutoIt Entwickler
  1. Datenschutzerklärung
  2. Impressum
  3. Shoutbox-Archiv
Community-Software: WoltLab Suite™