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

Beiträge von Sprenger120

  • Windows XP - Herunterfahren Knopf austauschen

    • Sprenger120
    • 1. Februar 2010 um 13:04

    aber jetze stellt sich die frage wird die shutdown.exe beim Runterfahren auch genutzt!

  • Windows XP - Herunterfahren Knopf austauschen

    • Sprenger120
    • 1. Februar 2010 um 11:11
    Zitat von Ahnungslos

    Sollte doch auch gehen, indem du die Shutdown.exe umbenennst und an deren Stelle ein compiliertes AutoIt-Script erstellst mit dem Namen: Shutdown.exe.

    gute idee und dann mit replacer ersetzen

  • Windows XP - Herunterfahren Knopf austauschen

    • Sprenger120
    • 1. Februar 2010 um 10:47

    ich habe schon ewig kein xp mehr drauf gehabt aber gucke mal in den Energieoptionen (Systemsteuerung) und dann auf der Kartei Erweitert und schaue dir mal die Einstellungen an. Ich meine mich zu Erinnern das es dort eine Einstellung zu diesem Thema gibt.

  • Null-Device's Rätsel Nr.1

    • Sprenger120
    • 31. Januar 2010 um 17:42

    also ist der strom langsam aber der anstups inpuls erfolgt mit lichtgeschwindigkeit

  • FileDownloader 1.0

    • Sprenger120
    • 31. Januar 2010 um 17:39

    top :thumbup:

  • Null-Device's Rätsel Nr.1

    • Sprenger120
    • 31. Januar 2010 um 15:56

    mit lichtgeschwindigkeit wenns der elektrische strom ist

  • _INetSmtpMail Probelm

    • Sprenger120
    • 31. Januar 2010 um 14:43

    was ich noch vergessen habe
    du musst natürlich beim jewailgen smtp server registriert sein

  • Handle auslesen

    • Sprenger120
    • 31. Januar 2010 um 14:41

    hmm gut aber wie kann ich mein kleines proggi nun scheller machen ?

  • Handle auslesen

    • Sprenger120
    • 31. Januar 2010 um 14:19

    aber ich habe doch die jpg komprimierung drinne gucke mein Script

  • Handle auslesen

    • Sprenger120
    • 31. Januar 2010 um 14:12

    ahh ich bruache die speicheraddresse von dem bild

    aber wie bekomme ich die?

  • tcp problem :)

    • Sprenger120
    • 31. Januar 2010 um 14:09

    oh da wusse ich nicht

  • _INetSmtpMail Probelm

    • Sprenger120
    • 31. Januar 2010 um 13:16

    du musst dich auch beim smtp server authifenzieren (bestimmt falsch geschrieben :S ) und deswegen pwd + username


    hier mal das bsp für gmx

    [autoit]


    $SmtpServer = "mail.gmx.net" ; address for the smtp-server to use - REQUIRED
    $FromName = "" ; name from who the email was sent
    $FromAddress = "DeineEmailAddresse@anbieter.de" ; address from where the mail should come
    $ToAddress = "empfänger@anbieter.de" ; destination address of the email - REQUIRED
    $Subject = "Ich bin der Titel der Email" ; subject from the email - can be anything you want it to be
    $Body = "Ich bin der inhalt" ; the messagebody from the mail - can be left blank but then you get a blank mail
    $AttachFiles = "" ; the file you want to attach- leave blank if not needed
    $CcAddress = "" ; address for cc - leave blank if not needed
    $BccAddress = "" ; address for bcc - leave blank if not needed
    $Importance = "" ; Send message priority: "High", "Normal", "Low"
    $Username = "deineemailaddresse@anbieter.de" ; username for the account used from where the mail gets sent - REQUIRED
    $Password = "deinPasswortfür deinen email account" ; password for the account used from where the mail gets sent - REQUIRED
    $IPPort = 25 ; port used for sending the mail
    $ssl = 0 ; enables/disables secure socket layer sending - put to 1 if using httpS

    [/autoit]
  • _INetSmtpMail Probelm

    • Sprenger120
    • 31. Januar 2010 um 12:15

    nutze doch diese, die is viel besser

    Spoiler anzeigen
    [autoit]


    ; Script Start - Add your code below here
    ;
    ;##################################
    ; Include
    ;##################################
    #include<file.au3>
    ;##################################
    ; Variables
    ;##################################
    $SmtpServer = "" ; address for the smtp-server to use - REQUIRED
    $FromName = "" ; name from who the email was sent
    $FromAddress = "" ; address from where the mail should come
    $ToAddress = "" ; destination address of the email - REQUIRED
    $Subject = "" ; subject from the email - can be anything you want it to be
    $Body = "" ; the messagebody from the mail - can be left blank but then you get a blank mail
    $AttachFiles = "" ; the file you want to attach- leave blank if not needed
    $CcAddress = "" ; address for cc - leave blank if not needed
    $BccAddress = "" ; address for bcc - leave blank if not needed
    $Importance = "" ; Send message priority: "High", "Normal", "Low"
    $Username = "" ; username for the account used from where the mail gets sent - REQUIRED
    $Password = "" ; password for the account used from where the mail gets sent - REQUIRED
    $IPPort = 25 ; port used for sending the mail
    $ssl = 0 ; enables/disables secure socket layer sending - put to 1 if using httpS
    ;~ $IPPort=465 ; GMAIL port used for sending the mail
    ;~ $ssl=1 ; GMAILenables/disables secure socket layer sending - put to 1 if using httpS

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

    ;##################################
    ; Script
    ;##################################
    Global $x = 0
    Global $oMyRet[2]
    Global $oMyError = ObjEvent("AutoIt.Error", "MyErrFunc")

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

    ;
    ; The UDF
    Func _INetSmtpMailCom($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject = "", $as_Body = "", $s_AttachFiles = "", $s_CcAddress = "", $s_BccAddress = "", $s_Importance = "Normal", $s_Username = "", $s_Password = "", $IPPort = 25, $ssl = 0)
    Local $objEmail = ObjCreate("CDO.Message")
    $objEmail.From = '"' & $s_FromName & '" <' & $s_FromAddress & '>'
    $objEmail.To = $s_ToAddress
    Local $i_Error = 0
    Local $i_Error_desciption = ""
    If $s_CcAddress <> "" Then $objEmail.Cc = $s_CcAddress
    If $s_BccAddress <> "" Then $objEmail.Bcc = $s_BccAddress
    $objEmail.Subject = $s_Subject
    If StringInStr($as_Body, "<") And StringInStr($as_Body, ">") Then
    $objEmail.HTMLBody = $as_Body
    Else
    $objEmail.Textbody = $as_Body & @CRLF
    EndIf
    If $s_AttachFiles <> "" Then
    Local $S_Files2Attach = StringSplit($s_AttachFiles, ";")
    For $x = 1 To $S_Files2Attach[0]
    $S_Files2Attach[$x] = _PathFull($S_Files2Attach[$x])
    ConsoleWrite('@@ Debug(62) : $S_Files2Attach = ' & $S_Files2Attach & @LF & '>Error code: ' & @error & @LF) ;### Debug Console
    If FileExists($S_Files2Attach[$x]) Then
    $objEmail.AddAttachment($S_Files2Attach[$x])
    Else
    ConsoleWrite('!> File not found to attach: ' & $S_Files2Attach[$x] & @LF)
    SetError(1)
    Return 0
    EndIf
    Next
    EndIf
    $objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
    $objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = $s_SmtpServer
    If Number($IPPort) = 0 Then $IPPort = 25
    $objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = $IPPort
    ;Authenticated SMTP
    If $s_Username <> "" Then
    $objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
    $objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = $s_Username
    $objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = $s_Password
    EndIf
    If $ssl Then
    $objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = True
    EndIf
    ;Update settings
    $objEmail.Configuration.Fields.Update
    ; Set Email Importance
    Switch $s_Importance
    Case "High"
    $objEmail.Fields.Item("urn:schemas:mailheader:Importance") = "High"
    Case "Normal"
    $objEmail.Fields.Item("urn:schemas:mailheader:Importance") = "Normal"
    Case "Low"
    $objEmail.Fields.Item("urn:schemas:mailheader:Importance") = "Low"
    EndSwitch
    $objEmail.Fields.Update
    ; Sent the Message
    $objEmail.Send
    If @error Then
    SetError(2)
    Return $oMyRet[1]
    EndIf
    $objEmail = ""
    EndFunc ;==>_INetSmtpMailCom
    ;
    ;
    ; Com Error Handler
    Func MyErrFunc()
    $HexNumber = Hex($oMyError.number, 8)
    $oMyRet[0] = $HexNumber
    $oMyRet[1] = StringStripWS($oMyError.description, 3)
    ConsoleWrite("### COM Error ! Number: " & $HexNumber & " ScriptLine: " & $oMyError.scriptline & " Description:" & $oMyRet[1] & @LF)
    SetError(1); something to check for when this function returns
    Return
    EndFunc ;==>MyErrFunc

    [/autoit]
  • DeskStream

    • Sprenger120
    • 31. Januar 2010 um 11:45

    Ja so erstellts einen Handle und braucht nur 70 ms statt 200ms. Ich habe schon einen Thread aufgemacht um zu fragen ob man die Bilder gleich aus den RAM lesen kann.

  • tcp problem :)

    • Sprenger120
    • 31. Januar 2010 um 11:43
    Zitat von Reaker

    also beim Server reicht eigentlich @ipadress1 da brauchst du kein _GetIP()

    wenns aber übers web gehen soll braucht man _GetIP() eil dies die Öffentliche IP ermittelt die völlig anders sind als die IP´s von @IPaddress

  • Handle auslesen

    • Sprenger120
    • 31. Januar 2010 um 11:29

    ja erstmal auf 1024x768 resizen (auch auf 16Bit runterkomprimieren) und dann will ich dieses bild ohne es zu speichern direkt auslesen um es dann via tcp weiterzuschicken (Siehe DeskStream)

    //Edit: das unnütze speichern braucht etwa 120 ms aber der eigentliche desksnap nur 70 das würde DeskStream wesentlich flüssiger laufen lassen

  • Handle auslesen

    • Sprenger120
    • 31. Januar 2010 um 11:06

    HI
    ich habe einen Handle zu einem Bitmap objekt von der _ScreenCapture_Capture() Funktion und wollte frage ob das möglich ist die informationen von HBITMAP gleich auszulesen ohne dies erst in eine datei zu speichern und dann mit FileRead wieder auszulesen?

    Beispiel:

    [autoit]


    #include <ScreenCapture.au3>

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

    $r = TimerInit()
    $hBitmap = _ScreenCapture_Capture()
    MsgBox(0,0,TimerDiff($r)) ;80ms

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

    $r = TimerInit()
    _ScreenCapture_Capture("1.jpg")
    MsgBox(0,0,TimerDiff($r)) ;200ms

    [/autoit]

    Kurz und knapp:Kann man Bilder aus dem RAM lesen (also binär zum weiterverschickem)?

  • Finde den Fehler

    • Sprenger120
    • 31. Januar 2010 um 10:33

    ich habs mal so probiert aber irgentwie wird da nur müll in die datei geschrieben

    Spoiler anzeigen
    [autoit]


    Dim $aWins[9999999]
    $Datei = "Windows.txt"
    AdlibRegister("Write", 30000)

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

    While 1
    Sleep(10)
    WEnd

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

    Func Write()
    $Title = WinGetText("[ACTIVE]")

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

    For $x = 0 To UBound($aWins) - 1
    If StringInStr($aWins[$x], $Title) <> 0 Then
    $Title = Number(StringLeft($aWins[$x], 1))
    If $Title > 0 And IsNumber($Title) Then
    $Title += 1
    $aWins[$x] = StringTrimLeft($aWins[$x], 1)
    $aWins[$x] = $Title & " " & $aWins[$x]
    ExitLoop
    Else
    $aWins[$x] = "1 " & $aWins[$x]
    ExitLoop
    EndIf
    EndIf
    If $aWins[$x] = "" Then
    $aWins[$x] = $Title
    ExitLoop
    EndIf
    Next
    For $x = 0 To UBound($aWins) - 1
    If $aWins[$x] = "" Then
    ExitLoop
    Else
    $Title &= $aWins[$x] & @CRLF
    EndIf
    Next
    $hFile = FileOpen($Datei,2)
    FileWrite($hFile, $Title)
    FileClose($hFile)
    EndFunc ;==>Write

    [/autoit]
  • tcp problem :)

    • Sprenger120
    • 31. Januar 2010 um 10:09

    wenn du daten übers internet übertragen willst muss der server auch den Socket auf der Öffentlichen IP Erstellen (ich hoffe du hast den Port weitergeleitet)

    also beim server

    [autoit]


    Global $IP = _GetIP()

    [/autoit]

    und beim Clienten

    [autoit]


    Global $IP = InputBox("Server IP","Bitte die IP vom Server eingeben","")

    [/autoit]
  • DeskStream

    • Sprenger120
    • 31. Januar 2010 um 09:44

    wenig zeilen sinds ja aber es aber trotzdem ist diese _ScreenCapture Funktion urst langsam

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™