Reputation: 343
Upvotes: 0
Views: 2755
Reputation: 62
You can use sendkeys
, if you want to hit any key from keyboard. Try the below code.
Set oWscript = CreateObject("WScript.Shell")
oWscript.sendkeys"{F9}"
Upvotes: 3
Reputation: 114695
In UFT Window
has a Type
method, the parameter for this method is a string but there are special values for special keys. For you case you probably want micF9
.
Please look and Window.Type
's documentation for more details.
Upvotes: 1