12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- from conf import PathConfig
- from pywinauto.application import Application
- import time
- import os
- class business_logic:
- def convert_files(self,file):
- Path = PathConfig( )
- #app = application.Application()
- backslash = "\\"
- FolderPaths = Path.getPath()
- print(FolderPaths[1])
- print(file)
- app_path = FolderPaths[1]+backslash+file
- print(app_path)
- #os.startfile(app_path)
- #time.sleep(100)
- print("Sleep End!!!")
- app = Application().connect(path=r"C:\Program Files\TechSmith\Camtasia 9\CamtasiaStudio.exe")
- #app = Application().Connect(title=u'Camtasia 9', class_name='HwndWrapper[CamtasiaStudio.exe;;29b38be4-d942-44c3-a8ec-2ba5eff5a55f]')
- hwndwrappercamtasiastudioexebbedcaecbaeffaf = app[u'Camtasia 9']
- #hwndwrappercamtasiastudioexebbedcaecbaeffaf.ClickInput(coords=(200, 15))
- #hwndwrappercamtasiastudioexebbedcaecbaeffaf.TypeKeys("{DOWN}")
- #hwndwrappercamtasiastudioexebbedcaecbaeffaf.TypeKeys("{ENTER}")
- #time.sleep(5)
- print("Sleep End!!!")
- app.Window_(best_match='Dialog', top_level_only=True).ChildWindow(best_match='Finish').Click()
- #app.Window_(best_match='Dialog', top_level_only=True).ChildWindow(best_match='Next').Click()
- #app = Application().connect(path=r"C:\Program Files\TechSmith\Camtasia 9\CamtasiaStudio.exe")
- #hwndwrappercamtasiastudioexebcfebfcbbefbad = app[u'Camtasia 9']
- #hwndwrappercamtasiastudioexebcfebfcbbefbad.Minimize()
- #app.Window_(title='Camtasia 9').MenuSelect('File')
- #app.CamtasiaStudio.draw_outline()
- #app['Camtasia 9'].menu_select("Share")
- #xyz = app.CamtasiaStudio.Menu_select("Help->About Camtasia")
- #app.Share.print_control_identifiers()
- #app.PopupMenu.Menu().get_menu_path("Cancel")[0].click()
- #app.Window_(best_match='Dialog', top_level_only=True).ChildWindow(best_match='Cancel').Click()
- #os.startfile(app_path)
- #autoit.run("E:\sample\TK Praktikum1.trec")
- #autoit.win_wait_active("[CLASS:Notepad]", 3)
- #autoit.control_send("[CLASS:Notepad]", "Edit1", "hello world{!}")
- #autoit.win_close("[CLASS:Notepad]")
- #autoit.control_click("[Class:#32770]", "Button2")
|