def restart_miro(self): if self.os_name == "lin": config.start_miro_on_linux() else: App.focus(testsetup.launch_cmd()) try: wait(Pattern("sidebar_top.png").similar(0.6),20) except: pass
def launch_miro(): """Open the Miro Application, the sets the region coords for searching. Uses the Miro Guides, Home icon, Bottom Corner, and VolumeBar to find coordinates. Returns the: """ if launch_cmd() == "linux": if not exists("Sidebar", 3): config.start_miro_on_linux() else: App.open(launch_cmd()) time.sleep(10)
def launch_miro(): """Open the Miro Application, the sets the region coords for searching. Uses the Miro Guides, Home icon, Bottom Corner, and VolumeBar to find coordinates. Returns the: """ if launch_cmd() == "linux": if not exists("Sidebar",3): config.start_miro_on_linux() else: App.open(launch_cmd()) time.sleep(10)
def restart_miro(confirm=True): if config.get_os_name() == "lin": config.start_miro_on_linux() else: App.open(open_miro()) if confirm == True: time.sleep(5) if exists(Pattern("icon-guide_active.png"),10) or \ exists(Pattern("icon-guide.png"),10) or \ exists("Miro",45): print "miro started" else: print("can't confirm miro restarted") else: time.sleep(5) #give it 5 secs - probably waiting for 1st time dialog or other
def launch_miro(): """Open the Miro Application, the sets the region coords for searching. Uses the Miro Guides, Home icon, Bottom Corner, and VolumeBar to find coordinates. Returns the: SidebarRegion (s) - miro sidebar MainViewRegion(m) - miro mainview TopHalfRegion (t) - top 1/2 of whole screen TopLeftRegion (tl) - top left of whole screen MainTitleBarRegion (mtb) - miro mainview title bar region Note - order mattters, this would be better as a dict. """ if open_miro() == "linux": if not exists("Music",3): config.start_miro_on_linux() else: App.open(open_miro()) if exists("Music",120) or \ exists("icon-audio.png",120) : print "miro launched"
def restart_miro(self): if self.os_name == "lin": config.start_miro_on_linux() else: App.open(testsetup.launch_cmd()) wait("Miro", 30)