本文整理汇总了Python中myTools.pressDOWN函数的典型用法代码示例。如果您正苦于以下问题:Python pressDOWN函数的具体用法?Python pressDOWN怎么用?Python pressDOWN使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了pressDOWN函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Print_ARAgedBalDate
def Print_ARAgedBalDate(pReportMonth,pRepExt):
#---------------------------------------------------#
myTools.sectionStartTimeStamp("print aged bal date")
# name report file: ex: AgedARDate-03
reportName = myTools.buildRepName("AgedARDate",pRepExt)
logging.debug('Print_AgedARDate: ' + reportName)
# make sure timeslips has focus
myTools.getFocus()
logging.debug('- open report')
type("r",KeyModifier.ALT)
type("b")
time.sleep(1)
myTools.pressDOWN(1)
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)
示例2: fCreate_SlipListDetailed
def fCreate_SlipListDetailed():
#---------------------------------------------------#
logging.debug('- fCreate_SlipListDetailed')
# make sure timeslips has focus
myTools.getFocus()
type(Key.F3,KeyModifier.CTRL) # create a report
time.sleep(1)
type("r",KeyModifier.ALT) # ud report
type("n",KeyModifier.ALT) # next
time.sleep(1)
type("s") # slip
type("n",KeyModifier.ALT) # next
time.sleep(1)
myTools.pressDOWN(2) # detailed Listing Simple
type("n",KeyModifier.ALT) # next
time.sleep(1)
type("n",KeyModifier.ALT) # next
type(Key.ENTER) # Open Report Entry
time.sleep(1)
type("s",KeyModifier.CTRL) # save
type(Key.ENTER) # OK
time.sleep(1)
type(Key.F4,KeyModifier.CTRL) # close report
time.sleep(1)
示例3: 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)
示例4: 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)
示例5: fHold_Time_NextBill_Hours
def fHold_Time_NextBill_Hours():
#---------------------------------------------------#
logging.debug('- Hold_Time_NextBill_Hours')
# open Wakefield
type("Wakefield")
type(Key.ENTER)
time.sleep(1)
# move to page with Hold fields
if int(Settings.tsVersion) > 2014:
myTools.pressF6(5)
else:
myTools.pressF6(3)
# move to Hold time charges
if int(Settings.tsVersion) > 2014:
myTools.pressTAB(3)
else:
myTools.pressTAB(6)
time.sleep(1)
# set to "on next bill" until 5 hours
myTools.pressDOWN(1)
myTools.pressTAB(2)
type("5")
# save
time.sleep(1)
type("s",KeyModifier.CTRL)
示例6: fLink_Accounts_Interest
def fLink_Accounts_Interest():
#---------------------------------------------------#
myTools.pressDOWN(3) # Interest comp
myTools.pressTAB(1)
type("Interest")
myTools.pressSHIFTTAB(1)
示例7: fLink_Accounts_Suspense
def fLink_Accounts_Suspense():
#---------------------------------------------------#
myTools.pressDOWN(1) # suspense comp
myTools.pressTAB(1)
type("Suspense")
myTools.pressSHIFTTAB(1)
示例8: fLink_Accounts_Allowances
def fLink_Accounts_Allowances():
#---------------------------------------------------#
myTools.pressDOWN(1) # allowances comp
myTools.pressTAB(1)
type("Allowances")
myTools.pressSHIFTTAB(1)
示例9: fLink_Accounts_WO
def fLink_Accounts_WO():
#---------------------------------------------------#
myTools.pressDOWN(1) # WO comp
myTools.pressTAB(1)
type("WriteOff")
myTools.pressSHIFTTAB(1)
示例10: fProgressTotal_Setup1
def fProgressTotal_Setup1():
# - - - - - - - - - - - - - - - - - - - - - - - - - #
myTools.sectionStartTimeStamp("ba ProgressTot1")
logging.debug("ba ProgressTot1")
# open client
type("i", KeyModifier.CTRL)
time.sleep(1)
type("BA-ProgressTot")
type(Key.ENTER)
time.sleep(1)
# get to arrangement field for time
ba__Common.fMoveto_BAPage()
myTools.pressTAB(4)
# switch to minimum
type(Key.HOME)
myTools.pressDOWN(11)
# enter details
type(Key.TAB)
type(Key.ENTER)
time.sleep(1)
type("500")
time.sleep(1)
type(Key.ENTER)
# save and close
type("s", KeyModifier.CTRL)
type(Key.F4, KeyModifier.CTRL)
time.sleep(1)
type(Key.F4, KEY_CTRL)
myTools.sectionEndTimeStamp()
示例11: fLink_Accounts_Refund
def fLink_Accounts_Refund():
#---------------------------------------------------#
myTools.pressDOWN(1) # Refund comp
myTools.pressTAB(1)
type("Refund")
myTools.pressSHIFTTAB(1)
示例12: 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)
示例13: fCreate_Maximum_RateRule
def fCreate_Maximum_RateRule():
#---------------------------------------------------#
logging.debug('- Create_Maximum_RateRule')
# new rule
type("n",KeyModifier.ALT)
type("Maximum")
myTools.pressTAB(1)
type("z")
time.sleep(1)
# rate
myTools.pressTAB(2)
type("4.5")
# maximum
myTools.pressTAB(4)
myTools.pressDOWN(2)
time.sleep(1)
# threshold
myTools.pressTAB(1)
type("1000")
# options
myTools.pressTAB(2)
type(Key.SPACE)
myTools.pressTAB(2)
type(Key.SPACE)
# save
myTools.pressTAB(1)
type(Key.SPACE)
time.sleep(1)
# export to all
type(Key.INSERT)
myTools.pressTAB(1)
type(Key.SPACE)
time.sleep(1)
示例14: Print_TkCC
def Print_TkCC(pReportMonth,pRepExt):
#---------------------------------------------------#
myTools.sectionStartTimeStamp("print tkcc")
# name report file: ex: TkCC-03
reportName = myTools.buildRepName("TkCC",pRepExt)
logging.debug('Print_TkCC: ' + reportName)
# make sure timeslips has focus
myTools.getFocus()
logging.debug('- open report')
type("r",KeyModifier.ALT)
type("t")
time.sleep(2)
type("timekeeper cont")
time.sleep(1)
myTools.pressDOWN(1)
time.sleep(1)
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)
# show client breakdown
myTools.pressTAB(4)
type(Key.SPACE)
time.sleep(1)
# close dialog
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)
if pReportMonth != 13:
Filter_SplitClients()
# print the report
type(Key.ENTER)
time.sleep(1)
myTools.finishReport(reportName)
示例15: fAbsoluteNoSlips_Setup
def fAbsoluteNoSlips_Setup(pBAClient):
#---------------------------------------------------#
myTools.sectionStartTimeStamp(pBAClient)
logging.debug(pBAClient)
# open client
myTools.openClient(pBAClient)
# get to arrangement field for both
ba__Common.fMoveto_BAPage()
myTools.pressTAB(3)
type(Key.RIGHT)
time.sleep(1)
type(Key.ENTER)
if int(Settings.tsVersion) > 2014:
type(Key.TAB)
# switch to absolute
type(Key.HOME)
myTools.pressDOWN(2)
# enter details
type(Key.TAB)
type(Key.ENTER)
time.sleep(1)
type("1000")
myTools.pressTAB(1)
time.sleep(1)
if int(Settings.tsVersion) > 2014:
type(Key.TAB)
type("n")
myTools.pressTAB(1)
time.sleep(1)
type("3")
myTools.pressTAB(1)
time.sleep(1)
time.sleep(1)
type("Absolute FF - NoSlips")
time.sleep(1)
# save and close
type(Key.TAB)
type(Key.SPACE)
type("s",KeyModifier.CTRL)
type(Key.F4,KeyModifier.CTRL)
time.sleep(1)
type(Key.F4,KeyModifier.CTRL)
myTools.sectionEndTimeStamp()