Trying to capture image in system tray and also click on the icon execute other actions this from going to be done from java

Asked by Chrys Perdue

How do you check an item in the system tray to see if it is showing one image or another? Being able to get to the tooltip would also work. I also need to click on the item in the system tray to execute actions on it. This will be done in Netbeans java development environment.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
masuo
Solved:
Last query:
Last reply:
Revision history for this message
masuo (masuo-ohara) said :
#1

The tooltip of icon in system tray is shown nearby system tray?
If so, you can use nearby() or above() or grow() etc.
https://sikulix-2014.readthedocs.io/en/latest/region.html#Region.nearby

[example:]
r = find("icon01.png").highlight(1)
mouseMove()
if r.exists("tooltip.png"):
    popup("tooltip is found")
else:
    popup("tooltip is not found")

Revision history for this message
masuo (masuo-ohara) said :
#2

I forgot to add nearby().

r = find("icon01.png").nearby().highlight(1)

Revision history for this message
Chrys Perdue (cobraassasin) said :
#3

What type of script are you using? So I can find the Java counterpart to that code

Revision history for this message
Best masuo (masuo-ohara) said :
#4
Revision history for this message
Chrys Perdue (cobraassasin) said :
#5

Thanks masuo, that solved my question.