Page 1 of 1

Find open window titles in Image Eye viewer

Posted: 20 May 2025 15:11
by klownboy
Hey everyone. Wow, it's been slow in here for awhile. :eh:
I've been trying to obtain the filesnames open in my image viewer (Image Eye.exe) using cmd /c tasklist, but I've only been able to retreive output of one of the open files, not multiple filenames. Each image is in a separate Image Eye window which can be closed independently. In running Task Manager, it will look similar like what I clipped below. Which is also similar to how multiple instances of XYplorer will be seen. I know we can deternine using tasklist if multiple XYplorer instances are open.
cmd /c tasklist /v /fi "imagename eq Image Eye.exe" | findstr /i "Image"
I know that tasklist is also capable finding the number of instances of a running program like XYplorer because we've done something along these lines here viewtopic.php?p=209944#p209944
This is the kind of output I can get but it only list one image file when there are multiplesimage files open.
set
----
$check
----
"Image Name","PID","Session Name","Session#","Mem Usage","Status","User Name","CPU Time","Window Title"
"Image Eye.exe","32516","Console","1","74,872 K","Running","DELL-XP-8930\Ken","0:00:00","merry_christmas_16x9.jpg | Image Eye"
I was hoping to be able to reactivate any open Image Eye window (using nircmd with run '"D:\Tools\NirCMD\nircmd.exe" win activate ititle "' . $file . '"'; That works but I need to get a listing of the open window titles when there are more than one instance of Image Eye open. Chatgpt was helpful but had no success with this. If I can't use tasklist maybe I'd have to go with AHK, but I was hoping not.
2025-05-20 05_42_47-Task Manager.jpg

Re: Find open window titles in Image Eye viewer

Posted: 20 May 2025 19:20
by klownboy
Forget this question. I went with AHK to to determine if the image file is open and if it is, activate it. If it's not open then I open it in XYplorer (i.e., the hovered file name is sent to AHK to see if it's open, activates it if it is, and it let's XY know if it isn't). Thanks.