UFT Command

Hope that you are okay! i used the following to simulate the hold down of the shift key , Dim test, subTest Set subTest = Window("VMware Workstation") set test =Window("VMware Workstation").WinEdit("Edit") subTest.Type micShiftDwn test.Click test.Type "a" wait 2 subTest.Type micShiftUp test.Type "b" In order to explain this once that you finish using the shift key, use micShiftUp that method is going to release the shift key, otherwise it will keep holding the shift key, other mic codes , in case that you need them micCtrlDwn Presses the Ctrl key. micCtrlUp Releases the Ctrl key. micLCtrlDwn Presses the left Ctrl key. micLCtrlUp Releases the left Ctrl key. micRCtrlDwn Presses the right Ctrl key. micRCtrlUp Releases the right Ctrl key. micAltDwn Presses the Alt key. micAltUp Releases the Alt key. micLAltDwn Presses the left Alt key. micLAltUp Releases the left Alt key. micRAltDwn Presses the right Alt key. micRAltUp Releases the right Alt key. micShiftDwn Presses the Shift key. micShiftUp Releases the Shift key. micLShiftDwn Presses the left Shift key. micLShiftUp Releases the left Shift key. micRShiftDwn Presses the right Shift key. micRShiftUp Releases the right Shift key. micIns Presses the Insert key. micDel Presses the Delete key. micHome Presses the Home key. micEnd Presses the End key. micPgUp Presses the Page Up key. micPgDwn Presses the Page Down key. micUp Presses the Up arrow key. micDwn Presses the Down arrow key. micLeft Presses the Left arrow key. micRight Presses the Right arrow key. micEsc Presses the Esc key. micBack Presses the Backspace key. micReturn Presses the Return key. micTab Presses the Tab key. micBreak Presses the Break key. micPause Presses the Pause key. micPrintScr Presses the Print Screen key. micWinLogoDwn Presses the Windows Logo key. micWinLogoUp Releases the Windows Logo key. micLWinLogoDwn Presses the left Windows Logo key. micLWinLogoUp Releases the left Windows Logo key. micRWinLogoDwn Presses the right Windows Logo key. micRWinLogoUp Releases the right Windows Logo key. micAppKey Presses the Application key. micF1 Presses the F1 key. micF2 Presses the F2 key. micF3 Presses the F3 key. micF4 Presses the F4 key. micF5 Presses the F5 key. micF6 Presses the F6 key. micF7 Presses the F7 key. micF8 Presses the F8 key. micF9 Presses the F9 key. micF10 Presses the F10 key. micF11 Presses the F11 key. micF12 Presses the F12 key. micNumLockOn Turns on the Num Lock. micCapsLockOn Turns on the Caps Lock. micScrollOn Turns on the Scroll Lock. micNumLockOff Turns off the Num Lock. micCapsLockOff Turns off the Caps Lock. micScrollOff Turns off the Scroll Lock.

  • 7
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值