Non-invasive popup text? (beginner question)

Asked by Joe

Beginner here, wondering if there is a way to display information on screen during my script, without interrupting the rest of the script.

(I am writing a script that automatically clicks images as they appear on the screen at random times, It would be quite convenient to have some data showing somewhere on the screen that tracks and displays my progress when I glance at the screen. E.g. "You have clicked 8 things while you were AFK")

My best results so far came from popups...

popup("You clicked "+str(rubyClicks)+" rubies while AFK!", "Results")

The problem is, the script stops while the popup is on the screen.

I have messed around with all of the pop-up and input boxes as well as the 'from guide import *' text() and tooltip(), and everything I have tried interrupts the script while the information is displayed.

Can anyone point me in the right direction? Much thanks.

Question information

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

Sorry, currently not an option in SikuliX.

there are 2 workarounds:

--1: by stepping down to the Java level in your Jython script, you might setup an appropriate Java AWT status frame, that stays always on top, can be positioned in a suitable place on the screen and be filled with whatever you want (might be too complicated for a beginner though)

--2: run script from commandline and arrange your windows in a way, that the lower part of the command line window is always visible (or decrease it to e.g. 3 lines). Then you can always see the last line, that is printed by your script.

Version 2 will have a feature according to option 1 (but this will only be later this year)

Revision history for this message
Joe (powgamesz) said :
#2

Thanks RaiMan, that solved my question.

Revision history for this message
Joe (powgamesz) said :
#3

Alright. I think option 2 sounds like the best option for me currently. But I will investigate option 1 for my own personal knowledge.

Thank you for your help.