def getEmailDate(): utils.bringFirefoxToFront("Mozilla Firefox") clicked = utils.clickImg("verse\showMoreLabel.PNG",30,0) pyautogui.moveTo(clicked.x+38, clicked.y-30) pyautogui.drag(-150,0,duration=0.25, button="left") pyautogui.hotkey("ctrl","c") return convertDate(pyperclip.paste())
def ClickResource(self): utils.clickImg(r"myhours\resource_arrow.PNG", x_offset=0,y_offset=0)
def ClickSearch(self): utils.clickImg("myhours\lupa.PNG", x_offset=0,y_offset=0)
def ClickOnSearchBox(self): utils.clickImg("myhours\lupa.PNG", x_offset=-100,y_offset=0)
def clickClearAllFiltes(self): utils.clickImg("myhours\clearall.PNG", x_offset=0,y_offset=0)
def attachFile(self,fileName): if fileName: utils.clickImg(r"verse\attach_icon.PNG", x_offset=0,y_offset=0, region=self.regionEmailHeader) pyautogui.typewrite(fileName) time.sleep(2) pyautogui.press("enter")
def focusSubject(self, wait=1): utils.clickImg(r"verse\attach_icon.PNG", x_offset=0,y_offset=-40,region=self.regionEmailHeader) time.sleep(wait)
def focusTo(self, wait=1): utils.clickImg(r"verse\to_label.PNG", x_offset=0,y_offset=0,region=self.regionEmailHeader) time.sleep(wait)
def clickCcCco(self, wait=1): utils.clickImg("verse\cc_button.PNG", x_offset=0,y_offset=0, region=self.regionEmailHeader) time.sleep(wait)
def clickCompose(self, wait=1): utils.clickImg("verse\compose_button.PNG", x_offset=0,y_offset=0) time.sleep(wait)