InvokeAction on buttons in Windows system tray

Class library usage, coding and language questions.
JSH_QA
Posts: 56
Joined: Thu Apr 05, 2012 9:03 am

InvokeAction on buttons in Windows system tray

Post by JSH_QA » Wed Oct 29, 2014 2:19 pm

Within our coded Ranorex tests, we maintain an “input preference” which specifies whether we want to execute a test run using mouse operations wherever possible, simple keyboard operations, access or shortcut keys, touch, or invoke action. In the vast majority of cases, we are able to use any of these possibilities.

However, we are now performing operations on the icons (buttons) in the Windows system tray. Some of the operations that we need to do are typically done using the right-mouse button. We can do the equivalent using the keyboard (e.g. Win+B to move the focus to the system tray, then cursor right to the appropriate button, then the Menu key). However, I haven’t found a method of using InvokeAction to access the right-click functions for the buttons on the system tray.

Is it possible to use InvokeAction to access the right-click functionality on the system tray buttons, using a line such as:

adapter.Element.InvokeAction(action)

If so, what would “action” be in this line?

Many thanks,

John H.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: InvokeAction on buttons in Windows system tray

Post by Support Team » Tue Nov 04, 2014 1:48 pm

Hello John,

Unfortunately, it’s not possible to invoke a right mouse click on a Win32 element. You’ll need to use a right mouse click instead.

Regards,
Robert
.
Image

JSH_QA
Posts: 56
Joined: Thu Apr 05, 2012 9:03 am

Re: InvokeAction on buttons in Windows system tray

Post by JSH_QA » Tue Nov 04, 2014 2:49 pm

Thanks Robert.

Is this on the backlog for a future enhancement (assuming the "not possible" means using the current Ranorex API)?

Thanks,

John H.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: InvokeAction on buttons in Windows system tray

Post by Support Team » Thu Nov 06, 2014 1:08 pm

Hello John,

Currently, there are no plans to implement such a feature.

In order to raise and discuss a feature request may I ask you to send it to [email protected]? We want to handle feature requests via email in order to avoid misunderstandings.

Thank you in advance.

Regards,
Robert
.
Image