ROX-Filer release of SELECTIONS using Script ?

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
some1
Posts: 117
Joined: Thu 17 Jan 2013, 11:07

ROX-Filer release of SELECTIONS using Script ?

#1 Post by some1 »

Hi

I am dumping rox-selection-paths by middle-mouse to an entrybox.
The rox-selections stays sticky - after the dump - which I somewhat
consider a nuisance,but not a bug.Rox version 2.9.

On dumparrival,using xdotool to send an escape-key to the Rox-window, I can release,clear selections.
However - xdotool is "external" and somewhat heavy -bytewise- just for this .


So the question:

Is there another way,mechanism to - from a script -make ROX clear selections?

Thanks

some1
Posts: 117
Joined: Thu 17 Jan 2013, 11:07

...why so shy?.

#2 Post by some1 »

Hi

...meanwhile - using xdotool::

Code: Select all

$(xdotool search --onlyvisible --name '^[~|/]' key --window %@ "Escape")
Visible windows with titles starting with "home" or / will get an Escape key.
( Note: Also minimized windows can carry a selection )

That is somewhat of an overkill - because on receiving data - the script COULD deduct the parent-path to the directory in which the selections occurred.

However - ROX craves user-action to free selections -
and with a hectic selection activity on several windows - there may be
1) stale,dimmed selections
2) the actual last selection -which is in the clipboard

Dead selections are a nuisance,when forgotten - and f.x. a right-click in a filer-window with dead-selections might give rise to a WTF-moment.

So for now:
Sending out a spree of Escapes makes for a saner world.
The extra coding needed for a dedicated solution does not really seem worth it.

But still - xdotool has to be around - so another -,"in residence" - way would be preferable.

Cheers

Post Reply