• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
emilyzhang68
博客园    首页    新随笔    联系   管理    订阅  订阅
qtp中type方法的按键常量

  记录键盘操作可以用set和presskey方法,而type方法是不记录的。type方法主要用于输入连接文本字符串和键盘修饰键(组合键),组合键之间用&符号。

如:JavaWindow("Shell").JavaEdit("授权用户").Type "hello" & micreturn

 edit文本框输入内容后按回车键:JavaWindow("Shell").JavaEdit("授权用户").Type micreturn

type方法常用的按键常量有以下:

micRShiftUp 

Releases the right Shift key

micreturn

Press the enter key

micTab

Press the tab key

micWinLogoDwn

Press the windows Logo key

micWinLogoUP

Release the windows Logo key

micLWinLogoDwn

Press the left windows logo key

micLWinLogoUp

Release the left windows logo key    

micRWinLogoDwn

Press the right windows logo key

micRWinLogoUp

Release the right windows logo key    

micF1

Press the F1 key

micCtrlDwn

Press the ctrl key

micCtrlUp

Release the ctrl key

posted on 2014-01-26 14:14  emilyzhang68  阅读(1324)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3