Page 1 of 1

XnViewMP view 'timing'

Posted: Sat Jun 28, 2025 12:59 am
by ACRizona
When is the filename ''added" into the window title ? Before or during the user viewing ?
Same question,,,,,,,,,,,,,,,,,.,,,, into the .INI file ?

I need to find the FASTEST method to acquire the filename being viewed.
While the operator is viewing the file, a 'pop-up-menu' is generated of other tasks related to this photo.

I have written several scripts to test the idea of 'linking' the photo (via the filename) to the SQL server database,
and produce a mini-menu "Related STUFF...." for the viewer's interest. (Like a small home-screen pop-up).

Trouble began when some viewers would be "scanning" at such a pace, that the programs could not keep up.
So, for now, the mini-menu contains "ALL STUFF...", and the operator must choose/click the sub-category to search.

Tomorrow, we propose to add messages to signal "checking this", "that", "other things". so the operator can control whats next.
(That will also help 'filter' the SQL requests, which are often not needed.)

Any help is appreciated. Comments are welcomed !

Re: XnViewMP view 'timing'

Posted: Sun Jun 29, 2025 10:25 pm
by ACRizona
I tripped-over a clue !
(from the Linux console:) xwininfo -name "/home/tom/Desktop/Utah.jpg - XnView MP"
( ---no response--- ) That's the problem,,, because the TITLE is bass-ackwards !

XnView does not exist, UNTIL you open a file !
Explain:
Other programs differ,,, most keep the name first, then the description, filename, version, whatever.
Newer programs call it the TITLE, old programs (like xwininfo) call it NAME, the boss calls it "BANNER".

My script-solution is to check OPEN windows only, then search for "xnview" in the BANNER.
This is far-faster than the textbook method of "do-looping" all 200 tasks to find xnview.
Please consider this problem with future updates.