QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Capturing menus with the snapshot utility |
Ref. No. |
QNX.000008741 |
Category(ies) |
Utilities |
Issue |
We've used snapshot numerous times to capture various dialogs and windows to BMP files. We would also like to capture menus, but have been unsuccessful. Any suggestions on how to accomplish this?
|
Solution |
It is easiest to do this by running snapshot from a pterm/shell. A good example is:
sleep 4; snapshot -A 50,50 -o 1,1 -p "BMP Spool File" -f ./menu.bmp
You can replace the '4' with any number of seconds; however long it will take you to change the screen, and bring up the menu.
|
|