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

相關文章
相關標籤/搜索