本文整理汇总了Python中myTools.pressSHIFTTAB函数的典型用法代码示例。如果您正苦于以下问题:Python pressSHIFTTAB函数的具体用法?Python pressSHIFTTAB怎么用?Python pressSHIFTTAB使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了pressSHIFTTAB函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: fLink_Accounts_Refund
def fLink_Accounts_Refund():
#---------------------------------------------------#
myTools.pressDOWN(1) # Refund comp
myTools.pressTAB(1)
type("Refund")
myTools.pressSHIFTTAB(1)
示例2: fChoose_CSV_Print
def fChoose_CSV_Print(pReportName):
#---------------------------------------------------#
logging.debug('- fChoose_CSV_Print')
# choose CSV
myTools.pressSHIFTTAB(2)
time.sleep(1)
type("c")
time.sleep(1)
# print the report
type(Key.ENTER)
time.sleep(1)
# fill in path and name; press ENTER
type(Settings.repFolder + "\\" + pReportName)
time.sleep(1)
# export titles
myTools.pressTAB(2)
time.sleep(1)
type(Key.SPACE)
time.sleep(1)
# OK
type(Key.ENTER)
示例3: fPrint_InvoiceListing
def fPrint_InvoiceListing(pReportMonth, pRepExt):
# ---------------------------------------------------#
myTools.sectionStartTimeStamp("print invoicelist")
# name report file: ex: UDSlip1-03
reportName = myTools.buildRepName("InvList", pRepExt)
logging.debug("Print_InvoiceList: " + reportName)
myTools.getFocus()
logging.debug("- open report list")
type("r", KeyModifier.ALT)
type("a")
time.sleep(1)
logging.debug("- choose report")
type("i")
time.sleep(1)
# choose txt
myTools.pressSHIFTTAB(2)
time.sleep(1)
type("t")
time.sleep(1)
myTools.enterYearToDateOnList(pReportMonth)
# print the report
type(Key.ENTER)
time.sleep(1)
myTools.finishReport(reportName)
示例4: setupCustomFilter
def setupCustomFilter():
#---------------------------------------------------#
""" sets up custom filter Client List; only used by fPrint_PreBill_2 """
logging.debug('- setupCustomFilter')
wait("slip_trans_date.png",60)
time.sleep(1)
click("slip_trans_date.png")
time.sleep(1)
# switch to the client group
myTools.pressSHIFTTAB(1)
type("c")
time.sleep(1)
# choose Client List
myTools.pressTAB(1)
myTools.pressDOWN(7)
click("add_filter.png")
time.sleep(1)
# mark All
type(Key.INSERT)
time.sleep(1)
# remove Franklin
myTools.pressDOWN(5)
type(Key.F4,KeyModifier.SHIFT)
# press OK
myTools.pressTAB(1)
type(Key.ENTER)
time.sleep(1)
示例5: setupReport
def setupReport():
#---------------------------------------------------#
# open report
type("o",KeyModifier.CTRL)
time.sleep(1)
logging.debug('- default options')
# options button
myTools.pressSHIFTTAB(4)
type(Key.ENTER)
time.sleep(1)
# default button
myTools.pressSHIFTTAB(4)
type(Key.ENTER)
time.sleep(1)
# close dialog
myTools.pressTAB(1)
type(Key.ENTER)
time.sleep(1)
logging.debug('- print report')
# move to Print To and choose CSV
myTools.pressTAB(2)
type("c")
time.sleep(1)
# print the report
type(Key.ENTER)
time.sleep(1)
示例6: fImport_DefaultLayout
def fImport_DefaultLayout():
#---------------------------------------------------#
fImport_Layout("Low Detail")
logging.debug('- assign layout')
type("a",KeyModifier.ALT)
time.sleep(1)
# shift tab to open/templates control
myTools.pressSHIFTTAB(1)
time.sleep(1)
# press RIGHT to Template Clients
myTools.pressRIGHT(1)
time.sleep(1)
# press TAB to client list
myTools.pressTAB(1)
time.sleep(1)
#press F4 to mark template
type(Key.F4)
time.sleep(1)
# assign
type("a",KeyModifier.ALT)
type(Key.ENTER)
time.sleep(1)
# confirm and close
type(Key.ENTER)
time.sleep(1)
type(Key.F4,KeyModifier.CTRL)
time.sleep(1)
示例7: fPrint_ARwRunBal
def fPrint_ARwRunBal(pReportMonth,pRepExt):
#---------------------------------------------------#
myTools.sectionStartTimeStamp("print ARwRunBal")
# name report file: ex: UDSlip1-03
reportName = myTools.buildRepName("ARwRunBal",pRepExt)
logging.debug('fPrint_ARwRunBal: ' + reportName)
myTools.getFocus()
logging.debug('- open report list')
type("r",KeyModifier.ALT)
type("a")
time.sleep(1)
logging.debug('- choose report')
myTools.pressDOWN(2)
time.sleep(1)
# choose txt
myTools.pressSHIFTTAB(2)
time.sleep(1)
type("t")
time.sleep(1)
myTools.enterCurrentMonthOnList(pReportMonth)
# print the report
type(Key.ENTER)
time.sleep(1)
myTools.finishReport(reportName)
示例8: fLink_Accounts_Allowances
def fLink_Accounts_Allowances():
#---------------------------------------------------#
myTools.pressDOWN(1) # allowances comp
myTools.pressTAB(1)
type("Allowances")
myTools.pressSHIFTTAB(1)
示例9: fPrint_BABill
def fPrint_BABill(pBAClient, pBillNum):
# ---------------------------------------------------#
"""
backs up the database ("-before")
prints the bill to text file
approves the bill
backs up the database ("-after")
"""
baBillName = pBAClient + str(pBillNum)
backup_Data.fBackup_Checkpoint(baBillName + "-before")
myTools.sectionStartTimeStamp("ba bill")
logging.debug("BA_Bill: " + baBillName)
type("b", KeyModifier.CTRL)
time.sleep(1)
click("remove_filters.png")
time.sleep(1)
type(Key.ENTER)
type(Key.DOWN)
type(Key.TAB)
type(Key.SPACE)
type(pBAClient)
time.sleep(1)
type(Key.F4)
type(Key.ENTER)
myTools.pressSHIFTTAB(3)
type("t")
type(Key.ENTER)
time.sleep(1)
type(Settings.repFolder + "\\" + baBillName + ".txt")
# for checkmark in findAll("checkmark.png"):
# click(checkmark)
time.sleep(1)
type(Key.ENTER)
time.sleep(1)
if exists("replace_msg.png"):
type(Key.ENTER)
time.sleep(1)
wait("approve_bill.png", FOREVER)
click("approve_bill.png")
type(Key.ENTER)
time.sleep(1)
if exists("select_report_to_print.png"):
type(Key.ESC)
type(Key.F4, KeyModifier.CTRL)
time.sleep(1)
type("n")
myTools.sectionEndTimeStamp()
backup_Data.fBackup_Checkpoint(baBillName + "-after")
示例10: fPrint_BillsToText
def fPrint_BillsToText(pReportName):
#---------------------------------------------------#
logging.debug("- print bills to text")
type("b",KeyModifier.CTRL)
time.sleep(1)
myTools.pressSHIFTTAB(3) # get to Print To
time.sleep(1)
type("t") # ensure Text File is selected
time.sleep(1)
# print bills to text
logging.debug('-- print button')
type(Key.ENTER)
logging.debug('Printing: ' + pReportName)
# fill in path and name; press ENTER
type(Settings.repFolder + "\\" + pReportName)
time.sleep(1)
type(Key.ENTER)
if exists("replace_it-1.png"):
type(Key.ENTER)
time.sleep(1)
fWait_ForBills()
fClose_ReportEntry()
示例11: fPrint_FeeAllocPer
def fPrint_FeeAllocPer(pReportMonth,pRepExt):
#---------------------------------------------------#
myTools.sectionStartTimeStamp("print FeeAllocPer")
# name report file: ex: PreBill-03
reportName = myTools.buildRepName("FeeAllocPer",pRepExt)
logging.debug('Print_FeeAllocPer: ' + reportName)
# make sure timeslips has focus
myTools.getFocus()
logging.debug('- open FeeAllocPer')
type("r",KeyModifier.ALT)
type("t")
time.sleep(1)
myTools.pressDOWN(3)
time.sleep(1)
# choose csv
myTools.pressSHIFTTAB(2)
type("c")
time.sleep(1)
myTools.enterCurrentMonthOnList(pReportMonth)
# print the report
type(Key.ENTER)
time.sleep(1)
myTools.finishReport(reportName)
示例12: fLink_Accounts_Interest
def fLink_Accounts_Interest():
#---------------------------------------------------#
myTools.pressDOWN(3) # Interest comp
myTools.pressTAB(1)
type("Interest")
myTools.pressSHIFTTAB(1)
示例13: fLink_Accounts_WO
def fLink_Accounts_WO():
#---------------------------------------------------#
myTools.pressDOWN(1) # WO comp
myTools.pressTAB(1)
type("WriteOff")
myTools.pressSHIFTTAB(1)
示例14: fPrint_FlatFee
def fPrint_FlatFee(pReportMonth,pRepExt):
#---------------------------------------------------#
myTools.sectionStartTimeStamp("print FlatFee")
# name report file: ex: ARAgedBal-03
reportName = myTools.buildRepName("FlatFee",pRepExt)
logging.debug('Print_FlatFee: ' + reportName)
# make sure timeslips has focus
myTools.getFocus()
logging.debug('- open report')
type("r",KeyModifier.ALT)
type("c")
time.sleep(1)
type("f")
time.sleep(1)
# move to Print To and choose CSV
myTools.pressSHIFTTAB(2)
time.sleep(1)
type("c")
# print the report
type(Key.ENTER)
time.sleep(1)
myTools.finishReport(reportName)
示例15: fLink_Accounts_Suspense
def fLink_Accounts_Suspense():
#---------------------------------------------------#
myTools.pressDOWN(1) # suspense comp
myTools.pressTAB(1)
type("Suspense")
myTools.pressSHIFTTAB(1)