qtp中type方法的按键常量

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

如:JavaWindow("Shell").JavaEdit("受权用户").Type "hello" & micreturnspa

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

type方法经常使用的按键常量有如下:字符串

micRShiftUp it

Releases the right Shift keytable

micreturn方法

Press the enter keytop

micTabtab

Press the tab keydi

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

相关文章
相关标签/搜索