Browse Source

Implemented BI

sachinmanawadi271 7 years ago
parent
commit
9be074f059
1 changed files with 27 additions and 1 deletions
  1. 27 1
      BussinessLogic.py

+ 27 - 1
BussinessLogic.py

@@ -1,4 +1,6 @@
 from conf import PathConfig
+from pywinauto.application import Application
+import time
 import os
 
 class business_logic:
@@ -12,7 +14,31 @@ class business_logic:
         print(file)
         app_path = FolderPaths[1]+backslash+file
         print(app_path)
-        os.startfile(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{!}")