Micro Focus QTP (UFT) Forums

Full Version: Start application from windows system tray
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Sorry,

A small correction of the post.

In fact we can find system tray with application in it and activate it. Just like this,

Code:
For i = 1 To Window("System Tray").WinToolbar("System Tray").GetItemsCount
name = Window("System Tray").WinToolbar("System Tray").GetItem(i)
If InStr(name,i)>0 Then            
Window("System Tray").WinToolbar("System Tray").Press i,micMiddleBtn
etc...

But when there are appears a menu and the spy identify it like
object class
System.Windows.Forms.ContextMenuStrip

native class
WindowsForms10.Window.808.app.0.33c0d9d

and in this menu there are several items that must be selected.
No more details. No objects of this menu are identified, etc...
Does anybody meet with such...
Thank you!!!

<---------------->
old post
<---------------->

Hello!

Could you please, help... The case is following - our application is placed in win system tray. And according to a test case we should test how the app starts by double clicking on the icon.
We have used by bitmap checkpoint but you know sometimes it works not properly...

Thank you!!!