Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get contents of context menu? #8

Open
alexkogon opened this issue Sep 22, 2015 · 1 comment
Open

How to get contents of context menu? #8

alexkogon opened this issue Sep 22, 2015 · 1 comment

Comments

@alexkogon
Copy link
Contributor

Hi Ed,

I'm trying to use Synthuse to automate some tests but have a problem where I right click on something to bring up a context menu, but then if I try to use Synthuse to get the contents of the menu of course it disappears immediately when the app loses focus. Any idea on how that might work?

@ejakubowski
Copy link
Contributor

Hey Alex
To work with menus and context menus we can use 2 configurable shortcut keys. First to refresh the Windows Enumerated XML while the menu system is open you can press the Refresh shortcut keys CTRL+SHIFT+3
This setting is configurable in the synthuse.properties file. For example:
targetKey=`
refreshKey=3

The second shortcut key is the target key, which will automatically target
whatever your mouse is hovering over. To use that you simply hover over the menu item with the mouse and press the keys CTRL+SHIFT+`

Let me know if that doesn't work. Thanks.

On Sep 22, 2015 8:02 AM, "Alex Kogon" notifications@github.com wrote:

Hi Ed,

I'm trying to use Synthuse to automate some tests but have a problem where
I right click on something to bring up a context menu, but then if I try to
use Synthuse to get the contents of the menu of course it disappears
immediately when the app loses focus. Any idea on how that might work?


Reply to this email directly or view it on GitHub
#8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants