Post by Jim Nagel Post by Andrew Conroy Post by Jim Nagel
Is there a nifty way of specifying the directory with input focus?
What I want is to tell the path of that directory to an app that is
Perhaps if you could give an idea of what the app will do with this info
(ie. is it going to send keypresses to the window?), we might be able to
work out a way to do it?
OK. I open a filer window, and I find it contains a number of Jpeg and
other graphics files. I want to see thumbnails of those graphics, so I
want to open the same directory with !Thump.
Of course I can go to the parent of that directory (which might be large),
scroll down to find the icon representing that directory, and drag the
icon to Thump (which in my setup is already on the iconbar). That's a bit
of palaver, tiresome because it's an operation I frequently want to do.
I'm using Ro 5.25 on ArmX6 and 5.22 on Armini-Beagle, so the directory in
question has input focus (which would not be the case in old versions of
the OS) and various keystrokes are available on the filer menu: F4 for
full info, ^W to set CSD, ^T to change filetype, etc etc.
So I'm thinking it would be nifty to set up a keystroke for "tell Thump to
display this directory". (F11 is available.)
Thump 1.53 (2015-aug-10), which is the current version from Christopher
Martin, loads to my iconbar at boot-up. I also run Quickfiler 2.24
(2015-july-19), from Martin Avison, which adds some keystrokes beyond what
the native Filer provides. (Unforch neither is listed on Plingstore.)
I submitted a zip file a little while ago which could be the core of
this - as this is a non-binary group I'm not sure what will happen to
It polls once a second and finds the title bar of the window whicjh
currently has the input focus. (Most application windows don't return
the tiutle, but either an empty string or something random.)
The changes it would need: delete the display window, which is not
Remove setting a system variable.
Move the code into a key-pressed handler from the null handler.
Check that the title string returned is a file path - specifically
that the last entry is a directory.
Use Wimp_StartTask to launch Thump, with the path as parameter one on
the command line - ASSUMING THUMP WILL WORK THIS WAY.
I don't have time to do that just now - someone else want to have a
Alan Adams, from Northamptonshire