• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python myTools.pressDOWN函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中myTools.pressDOWN函数的典型用法代码示例。如果您正苦于以下问题:Python pressDOWN函数的具体用法?Python pressDOWN怎么用?Python pressDOWN使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了pressDOWN函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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)
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:29,代码来源:report_AgedARBalDate.py


示例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)
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:32,代码来源:report_UDSlip.py


示例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)
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:32,代码来源:report_ARwRunBal.py


示例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)
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:31,代码来源:report_FeeAllocPer.py


示例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)
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:31,代码来源:client_Hold.py


示例6: fLink_Accounts_Interest

def fLink_Accounts_Interest():
#---------------------------------------------------#

    myTools.pressDOWN(3)                # Interest comp
    myTools.pressTAB(1)
    type("Interest")
    myTools.pressSHIFTTAB(1)
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:7,代码来源:settings_TAL.py


示例7: fLink_Accounts_Suspense

def fLink_Accounts_Suspense():
#---------------------------------------------------#

    myTools.pressDOWN(1)                # suspense comp
    myTools.pressTAB(1)
    type("Suspense")
    myTools.pressSHIFTTAB(1)
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:7,代码来源:settings_TAL.py


示例8: fLink_Accounts_Allowances

def fLink_Accounts_Allowances():
#---------------------------------------------------#

    myTools.pressDOWN(1)                # allowances comp
    myTools.pressTAB(1)
    type("Allowances")
    myTools.pressSHIFTTAB(1)
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:7,代码来源:settings_TAL.py


示例9: fLink_Accounts_WO

def fLink_Accounts_WO():
#---------------------------------------------------#

    myTools.pressDOWN(1)                # WO comp
    myTools.pressTAB(1)
    type("WriteOff")
    myTools.pressSHIFTTAB(1)
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:7,代码来源:settings_TAL.py


示例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()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:35,代码来源:ba_ProgressTotal.py


示例11: fLink_Accounts_Refund

def fLink_Accounts_Refund():
#---------------------------------------------------#

    myTools.pressDOWN(1)                # Refund comp
    myTools.pressTAB(1)
    type("Refund")
    myTools.pressSHIFTTAB(1)
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:7,代码来源:settings_TAL.py


示例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)
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:35,代码来源:report_PBWorksheet.py


示例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)
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:34,代码来源:taxes_Setup.py


示例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)
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:59,代码来源:report_TkCC.py


示例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()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:58,代码来源:ba_Absolute_NoSlips.py


示例16: fPrint_AgedClient

def fPrint_AgedClient(pReportMonth,pRepExt):
#---------------------------------------------------#

    myTools.sectionStartTimeStamp("print AgedClient")

    # name report file: ex: PreBill-03
    reportName = myTools.buildRepName("AgedClient",pRepExt)
    logging.debug('Print_AgedClient: ' + reportName)

    # make sure timeslips has focus
    myTools.getFocus()

    logging.debug('- open PayPerf')
    type("r",KeyModifier.ALT)
    type("c")
    time.sleep(1)
    myTools.pressDOWN(1)
    time.sleep(1)
    
    logging.debug('- set up report')
    type("o",KeyModifier.CTRL)
    
    # Options
    myTools.pressSHIFTTAB(4)
    type(Key.SPACE)
    time.sleep(1)

    # Default
    myTools.pressSHIFTTAB(4)
    type(Key.SPACE)
    time.sleep(1)

    # Show hours
    myTools.pressTAB(10)
    type(Key.SPACE)
    time.sleep(1)

    # Show Adjustment columns
    myTools.pressTAB(1)
    type(Key.SPACE)
    time.sleep(1)

    # OK
    type(Key.ENTER)
    time.sleep(1)

    # choose csv
    myTools.pressTAB(2)
    type("c")
    time.sleep(1)

    myTools.enterSlipFilter(pReportMonth,"yy")

    # print the report
    type(Key.ENTER)    
    time.sleep(1)

    myTools.finishReport(reportName)
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:58,代码来源:report_AgedClient.py


示例17: fLink_Accounts_ClientEscrow

def fLink_Accounts_ClientEscrow():
#---------------------------------------------------#

    myTools.pressDOWN(3)                # clientescrow comp
    myTools.pressTAB(1)
    type("ClientEscrow-Comp")
    myTools.pressSHIFTTAB(1)
    
    time.sleep(1)
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:9,代码来源:settings_TAL.py


示例18: fLink_Accounts_ProgBilling

def fLink_Accounts_ProgBilling():
#---------------------------------------------------#

    myTools.pressDOWN(1)                # progbill comp
    myTools.pressTAB(1)
    type("ProgBilling-Comp")
    myTools.pressSHIFTTAB(1)
    
    time.sleep(1)
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:9,代码来源:settings_TAL.py


示例19: fAdjustTimekeeperBoth_Setup

def fAdjustTimekeeperBoth_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)  

# extra TAB starting in TS2015
    if int(Settings.tsVersion) > 2014:
        type(Key.TAB)

# switch to adjust by timekeeper    
    type(Key.HOME)
    myTools.pressDOWN(1)    
# enter details    
    type(Key.TAB)
    type(Key.ENTER)
    time.sleep(1)    
    type("n",KeyModifier.ALT)
    type("t")    
    type(Key.TAB)    
    type("25")
    type(Key.TAB)    
    type(Key.RIGHT)    

    if int(Settings.tsVersion) < 2014:
        myTools.pressTAB(3)
    else:
        type("d",KeyModifier.ALT)
		
    time.sleep(1)    
    type("Adjust Timekeeper - Both")
    time.sleep(1)    

# save and close    
    type(Key.TAB)
    type(Key.SPACE)
    myTools.pressTAB(4)
    type(Key.SPACE)
    type("s",KeyModifier.CTRL)

    type(Key.F4,KeyModifier.CTRL)
    time.sleep(1)
    type(Key.F4,KeyModifier.CTRL)    

    myTools.sectionEndTimeStamp()
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:56,代码来源:ba_AdjustTimekeeper_Both.py


示例20: fCreate_Compound_RateRules

def fCreate_Compound_RateRules():
#---------------------------------------------------#
    logging.debug('- Create_Compound_RateRule')

    # new rule
    type("n",KeyModifier.ALT)
    type("Compound2")
    myTools.pressTAB(1)
    type("z")
    time.sleep(1)
    # rate
    myTools.pressTAB(2)
    type("3")
    myTools.pressTAB(5)
    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)

    # new rule
    type("n",KeyModifier.ALT)
    type("Compound1")
    myTools.pressTAB(1)
    type("z")
    time.sleep(1)
    # rate
    myTools.pressTAB(2)
    type("3.5")
    # Type
    myTools.pressTAB(1)
    myTools.pressDOWN(2)  
    # compound
    myTools.pressTAB(2)    
    type("com")
    # options
    myTools.pressTAB(1)
    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)
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:56,代码来源:taxes_Setup.py



注:本文中的myTools.pressDOWN函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python myTools.pressSHIFTTAB函数代码示例发布时间:2022-05-27
下一篇:
Python myTools.getFocus函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap