Page 1 of 2

custom column - green click-able icon

Posted: 29 Apr 2015 19:44
by yusef88
the green click-able icon of custom column,why does it disappear after clicking it?

Re: custom column - green click-able icon

Posted: 29 Apr 2015 22:11
by admin
Trigger Click works only once per file. I seem to remember that a multi-click trigger has been wished (but not implemented).

Re: custom column - green click-able icon

Posted: 29 Apr 2015 22:16
by TheQwerty
admin wrote:I seem to remember that a multi-click trigger has been wished (but not implemented).
Twice now:
http://www.xyplorer.com/xyfc/viewtopic. ... 98#p105998
http://www.xyplorer.com/xyfc/viewtopic. ... 38#p111438
Then you fixed the workaround.

Re: custom column - green click-able icon

Posted: 29 Apr 2015 22:27
by admin
Ah, a workaround. Nice. :biggrin:

Re: custom column - green click-able icon

Posted: 30 Apr 2015 00:32
by yusef88
admin wrote:Trigger Click works only once per file. I seem to remember that a multi-click trigger has been wished (but not implemented).
hoping it would be someday,thanks

Re: custom column - green click-able icon

Posted: 30 Apr 2015 07:01
by admin

Code: Select all

v13.90.0107 - 2014-04-12 11:37
    * Custom Columns: When Custom Columns of type Script are triggered by Click 
      and the script has no "return" command then the click symbol remains in 
      the list and can be clicked again and again.
      And the list is not repainted after such a "no return" click so you can 
      make coffee this way.

Re: custom column - green click-able icon

Posted: 16 Mar 2017 11:54
by TheQwerty
admin wrote:

Code: Select all

v13.90.0107 - 2014-04-12 11:37
    * Custom Columns: When Custom Columns of type Script are triggered by Click 
      and the script has no "return" command then the click symbol remains in 
      the list and can be clicked again and again.
      And the list is not repainted after such a "no return" click so you can 
      make coffee this way.
Am I missing something or does this not work in v17.70.0203...

Code: Select all

Snip: CustomColumn 1
  XYplorer 17.70.0203, 3/16/2017 6:54:20 AM
Action
  ConfigureColumn
Caption
  Test
Type
  3
Definition
  status rand(0,100);
Format
  0
Trigger
  2
Item Type
  2
Item Filter
  

Re: custom column - green click-able icon

Posted: 16 Mar 2017 14:57
by autocart
TheQwerty wrote:Am I missing something or does this not work in v17.70.0203...
actually it does work here, with the mentioned version
Win 8.1 x64

only a double click also opens the item (I have full row select on)

Re: custom column - green click-able icon

Posted: 16 Mar 2017 15:10
by admin
Works here.

Re: custom column - green click-able icon

Posted: 16 Mar 2017 15:18
by TheQwerty
Various Info wrote:XYplorer: 17.70.0203 (Pro Edition - Lifetime License Pro)
Loaded in: 730 ms at 3/16/2017 10:04:06 AM
Uptime: 13 mins, 42 secs Runtime: 6.00.9815
Memory Usage: 43,996 KB, Virtual Memory Size: 22,720 KB

OS: Windows 7 Professional (Service Pack 1), 64-bit (6.1)
OS Uptime: 1 day, 4 hrs, 51 secs
Time Zone: Eastern Standard Time, Eastern Daylight Time
UTC Offset: --04:00
User Role: User
Themes: Yes (Aero) RealSystem32: Yes

System Locale ID: 1033 (en-US)
Thread Locale ID: 1033 (en-US)
Default ANSI Code Page: 1252 (ANSI - Latin I)
Active ANSI Code Page: 1252 (ANSI - Latin I)
Default OEM code page: 437 (OEM - United States)
Active OEM Code Page: 437 (OEM - United States)
Is DBCS Code Page: No

DblClick Time: 550 ms
Screen: 1920x1080, 1/3 (Primary), Virtual: (-1920, 0) - (5120, 1080), Work: (0, 0) - (1920, 1040)
Screen DPI: 96 (100%), twx: 15, stretch: 1
Screen Color Depth: 32
UseDPIAwareIconSizes: No, Yes
Icon Size: Small=16, Large=32
Icon Size Recommended: Small=16, Large=32

Command Line: /fresh
Command Normalized: /fresh
Using that snippet in fresh v17.70.0203 - the icons disappear after clicking on them.


Another fun one: changing the column's format to Icon causes the green execution icon to disappear, but leaves the click target that triggers the script.
This can cause all sorts of fun:

Code: Select all

Snip: CustomColumn 1
  XYplorer 17.70.0203, 3/16/2017 10:17:10 AM
Action
  ConfigureColumn
Caption
  Test
Type
  3
Definition
  $r = rand(0,10);
  if ($r == 7) {
    Status "$r - you won a pizza prize!";
    return ':sfs';
  } else {
    Status "$r - you lose!";
    return ':del';
  }
Format
  7
Trigger
  2
Item Type
  2
Item Filter
  

Re: custom column - green click-able icon

Posted: 16 Mar 2017 15:31
by admin
Works here, also with fresh. :?

The icon fun is already fixed here. Wait for v17.70.0204...

Re: custom column - green click-able icon

Posted: 16 Mar 2017 16:57
by TheQwerty
Okay... It works but only if XY has a reason to redraw the list.

From fresh in a folder that sees very little activity with a locked mini tree XY is okay leaving them "gone" for tens of minutes - especially if XY is not the active window.

Even when XY is active I can click on many of the default toolbar buttons and open the Configuration without triggering a redraw that will bring them back.


So I guess it works as described, but my expectation from the description was that the icon would never go away or at least would return immediately after the script finished and that is certainly not the case.

EDIT: XY has now gone over 70 minutes without restoring the icons - even after unlocking and disabling mini tree. Sure most of that time was spent inactive but I've clicked over a few times just to poke it a little.

Re: custom column - green click-able icon

Posted: 16 Mar 2017 19:21
by admin
They never go away here.

Is this a complete misunderstanding?

Re: custom column - green click-able icon

Posted: 16 Mar 2017 19:26
by autocart
autocart wrote:
TheQwerty wrote:Am I missing something or does this not work in v17.70.0203...
actually it does work here, with the mentioned version
Win 8.1 x64

only a double click also opens the item (I have full row select on)
Update: a dbl-click on the green icon is not opening the item, it is treated by XY like a dlb-click on "empty space". Should it be that way?
and it also executes the no-return-script twice (which might be expected)

Re: custom column - green click-able icon

Posted: 16 Mar 2017 20:11
by TheQwerty
2017-03-16 1509.gif