Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Publish a PC Outlook Calendar to .Mac' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Publish a PC Outlook Calendar to .Mac
Authored by: fil_dawg on Nov 23, '04 03:37:58AM
AUTOMATION!!! This isn't the best automation solution but it seems to be working for me so far. I downloaded 2 applications:
  • 1) AutoIt - http://www.hiddensoft.com/autoit3/index.php
  • 2) ClickYes - http://www.contextmagic.com/express-clickyes/
  • I then wrote the following AutoIt script:
    
    ;
    ; AutoIt Version: 3.0
    ; Language:       English
    ; Platform:       Win9x/NT
    ; Author:         Phil Newman (philnewman@mindspring.com)
    ;
    ; Script Function:
    ;   Runs OutPort.
    ;
    
    ; Run OutPort
    Run("Outport.exe")
    
    ; Wait for Outport to become active - it is titled "Outport"
    WinWaitActive("Outport")
    
    ;MouseClicks are relative to window
    AutoItSetOption("MouseCoordMode", 0)
    
    ;Select Calendar
    MouseClick("right",63,60,1,5)
    
    ;Select Overwrite
    MouseClick("right",203,274,5)
    
    ;Click Export
    MouseClick("right",311,353,5)
    
    ;My Outlook is warning me that another program is trying to access the address book
    ;I tried to code for it, but ended up using ClickYes (http://www.contextmagic.com/express-clickyes)
    
    ;Wait for export to complete
    ;I tried using WinWaitClose and WinWaitNotActive unsuccessfully
    ;So in order to wait for this to complete I'm using a sleep command
    Sleep(60000)
    
    ;Click Close
    WinActivate("Outport","")
    MouseClick("right",485,352,5)
    
    ;Now to copy the file to .Mac
    
    ;Finished!
    
    This is setup to run on my system and does not copy the output file to .MAC (yet!). I was able to compile this AutoIt script to and executatble (*.exe) and use the windows scheduler to run this periodically. Sort of sudo-publishing. Hope this helps :)

    [ Reply to This | # ]
    Publish a PC Outlook Calendar to .Mac
    Authored by: gboudrea on Dec 27, '04 10:02:28AM
    Here's a modified AutoIT script which uses the keyboard shortcuts when possible (instead of mouse clicks) and doesn't require any other software than AutoIT 3.
    
    ;
    ; AutoIt Version: 3.0
    ; Language:       English
    ; Platform:       Win9x/NT
    ; Authors:        Phil Newman, Guillaume Boudreau
    ;
    ; Script Function:
    ;   Runs OutPort.
    ;
    
    ; Run OutPort
    Run("Outport.exe")
    
    ; Wait for Outport to become active - it is titled "Outport"
    WinWaitActive("Outport")
    
    ;MouseClicks are relative to window
    AutoItSetOption("MouseCoordMode", 0)
    
    ;Select Calendar
    Send("{DOWN}{DOWN}{SPACE}")
    
    ;Select Overwrite
    MouseClick("left",204,279)
    
    ;Click Export
    Send("!e")
    
    ;Allow access Outlook warning
    AdlibEnable("allowAccess")
    
    ;Wait for export to complete
    WinWaitClose("Exporting...","Cancel",120)
    
    AdlibDisable()
    ;Close log warning, if any
    AdlibEnable("closeWarning")
    
    ;Click Close
    WinActivate("Outport")
    Send("!{F4}")
    
    AdlibDisable()
    
    ;Now to copy the file to .Mac
    
    ;Finished!
    Exit
    
    Func allowAccess()
        If WinExists("Microsoft Office Outlook","A program is trying to access") Then
    	WinActivate("Microsoft Office Outlook","A program is trying to access")
    	Send("{TAB}{TAB}{SPACE}")
    	Send("{TAB}{DOWN}{DOWN}{DOWN}")
    	Send("{TAB}{ENTER}")
        EndIf
    EndFunc
    
    Func closeWarning()
        If WinExists("Outport","There were messages logged while exporting the selected folder(s).") Then
    	WinActivate("Outport","There were messages logged while exporting the selected folder(s).")
    	Send("!n")
        EndIf
    EndFunc
    


    [ Reply to This | # ]