# Path: pywinauto/application.py



import time
from pprint import pprint
from pywinauto.application import Application

    app.WhatsNewReminder.ImreallybusyRemindmein90.click()
    app.WhatsNewReminder.OK.close_click()



# wait until the app is ready
app.FreeAgent.wait("ready")

# if we get the Agent Setup wizard pops up close it
if app.AgentSetupWizard.Cancel.exists(1):
    app.AgentSetupWizard.Cancel.click()
    app.AgentSetupWizard2.Yes.click()

# Select to emtpy trash
app.FreeAgent.menu_select("File->EmptyTrash")
app.EmptyTrash.No.click()

# Select some more menus (typo not important :-)
app.FreeAgent.menu_select("File->Purge and Compact -> Compact All Folders")
app.FreeAgent.OK.click()

#print app.FreeAgent.menu_item("File->Purge and compact").get_properties()
#app.FreeAgent.menu_select("File->Purge and Compact->PurgeFolder")
#app.PurgeFoldersInDesks.Cancel.click()


# this is strange - when I do it by hand this is "Purge Folder" but during
# automation the text of the menu item is Purge Selected Folders
# FIXED - need to init the sub menu!
app.FreeAgent.menu_select("File->Purge and Compact->Purge Folder")

# Path: pywinauto/application.py



# Path: examples/forte_agent_sample.py
import time
from pprint import pprint
from pywinauto.application import Application

    app.WhatsNewReminder.ImreallybusyRemindmein90.click()
    app.WhatsNewReminder.OK.close_click()



# wait until the app is ready
app.FreeAgent.wait("ready")

# if we get the Agent Setup wizard pops up close it
if app.AgentSetupWizard.Cancel.exists(1):
    app.AgentSetupWizard.Cancel.click()
    app.AgentSetupWizard2.Yes.click()

# Select to emtpy trash
app.FreeAgent.menu_select("File->EmptyTrash")
app.EmptyTrash.No.click()

# Select some more menus (typo not important :-)
app.FreeAgent.menu_select("File->Purge and Compact -> Compact All Folders")
app.FreeAgent.OK.click()

#print app.FreeAgent.menu_item("File->Purge and compact").get_properties()
#app.FreeAgent.menu_select("File->Purge and Compact->PurgeFolder")
#app.PurgeFoldersInDesks.Cancel.click()


# this is strange - when I do it by hand this is "Purge Folder" but during
# automation the text of the menu item is Purge Selected Folders
# FIXED - need to init the sub menu!
app.FreeAgent.menu_select("File->Purge and Compact->Purge Folder")

app.AgentTip.OK.click()
