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

Beiträge von autoBert

  • Bestimmte eingaben

    • autoBert
    • 13. März 2010 um 22:49

    Hallo ThePierre,

    du musst die beiden Variablen gegen andere gegenchecken, such mal im Forum Skripte nach LoginBox von Oscar , darin findest du eine Möglichkeit wie du das Passwort über MD5-Hashwerte hinterlegen kannst,

    mfg (Auto)Bert

  • Unschönes Problem mit GUI List

    • autoBert
    • 13. März 2010 um 22:45

    Hallo m-obi,

    Zitat von m-obi

    Solangsam wird das hier ein Dialog :D

    besser als ein Monolog.

    Mir fällt aber zur möglichen Lösung nichts ein,

    mfg (Auto)Bert

  • Daten an email senden

    • autoBert
    • 13. März 2010 um 22:42

    Hallo ThePierre,

    wenn es nicht zum Thema passt dann setze diesen Thread auf gelöst und eröffne einen neuen,

    mfg (Auto)Bert

  • OGame Userverwaltungstool -> Problemchen :P

    • autoBert
    • 13. März 2010 um 22:36

    Hallo TheBigX,

    Zitat

    Zitat aus Online-Hilfe zu IniReadSection:
    Rückgabewert
    Erfolg: Gibt ein 2-dimensionales Array zurück, in dem element[n][0] der Schlüssel und element[n][1] der Wert ist.
    Fehler: Setzt @error auf 1, wenn die Sektion nicht gelesen werden kann (Die .ini-Datei oder die Sektion könnte nicht existieren)

    mfg (Auto)Bert

  • Unschönes Problem mit GUI List

    • autoBert
    • 13. März 2010 um 22:33

    Hallo m-obi,

    das ist das Standardverhalten in Zusammenhang mit diesem Style, geht nicht zu ändern

    mfg (Auto)Bert

  • Unschönes Problem mit GUI List

    • autoBert
    • 13. März 2010 um 22:19

    Hallo m-obi,

    das liegt an dem Style $LBS_MULTIPLESEL. Da man dadurch ja mehrere auswählen kann, muss man sie auch wieder abwählen können, ohne diesen Style wird immer 1 neue ausgewählt.

    Mangels der Ini habe ich es mit meinem Demo getestet.

    mfg (Auto)Bert

  • Daten an email senden

    • autoBert
    • 13. März 2010 um 22:02

    ich habe das Skript aus Post #11 jetzt auch mit Web.de und HotMail.de getestet.

    Web.de:

    • $SmtpServer = "smtp.web.de" ; address for the smtp-server to use - REQUIRED
    • $IPPort = 587 ; port used for sending the mail normaly 25
    • $ssl = 0 ; enables/disables secure socket layer sending - put to 1 if using httpS

    HotMail:

    • $SmtpServer = "smtp.live.com" ; address for the smtp-server to use - REQUIRED
    • $IPPort = 25 ; port used for sending the mail normaly 25
    • $ssl = 1 ; enables/disables secure socket layer sending - put to 1 if using httpS

    Google:

    • $SmtpServer = "smtp.googlemail.com" ; address for the smtp-server to use - REQUIRED
    • $IPPort = 465 ; port used for sending the mail normaly 25
    • $ssl = 1 ; enables/disables secure socket layer sending - put to 1 if using httpS

    mfg (Auto)Bert

  • Unschönes Problem mit GUI List

    • autoBert
    • 13. März 2010 um 21:53

    Hallo m-obi,

    kann dein Problem nicht nachvollziehen, bei mir wird immer ein Eintrag markiert. Poste doch das Skript oder Demo in dem es auftritt,

    Edit, Demo angehängt:

    Spoiler anzeigen
    [autoit]

    #include <GUIConstants.au3>
    #Include <GuiListBox.au3>
    #include <ListboxConstants.au3>
    #include <File.au3>

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

    Global $szDrive,$szDir,$szFName,$szExt

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

    $hGUI = GUICreate("Flaggen", 300, 100)
    $hListe = GUICtrlCreateList("", 10, 10, 180, 80,$LBS_NOTIFY)
    $hNeu = GUICtrlCreateButton("...",200,10,30,25)
    $hVorschau = GUICtrlCreatePic(@ScriptDir & "\Flaggen\NA.jpg", 210, 40, 36, 24)
    GUISetState()

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    case $hNeu
    $sAlt = GUICtrlRead($hListe)
    $sPlus = FileOpenDialog("Land auswählen:",@ScriptDir & "\Flaggen","Bilder (*.jpg)",3,"",$hGUI)
    _PathSplit($sPlus,$szDrive,$szDir,$szFName,$szExt)
    ConsoleWrite($szFName & @CRLF)
    _GUICtrlListBox_InsertString($hListe,$szFName,0)
    Case $hListe
    GUICtrlSetImage($hVorschau, @ScriptDir & "\Flaggen\" & GUICtrlRead($hListe) & ".jpg")
    EndSwitch
    WEnd

    [/autoit]

    hierzu wird Der Inhalt kann nicht angezeigt werden, da er nicht mehr verfügbar ist. benötigt,

    mfg (Auto)Bert

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

    • autoBert
    • 13. März 2010 um 21:47

    Hallo kleiner27,

    das Tool zeigt mir zwar dass ich über 22.000 Filenamen habe, die mind. 2 mal vorkommen, aber leider nicht wo,

    mfg (Auto)Bert

  • Eigenes Tab-Register (OwnTab-UDF)

    • autoBert
    • 13. März 2010 um 21:05

    Hallo Magnus,

    der Tab blinkt, weil dort eine wichtiges Ereignis (z.B. neue Info) eingetreten ist. Nachdem der Anwender auf das Tab gewechselt hat, hat er dieses ja gelesen, somit ist das Blinken überflüssig,

    mfg (Auto)Bert

  • Daten an email senden

    • autoBert
    • 13. März 2010 um 19:11

    Hallo ThePierre,

    für GMX-Konten funktioniert dieses Skript:

    Spoiler anzeigen
    [autoit]

    Global $oMyRet[2]
    Global $oMyError = ObjEvent("AutoIt.Error", "MyErrFunc")

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

    #include <_INetSmtpMailCom.au3>

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

    ;##################################
    ; Variables
    ;##################################
    $SmtpServer = "mail.gmx.net" ; address for the smtp-server to use - REQUIRED
    $FromName = "My Name" ; name from who the email was sent
    $FromAddress = "anybody.@gmx.de" ; address from where the mail should come
    $ToAddress = "everybody.@gmx.de" ; destination address of the email - REQUIRED
    $Subject = "Userinfo" ; subject from the email - can be anything you want it to be
    $Body = "Test" ; 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 = "Normal" ; Send message priority: "High", "Normal", "Low"
    $Username = "anybody@gmx.de" ; 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 normaly 25
    $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
    ;##################################
    $rc = _INetSmtpMailCom($SmtpServer, $FromName, $FromAddress, $ToAddress, $Subject, $Body, $AttachFiles, $CcAddress, $BccAddress, $Importance, $Username, $Password, $IPPort, $ssl)
    If @error Then
    MsgBox(0, "Error sending message", "Error code:" & @error & " Description:" & $rc)
    EndIf

    [/autoit]

    zusammen mit dieser UDF (_INetSmtpMailCom.au3):

    Spoiler anzeigen
    [autoit]

    ;##################################
    ; Include
    ;##################################
    #Include<file.au3>
    ;http://www.autoitscript.com/forum/index.ph…ndpost&p=166575
    ; 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

    [/autoit]

    mfg (Auto)Bert

  • Daten an email senden

    • autoBert
    • 13. März 2010 um 17:21

    Hallo ThePierre,

    bist du dir sicher, dass deine Anmeldedaten stimmen :?: Siehe hierzu auch https://hilfe.freemail.web.de/freemail/e-mai…QtTX.1grcDm.44*da müssten die korrekten Servernamen stehen,

    mfg (Auto)Bert

  • Daten an email senden

    • autoBert
    • 13. März 2010 um 16:41

    Hallo ThePierre,

    du musst auch

    [autoit]

    #include <INet.au3>

    [/autoit]

    am Skriptanfang einfügen,

    mfg (Auto)Bert

  • Daten an email senden

    • autoBert
    • 13. März 2010 um 16:22

    Hallo ThePierre,

    schau dir hierzu

    [autoit]

    _INetMail

    [/autoit]

    bzw.

    [autoit]

    _INetSmtpMail

    [/autoit]

    in der Hilfe an. Beim 2. kann es sein dass es je nach Provider nicht funktioniert, schau dir dann [ offen ] _INetSmtpMail Buggy? an

    mfg (Auto)Bert

  • Windows Live Messenger

    • autoBert
    • 13. März 2010 um 16:04

    Hallo Drop Dead,

    Zitat von Drop Dead!

    Ist leider Uralt und funktioniert nichtmehr.

    folgendes kleine Beispiel

    [autoit]

    #include<MSN.au3>
    $msn = _msncreate()
    $state = _msngetstate($msn)
    MsgBox(0,"Status",$state)

    [/autoit]

    fnktioniert bei mir wunderbar,

    mfg (Auto)Bert

  • Fenster schließen nach eingeben

    • autoBert
    • 13. März 2010 um 14:36

    Hallo ThePierre,

    du hast doch hier: [ gelöst ] Fenster schließen... schon die nötigen Hinweise bekommen,

    mfg (Auto)Bert

  • Button Problem

    • autoBert
    • 13. März 2010 um 14:07

    Hallo secret1994

    du hast 2 Schleifen mit GuiGetMsg, eine davon ist überflüssig / schädlich.
    Poste doch bitte das komplette Skript,

    mfg (Auto)Bert

  • Button Problem

    • autoBert
    • 13. März 2010 um 13:32

    Hallo Secret1994,

    sicher ist das möglich. Ich würde zuerst alle GUIs anlegen und diese GUI HIDEn. Du definierst eine GLOBALe Variable z.B. $toggle mit Wert FALSE. Beim Buttonklick prüfst du diese Variable und setzt abhängig von ihr mit GUISETSTATE den Status auf @SW_SHOW bzw. @SW_HIDE. Danach weisst du der Variable den gegnteiligen Wert zu:

    [autoit]

    $toggle = not $toggle

    [/autoit]

    mfg (Auto)Bert

  • Webseite auslesen

    • autoBert
    • 13. März 2010 um 13:24

    Hallo emtec,

    gebe die URL für InetGet auf folgende Art an: "http://myuser:mypassword@https://autoit.de/www.somesite.com"

    mfg (Auto)Bert

  • %i in einem Editfeld

    • autoBert
    • 13. März 2010 um 13:18

    Hallo dali4u,

    das hängt mit dem Befehl Stringformat zusammen, %i ist dort ein Platzhalterzeichen für vorzeichenbehaftete Integer-Zahlen

    mfg (Auto)Bert

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™