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

  • mehrere unabhängige cursor?

    • GtaSpider
    • 14. Dezember 2007 um 22:34

    Hallo

    Ich hab dir hier mal etwas geschrieben: (ich liebe den PNG Support in AutoIt ;))

    Spoiler anzeigen
    [autoit]

    #Include <GDIPlus.au3> ; this is where the magic happens, people
    #include <GuiComboBox.au3>
    Global Const $AC_SRC_ALPHA = 1
    Global Const $ULW_ALPHA = 2
    Global $CursorGUI

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

    $cur = _CreateCursor(250, 500)

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

    For $i = 500 To 700 Step 4
    _MoveCursor($cur, $i/2, $i)
    Sleep(10)
    Next
    Sleep(1000)

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

    _DeleteCursor($cur)
    Func _CreateCursor($iLeft = -1, $iTop = -1)
    Local $width, $pngSrc, $height, $hImage, $aRet[2], $CursorGUI
    ; Load PNG file as GDI bitmap
    _GDIPlus_Startup()
    $pngSrc = @ScriptDir & "\cur.png"
    $hImage = _GDIPlus_ImageLoadFromFile($pngSrc)

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

    ; Extract image width and height from PNG
    $width = _GDIPlus_ImageGetWidth($hImage)
    $height = _GDIPlus_ImageGetHeight($hImage)

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

    ; Create layered window
    $CursorGUI = GUICreate("Cur", $width, $height, $iLeft, $iTop, $WS_POPUP, $WS_EX_LAYERED+$WS_EX_TOOLWINDOW)
    SetBitmap($CursorGUI, $hImage, 0)
    ; Register notification messages
    GUIRegisterMsg($WM_NCHITTEST, "WM_NCHITTEST")
    GUISetState()
    WinSetOnTop($CursorGUI, "", 1)
    ;fade in png background
    For $i = 0 To 255 Step 1
    SetBitmap($CursorGUI, $hImage, $i)
    Next
    $aRet[0] = $CursorGUI
    $aRet[1] = $hImage
    Return $aRet
    EndFunc ;==>_CreateCursor

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

    Func _MoveCursor($ahCur, $iLeft, $iTop)
    WinMove($ahCur[0], "", $iLeft, $iTop)
    EndFunc ;==>_MoveCursor

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

    Func _DeleteCursor($ahCursor)
    ;fade out png background
    For $i = 255 To 0 Step - 10
    SetBitmap($ahCursor[0], $ahCursor[1], $i)
    Next
    ; Release resources
    _GDIPlus_ImageDispose($ahCursor[1])
    EndFunc ;==>_DeleteCursor

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

    Func OnAutoItExit()
    _GDIPlus_Shutdown()
    EndFunc ;==>OnAutoItExit

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

    ;===============================================================================================================================
    ; Handle the WM_NCHITTEST for the layered window so it can be dragged by clicking anywhere on the image.
    ;===============================================================================================================================
    Func WM_NCHITTEST($hWnd, $iMsg, $iwParam, $ilParam)
    If ($hWnd = $CursorGUI) And ($iMsg = $WM_NCHITTEST) Then Return $HTCAPTION
    EndFunc ;==>WM_NCHITTEST

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

    ;===============================================================================================================================
    ; SetBitMap
    ;===============================================================================================================================
    Func SetBitmap($hGUI, $hImage, $iOpacity)
    Local $hScrDC, $hMemDC, $hBitmap, $hOld, $pSize, $tSize, $pSource, $tSource, $pBlend, $tBlend

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

    $hScrDC = _WinAPI_GetDC(0)
    $hMemDC = _WinAPI_CreateCompatibleDC($hScrDC)
    $hBitmap = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImage)
    $hOld = _WinAPI_SelectObject($hMemDC, $hBitmap)
    $tSize = DllStructCreate($tagSIZE)
    $pSize = DllStructGetPtr($tSize)
    DllStructSetData($tSize, "X", _GDIPlus_ImageGetWidth($hImage))
    DllStructSetData($tSize, "Y", _GDIPlus_ImageGetHeight($hImage))
    $tSource = DllStructCreate($tagPOINT)
    $pSource = DllStructGetPtr($tSource)
    $tBlend = DllStructCreate($tagBLENDFUNCTION)
    $pBlend = DllStructGetPtr($tBlend)
    DllStructSetData($tBlend, "Alpha", $iOpacity)
    DllStructSetData($tBlend, "Format", $AC_SRC_ALPHA)
    _WinAPI_UpdateLayeredWindow($hGUI, $hScrDC, 0, $pSize, $hMemDC, $pSource, 0, $pBlend, $ULW_ALPHA)
    _WinAPI_ReleaseDC(0, $hScrDC)
    _WinAPI_SelectObject($hMemDC, $hOld)
    _WinAPI_DeleteObject($hBitmap)
    _WinAPI_DeleteDC($hMemDC)
    EndFunc ;==>SetBitmap

    [/autoit]

    Ich hoffe das hilft dir weiter :)

    Mfg Spider

    Edit: cur.png angehangen (siehe unten)
    Edit2: Hab mal eben den lästigen eintrag in der Taskleiste entfernt ($WS_EX_TOOLWINDOW)

    Dateien

    cur.zip 3,01 kB – 187 Downloads
  • Mein Avatar

    • GtaSpider
    • 14. Dezember 2007 um 14:04

    Hallo

    Carsten: Hier ist dein Pic, ich hoffe das Wasserzeichen stört nicht :D
    [Blockierte Grafik: http://img-up.net/img/Carsten8Itpigic.gif]

    Das Tutorial find ich nicht mehr, melde mich aber wenn ich es wieder hab!

    Mfg Spider

  • Ftp Upload!

    • GtaSpider
    • 13. Dezember 2007 um 13:28

    Hallo

    Starte das Script mal, und poste danach in die Error.log die im Scriptdir erstellt wird:

    Spoiler anzeigen
    [autoit]

    $dll = DllOpen('wininet.dll') FileWrite("error.log",'>Error code: ' & @error & @crlf & @crlf & '@@ Trace(4) : #include ' & @crlf) ;### Trace Console #include FileWrite("error.log",'>Error code: ' & @error & @crlf & @crlf & '@@ Trace(6) : #include ' & @crlf) ;### Trace Console #include FileWrite("error.log",'>Error code: ' & @error & @crlf & @crlf & '@@ Trace(10) : While 1' & @crlf) ;### Trace Console While 1 FileWrite("error.log",'>Error code: ' & @error & @crlf & @crlf & '@@ Trace(13) : Sleep(180000)' & @crlf) ;### Trace Console Sleep(180000) FileWrite("error.log",'>Error code: ' & @error & @crlf & @crlf & '@@ Trace(15) : _ScreenCapture_Capture(@Scriptdir & "\Screenshot_Lenny_" & @HOUR & "_" & @MIN & "_" & @MDAY & @YEAR & ".jpg")' & @crlf) ;### Trace Console _ScreenCapture_Capture(@Scriptdir & "\Screenshot_Lenny_" & @HOUR & "_" & @MIN & "_" & @MDAY & @YEAR & ".jpg") FileWrite("error.log",'>Error code: ' & @error & @crlf & @crlf & '@@ Trace(17) : Sleep(500)' & @crlf) ;### Trace Console Sleep(500) FileWrite("error.log",'>Error code: ' & @error & @crlf & @crlf & '@@ Trace(19) : $server = ''warlenny.wa.funpic.de'' ' & @crlf) ;### Trace Console $server = 'warlenny.wa.funpic.de' FileWrite("error.log",'>Error code: ' & @error & @crlf & @crlf & '@@ Trace(21) : $username = ''warlenny''' & @crlf) ;### Trace Console $username = 'warlenny' FileWrite("error.log",'>Error code: ' & @error & @crlf & @crlf & '@@ Trace(23) : $pass = "*******"' & @crlf) ;### Trace Console $pass = "*******" FileWrite("error.log",'>Error code: ' & @error & @crlf & @crlf & '@@ Trace(25) : $Open = _FTPOpen(''MyFTP Control'')' & @crlf) ;### Trace Console $Open = _FTPOpen('MyFTP Control') FileWrite("error.log",'>Error code: ' & @error & @crlf & @crlf & '@@ Trace(27) : $Conn = _FTPConnect($Open, $server, $username, $pass)' & @crlf) ;### Trace Console $Conn = _FTPConnect($Open, $server, $username, $pass) FileWrite("error.log",'>Error code: ' & @error & @crlf & @crlf & '@@ Trace(29) : $Ftpp = _FtpPutFile($Conn, @scriptDir & "\Screenshot_" & @UserName & "_" & @HOUR & "_" & @MIN & "_" & @MDAY & @YEAR &".jpg", "/Screenshot_" & @UserName & "_" & @HOUR & "_" & @MIN & "_" & @MDAY & "_" & @YEAR & ".jpg")' & @crlf) ;### Trace Console $Ftpp = _FtpPutFile($Conn, @scriptDir & "\Screenshot_" & @UserName & "_" & @HOUR & "_" & @MIN & "_" & @MDAY & @YEAR &".jpg", "/Screenshot_" & @UserName & "_" & @HOUR & "_" & @MIN & "_" & @MDAY & "_" & @YEAR & ".jpg") FileWrite("error.log",'>Error code: ' & @error & @crlf & @crlf & '@@ Trace(31) : $Ftpc = _FTPClose($Open)' & @crlf) ;### Trace Console $Ftpc = _FTPClose($Open) FileWrite("error.log",'>Error code: ' & @error & @crlf & @crlf & '@@ Trace(33) : WEnd' & @crlf) ;### Trace Console WEnd

    [/autoit]

    Mfg Spider

    Edit: Ok, wir haben das Problem bei ICQ Rausgefunden.
    Muss anstatt
    _ScreenCapture_Capture(@Scriptdir & "\Screenshot_Lenny_" & @HOUR & "_" & @MIN & "_" & @MDAY & @YEAR & ".jpg")
    Natürlich
    _ScreenCapture_Capture(@Scriptdir & "\Screenshot_" & @Username& "_" & @HOUR & "_" & @MIN & "_" & @MDAY & @YEAR & ".jpg")
    heißen..

  • Mein Avatar

    • GtaSpider
    • 13. Dezember 2007 um 13:22

    Hallo

    Danke :) Jo, klar ist es was eigenes..
    Hatte zwar ein halbes Tutorial als Vorlage, aus dem Bild was ich gemacht habe, ist dann aber irgendwie etwas anderes geworden :P

    Mfg Spider

  • Mein Avatar

    • GtaSpider
    • 13. Dezember 2007 um 01:13

    Hallo

    Hab jetzt auch mal etwas mehr Zeit in Photoshop investiert.. raus gekommen ist das^^

    Im Anhang nochmal in Groß, falls es sich jemand als Bildschirmhintergrund machen will :D

    Mfg Spider

    Dateien

    GtaSpider_big.jpg 82,02 kB – 0 Downloads
  • Online-Datei einlesen?

    • GtaSpider
    • 12. Dezember 2007 um 20:44

    Hallo

    Ich hab dir mal kurz etwas geschrieben, ich hoffe es hilft dir weiter:

    Spoiler anzeigen
    [autoit]

    #include <inet.au3>
    #include <array.au3>;<--- Wird nur für _ArrayDisplay in zeile 5 gebraucht
    Dim $aRecords
    _OnlineReadToArray("http://www.autoit.de/index.php?page=Portal",$aRecords)
    _ArrayDisplay($aRecords)

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

    ;By GtaSpider
    Func _OnlineReadToArray($sURL,ByRef $aArray)
    Local $source = _INetGetSource($sURL)
    $aArray = StringSplit($source, @CRLF)
    EndFunc ;==>_OnlineReadToArray

    [/autoit]

    Mfg Spider

  • Screenshot per mail versenden

    • GtaSpider
    • 12. Dezember 2007 um 14:01

    Hallo

    Du willst das sich ein neues Bild automatisch in einer While schleife erzeugt und abgesendet wird,
    oder willst du das man immer auf STRG+F4 drücken kann, und dann erst das bild gemacht wird?

    Falls das 1. der Fall ist
    [autoit]

    #include <File.au3>
    #include <ScreenCapture.au3>
    ;HotKeySet("{PRINTSCREEN}", "Capture_start")
    ;HotKeySet("+!d", "Capture_start") ;Shift-Alt-d
    HotKeySet("^{F4}", "Capture_start") ;Strg-F4
    HotKeySet("^{F5}", "_INetSmtpMailCom")

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

    While 1
    Sleep(5000);Alle 5000ms (=5 Sekunden) wird funktion ausgeführt
    Capture_start()
    _INetSmtpMailCom()
    WEnd

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

    Func Capture_start()

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

    ; Capture full screen
    If FileExists(@MyDocumentsDir & "\screenshot") Then
    ;MsgBox(4096, "C:\autoexec.bat File", "Exists")
    Else
    ;MsgBox(4096,"C:\autoexec.bat File", "Does NOT exists")
    DirCreate(@MyDocumentsDir & "\screenshot")
    EndIf
    ;FileDelete(@MyDocumentsDir & "\Printscreen*.*"
    _ScreenCapture_Capture(@MyDocumentsDir & "\screenshot\screenshot_" & @SEC & @MIN & @HOUR & ".jpg")

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

    MsgBox(0, "", "Screenshot erstellt!", 1)

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

    EndFunc ;==>Capture_start

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

    Global $oMyError = ObjEvent("AutoIt.Error", "MyErrFunc")
    ;##################################
    ; Include
    ;##################################
    ;#Include<file.au3>
    ;##################################
    ; Variables
    ;##################################
    $s_SmtpServer = "ipadresse" ; address for the smtp-server to use - REQUIRED
    $s_FromName = @UserName ;@UserName ; name from who the email was sent
    $s_FromAddress = @UserName & "@domain.de" ; address from where the mail should come
    $s_ToAddress = "empfänger@domain.de" ; destination address of the email - REQUIRED
    $s_Subject = "Supportmeldung "; subject from the email - can be anything you want it to be
    $as_Body = ("IP Addresse: ") ; the messagebody from the mail - can be left blank but then you get a blank mail
    $s_AttachFiles = "" ; the file you want to attach- leave blank if not needed
    $s_CcAddress = "" ; address for cc - leave blank if not needed
    $s_BccAddress = " "
    $s_Username = "xxxxxx" ; username for the account used from where the mail gets sent - Optional (Needed for eg GMail)
    $s_Password = "xxxxxxxxxxxxx" ; password for the account used from where the mail gets sent - Optional (Needed for eg GMail)
    $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 $oMyRet[2]
    Global $oMyError = ObjEvent("AutoIt.Error", "MyErrFunc")
    $rc = _INetSmtpMailCom($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body, $s_AttachFiles, $s_CcAddress, $s_BccAddress, $s_Username, $s_Password, $IPPort, $ssl)
    If @error Then
    MsgBox(0, "Error sending message", "Error code:" & @error & " Description:" & $rc)
    EndIf
    ;

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

    Func _INetSmtpMailCom($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject = "", $as_Body = "", $s_AttachFiles = "", $s_CcAddress = "", $s_BccAddress = "", $s_Username = "", $s_Password = "", $IPPort = 25, $ssl = 0)
    $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])
    If FileExists($S_Files2Attach[$x]) Then
    $objEmail.AddAttachment($S_Files2Attach[$x])
    Else
    $i_Error_desciption = $i_Error_desciption & @LF & 'File not found to attach: ' & $S_Files2Attach[$x]
    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
    $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
    ; Sent the Message
    $objEmail.Send
    If @error Then
    SetError(2)
    Return $oMyRet[1]
    EndIf
    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]
    Falls das 2. der Fall ist
    [autoit]

    #include <File.au3>
    #include <ScreenCapture.au3>
    ;HotKeySet("{PRINTSCREEN}", "Capture_start")
    ;HotKeySet("+!d", "Capture_start") ;Shift-Alt-d
    HotKeySet("^{F4}", "Capture_start") ;Strg-F4
    HotKeySet("^{F5}", "_INetSmtpMailCom")

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

    While 1
    Sleep(100)
    WEnd

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

    Func Capture_start()

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

    ; Capture full screen
    If FileExists(@MyDocumentsDir & "\screenshot") Then
    ;MsgBox(4096, "C:\autoexec.bat File", "Exists")
    Else
    ;MsgBox(4096,"C:\autoexec.bat File", "Does NOT exists")
    DirCreate(@MyDocumentsDir & "\screenshot")
    EndIf
    ;FileDelete(@MyDocumentsDir & "\Printscreen*.*"
    _ScreenCapture_Capture(@MyDocumentsDir & "\screenshot\screenshot_" & @SEC & @MIN & @HOUR & ".jpg")

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

    MsgBox(0, "", "Screenshot erstellt!", 1)

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

    EndFunc ;==>Capture_start

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

    Global $oMyError = ObjEvent("AutoIt.Error", "MyErrFunc")
    ;##################################
    ; Include
    ;##################################
    ;#Include<file.au3>
    ;##################################
    ; Variables
    ;##################################
    $s_SmtpServer = "ipadresse" ; address for the smtp-server to use - REQUIRED
    $s_FromName = @UserName ;@UserName ; name from who the email was sent
    $s_FromAddress = @UserName & "@domain.de" ; address from where the mail should come
    $s_ToAddress = "empfänger@domain.de" ; destination address of the email - REQUIRED
    $s_Subject = "Supportmeldung "; subject from the email - can be anything you want it to be
    $as_Body = ("IP Addresse: ") ; the messagebody from the mail - can be left blank but then you get a blank mail
    $s_AttachFiles = "" ; the file you want to attach- leave blank if not needed
    $s_CcAddress = "" ; address for cc - leave blank if not needed
    $s_BccAddress = " "
    $s_Username = "xxxxxx" ; username for the account used from where the mail gets sent - Optional (Needed for eg GMail)
    $s_Password = "xxxxxxxxxxxxx" ; password for the account used from where the mail gets sent - Optional (Needed for eg GMail)
    $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 $oMyRet[2]
    Global $oMyError = ObjEvent("AutoIt.Error", "MyErrFunc")
    $rc = _INetSmtpMailCom($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body, $s_AttachFiles, $s_CcAddress, $s_BccAddress, $s_Username, $s_Password, $IPPort, $ssl)
    If @error Then
    MsgBox(0, "Error sending message", "Error code:" & @error & " Description:" & $rc)
    EndIf
    ;

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

    Func _INetSmtpMailCom($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject = "", $as_Body = "", $s_AttachFiles = "", $s_CcAddress = "", $s_BccAddress = "", $s_Username = "", $s_Password = "", $IPPort = 25, $ssl = 0)
    $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])
    If FileExists($S_Files2Attach[$x]) Then
    $objEmail.AddAttachment($S_Files2Attach[$x])
    Else
    $i_Error_desciption = $i_Error_desciption & @LF & 'File not found to attach: ' & $S_Files2Attach[$x]
    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
    $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
    ; Sent the Message
    $objEmail.Send
    If @error Then
    SetError(2)
    Return $oMyRet[1]
    EndIf
    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]

    Mfg Spider

  • Computer über USB-Stick sperren

    • GtaSpider
    • 11. Dezember 2007 um 18:54

    Hallo

    Guck dir mal das in meiner Signatur vermerkte "Admin Konsole" an.. Macht genau das was du willst (bis auf das mit dem USB stick^^)

    Mfg Spider

  • Button muss mehrmal angeklickt werden bis aktion

    • GtaSpider
    • 7. Dezember 2007 um 21:04

    Hallo

    Wie rufst du denn GUIGetMsg() auf?!

    GuiGetMsg Aufruf

    Aufruf: GUIGetMsg([advanced])

    advanced [optional] return extended information in an array.
    0 = (default) Returns a single event.
    1 = returns an array containing the event and extended information

    GUIGetMsg() funktioniert mit allen GUI's die du in Aktion hast.
    Ausserdem verringert GUIGetMsg() automatisch die Last des Skriptes (Priorität wird runtergesetzt)

    Mfg Spider

  • Problem mit Windows XP Aktivierung

    • GtaSpider
    • 7. Dezember 2007 um 00:00

    Hallo

    Naja, ich hab ja sogar noch 10 legale Keys. Aber die sieht er als ungültig an, weil ich eine OEM Version installiert hab (oder sowas..)

    Das WGA teil hab ich auch schon ausbekommen, aber ich krieg z.B. keine Updates mehr :(

    Mfg Spider

  • Zum neuen Forum

    • GtaSpider
    • 6. Dezember 2007 um 23:51

    Hallo

    Waluev hat recht.
    Bitte ab jetzt Probleme mit dem neuen Forum hierein schreiben: Probleme mit neuem Forum? Hierrein schreiben!

    Mfg Spider

  • Probleme mit neuem Forum? Hierrein schreiben!

    • GtaSpider
    • 6. Dezember 2007 um 23:48

    Hallo

    Da sehr viele neue Themen über Probleme mit dem neuen Forum gepostet wurden, habe ich mal ein "Sammelthread" aufgemacht.

    Also, wenn ihr Probleme mit dem neuen Forum habt, bitte hierrein und kein neues Thema erstellen :thumbup:

    Mfg Spider

  • Problem mit Windows XP Aktivierung

    • GtaSpider
    • 6. Dezember 2007 um 20:42

    Hallo,

    Ich hab dummer weise eine Version von XP installiert die irgendwie eine zugeschnittene Version für ein ganz bestimmten PC war.
    Dummerweise war das nicht mein PC :rolleyes: Ich glaube auch, dass es eine OEM Version war, da ich bei der Installation kein Key eingeben musste, und mein System sich automatisch aktiviert hat.
    Jetzt meckert Windows Genuine Advantage (WGA) rum, dass ich keine Originale Version von XP hab, die hab ich aber. Nur halt auf dem Falschen PC..

    Ich hab hier jetzt aber mehrere Original XP Keys und mehrere Originale XP CD's. Wenn ich die Keys verwenden will, mekert er rum, dass seien nicht die richtigen Keys.

    Hat jemand eine Idee? Beim Kundendienst hab ich auch schon angerufen die können mir aber nicht helfen (Typisch Mircosoft :thumbdown: )

    Wäre um Lösung (-svorschläge) sehr dankbar :)

    Mfg Spider

  • Chat Clienten bauen

    • GtaSpider
    • 6. Dezember 2007 um 14:18

    Hallo

    Du verbindest dich beim IRC mit einem IRC server der irgendwo auf der welt ist^^ Das heißt, du bist nur der Client, und die müssen selten die Ports im Router freigeben.
    Halt nur wenn du ein Server bist.

    Was für ein Router hast du denn? (Netgear, Asus, 1&1, Fr!tz,...)

    Mfg Spider

  • Autoit.de wird 2 Jahre alt :)

    • GtaSpider
    • 6. Dezember 2007 um 00:23

    Hallo

    Schon wieder ein Jahr um?! Mh, aber man sieht dem Jahr älter dem Forum nicht an, oder was meint ihr?^^

    Dank an alle Admins, Mods ( :rock: ) und natürlich auch unseren lieben Usern :love: ,
    ohne die unser Forum ungefähr so währe wie german-autoit :D (kennt das hier noch jemand, außer pee und ich?^^)

    MfG Spider

  • Chat Clienten bauen

    • GtaSpider
    • 5. Dezember 2007 um 23:25

    Hallo

    Um TCP/IP oder UDP übers Inetnet (WAN-IP) laufen lassen zu können, muss der Router des Servers den UDP/TCP Port freigegeben haben (Port Forwarding)

    Also, wenn ihr wie im beispiel Port 6667 benutzt muss der Router den Port 6667 freigegeben haben, und auf die LAN-IP des Servers (z.B. 192.168.0.2) "Forwarden" also sozusagen weiterschicken.

    Zur Erläuterung:
    Client --Sendet Packet zur WAN-IP (Port 6667) des Servers--> Router --Port6667 forwarden zu Lokalen Server IP--> Server

    Mfg Spider

  • Alles Gute peethebee

    • GtaSpider
    • 4. Dezember 2007 um 15:53

    Hallo

    :love: Herzlichen Glückwunsch pee :love: !

    Wenn du willst kann ich dir ein Rapidshare link von Simpsons - the Game schicken, dass bedeutet aber, dass dein Router sich oft wiederverbinden muss :D Aber das liebst du ja, näch?

    Mfg Spider

  • Hilfe 2 Func ?

    • GtaSpider
    • 2. Dezember 2007 um 13:13

    Hallo

    Der Run() Befehl startet eine Datei und fährt dann fort. Wenn du warten willst bis die Datei zuende ausgeführt ist benutze RunWait()

    Spoiler anzeigen
    [autoit]

    Func _SichernFunc1()
    RunWait("RDsys/7za.exe u -tzip D:\Backup\EigeneDateien.zip ""C:\Eigene Dateien""")
    EndFunc ;==>_SichernFunc1

    [/autoit]

    Mfg Spider

  • Fehlertoleranter Zeichenkettenvergleich für AutoIT3

    • GtaSpider
    • 2. Dezember 2007 um 13:05

    Hallo

    Schönes Skript, weiter so!

    Fast2: Kannst du ab einen Bestimmten Rang dir selber aussuchen was da steht (Oben rechts auf "Mein Profil" klicken)

    Mfg Spider

  • kopieren

    • GtaSpider
    • 2. Dezember 2007 um 13:00

    Hallo

    Nachteil an deiner Lösung ist, dass sie auf Koordinaten abhängig ist und da kann immer mal etwas dazwischen kommen.

    Mfg Spider

    Edit: Uhm, 2 Sekunden vor dem Posten hast du deinen Beitrag gelöscht :pinch:

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™