Sign in to follow this  
Followers 0
Computernoob

Allgemeine Hilfe

6 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

This is english forum!

For communication in other language use Google translate (here only in english) or visit www.autoit.de

Edited by Zedna

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by Computernoob

Share this post


Link to post
Share on other sites

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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

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 :-)

Share this post


Link to post
Share on other sites

Hi Computernoob,

FYI: the PST functions (access, create, remove, compress ..) are just in the making.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0