Computernoob Posted May 26, 2011 Share Posted May 26, 2011 HAllo zusammen, ich hab mir heute mal das AutoIt aufn paar Minuten angeschaut, da ich bei Outlook eine PST datei löschen + wieder hinzugügen muss. Nun hab ich mir folgendes Programm geschrieben sleep(2000) ; Outlook PST Datei schließen run("C:\Programme\Microsoft Office\OFFICE11\outlook.exe", "", @SW_MAXIMIZE) sleep(2000) MouseClick("left",35,15) ; Outlook Focus erhalten MouseClick("right",270,40) ; Archiv rechtsklick MouseClick("left",300,155) ; Archiv löschen anklicken MouseClick("left",300,190) ; Mit Ok bestätigen sleep(1000) WinWaitActive("Posteingang","") ; Outlook PST Datei ins Outlook einbinden MouseClick("left",35,15) ; Outlook Focus erhalten MouseClick("left",30,40) ; Datei MouseClick("left",50,60) ; öffnen MouseClick("left",300,100) ; Outlook-Datendatei... WinWaitActive("Outlook-Datendatei öffnen","") ;Send ("\\192.168.89.218\pst\Wareneingang.pst") Send ("\\192.168.89.218\pst\Wareneingang1.pst") ; Send ("\\192.168.89.218\pst\Wareneingang2.pst") sleep(2000) TrayTip("Outlook", "Du kannst weiterarbeiten!.",5, 1) MsgBox(4096,"", "Du kannst weiterarbeiten!") ; Skript beenden Exit Nun hab ich nur ein Problem, unter Outlook 2003 kann man die geöffneten PST dateien nich in den Kontoeinstellungen löschen sondern muss in der Ordnerleiste Rechtklick schließen sagen. Nun würde ich gerne wissen wie ich abfragen kann ob es auch der ordner ist den ich löschen will, nicht das die ordner leiste verrutscht und ich was anderes lösche Danke Link to comment Share on other sites More sharing options...
Zedna Posted May 26, 2011 Share Posted May 26, 2011 (edited) This is english forum! For communication in other language use Google translate (here only in english) or visit www.autoit.de Edited May 26, 2011 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Computernoob Posted May 27, 2011 Author Share Posted May 27, 2011 (edited) This is english forum! For communication in other language use Google translate (here only in english) or visit www.autoit.de Ups :-P Hi, I've now been viewed times the AutoIt a few minutes because I must delete a PST file in Outlook + add it again. Now I have written the following program sleep(2000) ; Outlook PST Datei schließen run("C:\Programme\Microsoft Office\OFFICE11\outlook.exe", "", @SW_MAXIMIZE) sleep(2000) MouseClick("left",35,15) ; Outlook Focus erhalten MouseClick("right",270,40) ; Archiv rechtsklick MouseClick("left",300,155) ; Archiv löschen anklicken MouseClick("left",300,190) ; Mit Ok bestätigen sleep(1000) WinWaitActive("Posteingang","") ; Outlook PST Datei ins Outlook einbinden MouseClick("left",35,15) ; Outlook Focus erhalten MouseClick("left",30,40) ; Datei MouseClick("left",50,60) ; öffnen MouseClick("left",300,100) ; Outlook-Datendatei... WinWaitActive("Outlook-Datendatei öffnen","") ;Send ("\\192.168.89.218\pst\Wareneingang.pst") Send ("\\192.168.89.218\pst\Wareneingang1.pst") ; Send ("\\192.168.89.218\pst\Wareneingang2.pst") sleep(2000) TrayTip("Outlook", "Du kannst weiterarbeiten!.",5, 1) MsgBox(4096,"", "Du kannst weiterarbeiten!") ; Skript beenden Exit Now I only have a problem with Outlook 2003, i can'T open the PST files aboute the account settings, so i must close the Folders pane with a right-click. Now I would like to know how can I query whether it is the folder I want to delete, not the folder bar slipped and I delete something else Thanks Edited May 27, 2011 by Computernoob Link to comment Share on other sites More sharing options...
water Posted May 27, 2011 Share Posted May 27, 2011 My OutlookEX UDF (for download please see my signature) at the moment doesn't work with PST files. But if you can wait for a few days I'll have a look at PST files. What do you need? Access a PST file, remove a PST file, list all accessed PST files ... Using the OutlookEX UDF has another advantage: You don't need to change your script when your company switches over to newer office versions. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Computernoob Posted May 27, 2011 Author Share Posted May 27, 2011 My OutlookEX UDF (for download please see my signature) at the moment doesn't work with PST files.But if you can wait for a few days I'll have a look at PST files.What do you need? Access a PST file, remove a PST file, list all accessed PST files ...Using the OutlookEX UDF has another advantage: You don't need to change your script when your company switches over to newer office versions.Hello Water,i have finished my Problem, but Thx for Help :-) Link to comment Share on other sites More sharing options...
water Posted May 27, 2011 Share Posted May 27, 2011 Hi Computernoob, FYI: the PST functions (access, create, remove, compress ..) are just in the making. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now