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 on 2018-11-07

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:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
masuo
Solved:
2018-11-08
Last query:
2018-11-08
Last reply:
2018-11-07
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")

masuo (masuo-ohara) said : #2

I forgot to add nearby().

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

Chrys Perdue (cobraassasin) said : #3

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

Best masuo (masuo-ohara) said : #4
Chrys Perdue (cobraassasin) said : #5

Thanks masuo, that solved my question.