Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #5568

Re: directory with input focus / to Thump

Subject Re: directory with input focus / to Thump
Newsgroups comp.sys.acorn.programmer
From Alan Adams <alan@adamshome.org.uk>
Date 2018-11-07 14:53 +0000
Message-ID <190a445357.Alan.Adams@ArmX6.adamshome.org.uk> (permalink)
References <ff4abd5257.jim@6.abbeypress.net> <5753377c86a.m.conroy@owlart.co.uk> <2b313f5357.jim@6.abbeypress.net>
Organization Orpheus Internet Services

Show all headers | View raw


In message <2b313f5357.jim@6.abbeypress.net>
          Jim Nagel <jnews18c@abbeypress.co.uk> wrote:

> Andrew Conroy  wrote on 7 Nov:

>> In article <ff4abd5257.jim@6.abbeypress.net>,
>>    Jim Nagel <jnews18c@abbeypress.co.uk> wrote:
>>> 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
>>> running. [...]

>> 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.)
> http://www.users.on.net/~belles/software/thump/
> http://www.avisoft.force9.co.uk/QFiler.htm

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.

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 
needed.
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 
go?

-- 
Alan Adams, from Northamptonshire
alan@adamshome.org.uk
http://www.nckc.org.uk/

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

directory with input focus (vs CSD) Jim Nagel <jnews18c@abbeypress.co.uk> - 2018-11-06 14:21 +0000
  Re: directory with input focus (vs CSD) Theo <theom+news@chiark.greenend.org.uk> - 2018-11-06 21:58 +0000
  Re: directory with input focus (vs CSD) Andrew Conroy <a.m.conroy@owlart.co.uk> - 2018-11-07 12:36 +0000
    Re: directory with input focus (vs CSD) "John Williams (News)" <UCEbin@tiscali.co.uk> - 2018-11-07 13:55 +0000
    Re: directory with input focus / to Thump Jim Nagel <jnews18c@abbeypress.co.uk> - 2018-11-07 14:00 +0000
      Re: directory with input focus / to Thump News <chrisjohnson@spamcop.net> - 2018-11-07 14:41 +0000
        Re: directory with input focus / to Thump Jim Nagel <jnews18c@abbeypress.co.uk> - 2018-11-08 02:25 +0000
      Re: directory with input focus / to Thump Alan Adams <alan@adamshome.org.uk> - 2018-11-07 14:53 +0000
        Re: directory with input focus / to Thump Jim Nagel <jnews18c@abbeypress.co.uk> - 2018-11-08 02:20 +0000
        Re: directory with input focus / to Thump druck <news@druck.org.uk> - 2018-11-08 21:58 +0000
      Re: directory with input focus / to Thump Andrew Conroy <a.m.conroy@owlart.co.uk> - 2018-11-07 15:01 +0000
      Re: directory with input focus / to Thump Jim Nagel <jnews18c@abbeypress.co.uk> - 2018-11-07 18:25 +0000
        Re: directory with input focus / to Thump Jim Nagel <jnews18c@abbeypress.co.uk> - 2018-11-08 02:06 +0000
      Re: directory with input focus / to Thump Alan Wrigley <usenet@alanwrigley.me.uk> - 2018-11-07 20:24 +0000
  Re: directory with input focus (vs CSD) svrsig <chris@svrsig.org> - 2018-11-07 09:52 -0800
    Re: directory with input focus (vs CSD) druck <news@druck.org.uk> - 2018-11-08 22:02 +0000
      Re: directory with input focus (vs CSD) / to Thump Jim Nagel <jnews18c@abbeypress.co.uk> - 2018-11-09 01:44 +0000
        Re: directory with input focus (vs CSD) / to Thump "John Williams (News)" <UCEbin@tiscali.co.uk> - 2018-11-09 08:15 +0000
        Re: directory with input focus (vs CSD) / to Thump "John Williams (News)" <UCEbin@tiscali.co.uk> - 2018-11-09 08:30 +0000
        Re: directory with input focus (vs CSD) / to Thump Alan Wrigley <usenet@alanwrigley.me.uk> - 2018-11-09 09:55 +0000
          Re: directory with input focus (vs CSD) / to Thump Jim Nagel <jnews18c@abbeypress.co.uk> - 2018-11-09 11:22 +0000
            Re: directory with input focus (vs CSD) / to Thump Alan Wrigley <usenet@alanwrigley.me.uk> - 2018-11-09 14:20 +0000
        Re: directory with input focus (vs CSD) / to Thump Peter Young <pnyoung@ormail.co.uk> - 2018-11-09 11:14 +0000
          Re: directory with input focus (vs CSD) / to Thump Jim Nagel <jnews18c@abbeypress.co.uk> - 2018-11-09 11:49 +0000
            Re: directory with input focus (vs CSD) / to Thump Peter Young <pnyoung@ormail.co.uk> - 2018-11-09 12:26 +0000

csiph-web