|
You last visited: Today at 04:15
Advertisement
Endlos Emails abrufen, bei neuer Email Script fortsetzen. WIE?
Discussion on Endlos Emails abrufen, bei neuer Email Script fortsetzen. WIE? within the AutoIt forum part of the Coders Den category.
10/29/2011, 09:07
|
#1
|
elite*gold: 0
Join Date: Oct 2011
Posts: 43
Received Thanks: 0
|
Endlos Emails abrufen, bei neuer Email Script fortsetzen. WIE?
Hallo,
-WinXP 32bit HP
-Outlook Express 6 (ich könnte aber auch auf Windows Live Mail umsteigen, wenn es für diesen Zweck besser sein sollte)
Ich möchte das AutoIT im Hintergrund alle 30 Sekunden die Emails eines bestimmten Postfaches checkt.
Dies soll solange geschehen bis eine neue Email eines bestimmten Absenders empfangen wurde.
Dann soll AutoIT die Email auf Anlagen prüfen und bei Erfolg diese speichern und das zugehörige Programm starten.
Ich hoffe ihr könnt mir helfen. Ich habe bis jetzt mehrere Möglichkeiten durchprobiert, leider ohne Erfolg.
Danke schonmal im Vorraus!
|
|
|
10/29/2011, 12:25
|
#2
|
elite*gold: 95
Join Date: May 2011
Posts: 982
Received Thanks: 189
|
hui ganz schön viel für den anfang
hier ist die udf für outlook 
mit getmail und savemail, kannst du auf neue überprüfen und ich denke auch den anhang speichern.
was meinst du mit "zugehöriges Programm"? z.b. dass eine .txt mit notepad geöffnet wird?
|
|
|
10/29/2011, 12:50
|
#3
|
elite*gold: 0
Join Date: Oct 2011
Posts: 43
Received Thanks: 0
|
Also mein Hauptproblem ist das endlose Empfangen der Emails bis eine neue Email des bestimmten absenders da ist, von welcher dann der anhang gespeichert wird. (Anhang speichern bekomm ich hin, nur dass es überhaupt erkennt, dass eine neue email dieses absenders da ist und diese dann aufruft, ist mein problem).
Danke für den Link. Ich würde mich aber über alternativen sehr freuen!
|
|
|
10/29/2011, 12:52
|
#4
|
elite*gold: 35
Join Date: Apr 2011
Posts: 800
Received Thanks: 214
|
Hast du schon etwas (Teilscript) wenn ja würde ich es gerne sehen.
Skype?
|
|
|
10/29/2011, 13:01
|
#5
|
elite*gold: 95
Join Date: May 2011
Posts: 982
Received Thanks: 189
|
_OutlookGetMail - Updated 2009-04-17, Change read Status, access root folder, Updated 2009-03-12, Added OnlyReturnUnread, New 2009-02-26 - Get an array of all mail
daraus entnehme ich, dass getmail dir auch nru die ungelesenen ausgeben kann. tu das dann in eine schleifen, wo noch ein sleep(30000) drin ist und er gibt dir alle 30 sec ein array mit den emails, die du dann auf den absender überprüfen kannst
PHP Code:
; Function Name: _OutlookGetMail() ; Description: Get all email using Microsoft Outlook. ; Syntax.........: _OutlookGetMail($oOutlook, $sFolder = $olFolderInbox, $fSubFolder = False, $sFrom = "", $sTo = "", $sCc = "", $sBCc = "", $sSubject = "", $iImportance = "", $fOnlyReturnUnread = False, $sWarningClick = "", $iSetStatus = 0, $fCountMailOnly = False) ; Parameter(s): $oOutlook - Outlook object opened by a preceding call to _OutlookOpen() ; $sFolder - Optional: Folder, default = $olFolderInbox, add subfolders if wish to start search at a lower level, ex: $olFolderInbox & "\Archive" ; If you wish to access the root, use "\", Sent Items, write "\Sent Items" ; $fSubFolders - Optional: Search subfolders, default = False ; $sFrom - Optional: The e-mail address of the sender ; $sTo - Optional: The recipiant(s) ; $sCc - Optional: The CC recipiant(s) of the mail ; $sBCc - Optional: The BCC recipiant(s) of the mail ; $sSubject - Optional: The Subject of the mail ; $iImportance - Optional: The Importance of the mail ; $fOnlyReturnUnread - Optional: Default = False, set to True if you only wish the unread. ; $sWarningClick - Optional: The Entire SearchString to 'OutlookWarning2.exe', Default = None ; $iSetStatus - Optional: - 0 - Don't change status ; 1 - Set as Read ; 2 - Set as UnRead ; 3 - Change status Read > Unread, Unread > Read ; $fCountMailOnly - False - Report all ; True - Report only number of items ; Requirement(s): AutoIt3 with COM support (post 3.1.1) ; Return Value(s): On Success - Array in the following format: [10000][16] ; [0][0] - Total Number of items ; [0][1] - Number of unread items ; [1][0] - Sender name ; [1][1] - Sender Email address ; [1][2] - To ; [1][3] - Cc ; [1][4] - Bcc ; [1][5] - ReceivedTime ; [1][6] - SentOn ; [1][7] - Subject ; [1][8] - Folder ; [1][9] - Body ; [1][10] - BodyFormat ; [1][11] - Importance ; [1][12] - Unread ; [1][13] - Size ; [1][14] - FlagIcon ; [1][15] - Attachments ; [1][16] - Class - $olMail, $olMeetingRequest Or $olTaskRequest ; [n][n] - Item n ; On Failure - Returns 0 and sets @ERROR > 0 ; @ERROR = 1 - Illegal parameters ; @ERROR = 2 - OutlookWarning2.exe not found. ; @ERROR = 3 - No Mail found/Folder not found. ; @ERROR = 4 - More than 9999 Mail, the first 9999 mail will be returned ; @ERROR = 5 - Mailfolder not found ; @ERROR = 9 - ObjEvent error. ; Author(s): Wooltown ; Created: 2009-02-25 ; Modified: 2009-03-02 ; 2009-03-10 - If folder not found, an error occured ; 2009-06-08 - Added $fCountMailOnly
|
|
|
10/29/2011, 14:48
|
#6
|
elite*gold: 0
Join Date: Oct 2011
Posts: 43
Received Thanks: 0
|
also ich wollte es so machen, nur leider klappt das mit dem PixelGetColor nicht so recht und shcon gar nicht im Hintergrund:
(Includes werden für spätere Funktionen benötigt)
PHP Code:
#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <sound.au3>
Run ("c:\Programme\Outlook Express\msimn.exe")
Sleep (1500) Sleep(500) ControlSend("Posteingang","", "[CLASS:ToolbarWindow32; INSTANCE:3]", "{!}") ControlSend("Posteingang","", "[CLASS:ToolbarWindow32; INSTANCE:3]", "X") ControlSend("Posteingang","", "[CLASS:ToolbarWindow32; INSTANCE:3]", "U") ControlSend("Posteingang","", "[CLASS:ToolbarWindow32; INSTANCE:3]","{Down}") ControlSend("Posteingang","", "[CLASS:ToolbarWindow32; INSTANCE:3]","{Down}") ControlSend("Posteingang","", "[CLASS:ToolbarWindow32; INSTANCE:3]","{Down}") ControlSend("Posteingang","", "[CLASS:ToolbarWindow32; INSTANCE:3]","{Enter}") Sleep (1000) $farbe = PixelGetColor (104,277) Sleep (1000)
If Not $farbe <> 0x0000FF Then Do Sleep (2000) ControlSend("Posteingang","", "[CLASS:ToolbarWindow32; INSTANCE:3]", "{!}") ControlSend("Posteingang","", "[CLASS:ToolbarWindow32; INSTANCE:3]", "X") ControlSend("Posteingang","", "[CLASS:ToolbarWindow32; INSTANCE:3]", "U") ControlSend("Posteingang","", "[CLASS:ToolbarWindow32; INSTANCE:3]","{Down}") ControlSend("Posteingang","", "[CLASS:ToolbarWindow32; INSTANCE:3]","{Down}") ControlSend("Posteingang","", "[CLASS:ToolbarWindow32; INSTANCE:3]","{Down}") ControlSend("Posteingang","", "[CLASS:ToolbarWindow32; INSTANCE:3]","{Enter}") Sleep (1000) $farbe = PixelGetColor (104,277) Until $farbe = 0x0000FF EndIf _Anlagenspeichern() Sleep (100)
Func _Anlagenspeichern() Sleep (90) MouseClick ("left",73,358) Sleep (70) MouseClick ("left",1257,322) Sleep (200) MouseClick ("left",1184,389) Send ("{enter}") Sleep (100) Send ("{left}") Sleep (100) Send ("{enter}") Sleep (100) MouseClick ("left",357,165) Sleep (100) Send ("{Delete}") Sleep (100) Send ("{left}") Sleep (100) Send ("{enter}") ProcessClose ("msimn.exe") Sleep(100) EndFunc
|
|
|
10/29/2011, 16:05
|
#7
|
elite*gold: 95
Join Date: May 2011
Posts: 982
Received Thanks: 189
|
wie gesagt, ich würd die udf von oben benutzen und die infos aus dem array die die funktionen ausgeben ablesen
|
|
|
10/29/2011, 18:02
|
#8
|
elite*gold: 0
Join Date: Oct 2011
Posts: 43
Received Thanks: 0
|
die ist aber doch nur für outlook (aus MS office), oder?
|
|
|
10/29/2011, 18:52
|
#9
|
elite*gold: 95
Join Date: May 2011
Posts: 982
Received Thanks: 189
|
ist outlook von ms nicht das gleiche wie outlook express? wenn nciht, nehm ich alles zurück und ihr dürft mich mit steinen bewerfen
sorry benutze keins von beidem^^
|
|
|
10/29/2011, 18:54
|
#10
|
elite*gold: 35
Join Date: Apr 2011
Posts: 800
Received Thanks: 214
|
*Wirf Stein*
b2t habe noch keine Outlook Express 6 UDF gefunden denke das gibts net
ControlClick/ControlSend FTW
|
|
|
10/29/2011, 19:20
|
#11
|
elite*gold: 0
Join Date: Oct 2011
Posts: 43
Received Thanks: 0
|
hat denn niemand eine idee? das kann doch eigentlich gar nicht so schwierig sein?!?
Bitte schreibt wenn ihr auch nur den ansatz einer idee habt, vielleicht ergibt sich ja daraus was!!!
Danke!
|
|
|
10/29/2011, 20:57
|
#12
|
elite*gold: 95
Join Date: May 2011
Posts: 982
Received Thanks: 189
|
wie du warscheinlich gemerkt hast, hab ich keine ahnung von outlook^^
aber das wären noch meine ideen:
-werden die emails irgendwo auf der festplatte gespeichert? wenn ja, dann muss da ja irgendwo auch dabei stehen ob sie schon gelesen wurden
-evtl kann man mit cheatengine etwas auslesen, allerdings kenn ich mich da auch zu wenig aus
|
|
|
 |
Similar Threads
|
[S]Email erstellungs bot oder emails [B]E*Gold
12/31/2011 - elite*gold Trading - 2 Replies
Hallo ich suche einen bot mit denen man schnell viele emails erstellen kann oder viele emails.
Ich zahle dafür E*Gold
Macht mir gute angebote
|
Selling Runescape related email list [70k emails]
10/10/2011 - Runescape Trading - 0 Replies
i am selling 70k runescape related emails.
there are a total of 70502 email adresses, these are all
they can be used for phising, if u'd want the format is
one email per line, but can be changed for you if u'd like,
i will only sell this to one person..
Also since im new here, im willing to Show the list trough teamviewer + useing a middle man if you want.
post here if you want to buy with the price u want to pay for it, (rsgp or paypal)
|
Yahoo Email Service : Ich erstelle euch Emails inerhalb von 1 - 2 Minuten!
07/07/2011 - elite*gold Trading - 16 Replies
AKTUELLE PREISE !
Warnung : Ich mache im momment nicht mehr als 20 Emails! Nur in Ausnahmefällen mehr ! Für natürlich mehr Egold!
Anzahl | Preis
5 Emails | 3 Egold
10 Emails | 5 Egold
20 Emails | 12 Egold
http://img856.imageshack.us/img856/2830/bestregar dslogo.png
|
Script mit Endlos schleife?
04/09/2010 - General Coding - 2 Replies
Hey community!
Gestern war mir langweilig also habe ich mir autoit v3 runter geladen was ich vorher nie genutzt hatte und auch nie angesehen hatte.
ich hatte leider kein internet also hab ich mal was zusammen geklebt und hab keine ahnung was richtig und was falsch ist :/
ich hab schon gegoogelt aber da finde ich nix mit endlos schleifen..
hier mal der code:
|
All times are GMT +1. The time now is 04:16.
|
|