开发者

Spy++ and windows closed when they lose focus

I would like to know if there is a way with Spy++ to get the properties of a window that is automatically closed when it loses the focus (w开发者_StackOverflow中文版hich is what happens when I switch to Spy++). Thanks!


Please try - Active Accessibility Object Inspector (32-bit UNICODE Release) , it may useful.

if not then please explain your question briefly.

Thanks.


You need to use Messaging service in order to get the properties of the window. For example, if you want to know WID for menu item, you need to identify the target window by using Window Finder Tool from Window Tab of Message Option dialogue and then clear all messages from Message tab. You only need to choose VM_COMMAND. After that when you click any menu item from target window menu list, associated ID will be shown in Spy++ main window.

Hopefully the answer will be useful for you.

Thanks.


When the SPY mode is active in QTP, hold the CONTROL-button down for mouse clicks to re-establish the correct context for the AUT (application under test). Basically these control-mouseclicks will be ignored by the spy and pass through to the application.

Good question!

Ziggy

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜