1.
Following is the code to
save an item through menu shortcuts by simulating Alt + File + Save:
Sys.Desktop.Keys
"[Hold]~f"
Sys.Desktop.Keys
"s"
If the following code invokes a save dialog,
include the following script to accept the file name and save.
Sys.Desktop.Keys
"[Enter]"
2. There may not be a
direct shortcut to delete an item. You can delete it through menu shortcuts by
simulating Alt + File + Delete.
Sys.Desktop.Keys
"[Hold]~f"
Sys.Desktop.Keys
"d"
3.
None of the methods
would, occasionally, help in selecting an item from a list. Alternatively, it
can be selected by pressing its first alphabet key.
To select an item that starts with R
Sys.Desktop.KeyDown(82)
Sys.Desktop.KeyUp(82)
Please click on
following link to view a similar post on Keyboard Shortcuts with examples in
TestComplete.
No comments:
Post a Comment