Like a new feature? Say thanks here

Say it if you mean it...
admin
Site Admin
Posts: 60643
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Like a new feature? Say thanks here

Post by admin »

SkyFrontier wrote:just missing <clp> instead of neverending boring <clipboard>... :whistle:
Oh yeah, me too! Wait, I'm the programmer... ... ...

eil
Posts: 1625
Joined: 13 Jan 2011 19:44

Re: Like a new feature? Say thanks here

Post by eil »

Code: Select all

 +++ Search In List
 + Variable <selitems> enhanced
 + Find Files: You now can use the following aliases in the Location combo:
        #     = Search all items in the current list
        +     = Search the select items in the current list
 + Floating Preview: Now, if MDBU is off (toggle it by "M" when in FP), you
      can navigate by left mouse click on the image itself:
      - Click on left half of the preview: Go Back.
      - Click on right half of the preview: Go Forward.
  * List: Now in Thumbnails and Tiles views, clicking on any empty space
      between the images and captions counts as a click on empty.
      Before, the hittable area was much larger, almost the total cell of each
      item, so a lasso select was practically impossible.
big bag of love! :biggrin:
Win 7 SP1 x64 100% 1366x768

highend
Posts: 13346
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Like a new feature? Say thanks here

Post by highend »

+ Scripting got a new function.
Name: ItemAtPos
Thanks for fulfilling my request!
One of my scripts helped you out? Please donate via Paypal

autocart
Posts: 1248
Joined: 26 Sep 2013 15:22

Re: Like a new feature? Say thanks here

Post by autocart »

highend wrote:
+ Scripting got a new function.
Name: ItemAtPos
Thanks for fulfilling my request!
Wow, thx highend for asking obviously!
BIG thx Don, for fulfilling highend's request and bringing this function!
Wahnsinn! Toll! Endlich! At last the workaround with the inofficial cell() function seems not needed anymore PLUS itematpos() also works on the tree and even on the catalog. Amazing!! THANK YOU DON !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

klownboy
Posts: 4147
Joined: 28 Feb 2012 19:27

Re: Like a new feature? Say thanks here

Post by klownboy »

Thanks here also for itematpos. That SC gonna lead to some scripting fun, for sure. I was using TheQwerty's ItemUnderMouse.xys script quite a bit. It works great for triggering programs while hovering over a thumbnail or any file. The thing that's really nice is you can set it up to trigger different programs dependent on file type similar to the WhiteSpaceCtxMenu script, but you don't have to select anything. I may update that script to run programs based on file type by hitting a trigger key. :appl: :tup:
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

highend
Posts: 13346
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Like a new feature? Say thanks here

Post by highend »

I'm currently building a MDBU application for files / folders with that command (that's the reason why I asked Don to implement it...). It will allow modifiers (ctrl, shift, ctrl + shift) as well. So you can get different menus directly on items / selections. Menus will be user configurable (including submenus, icons,...) and depend on what you've selected (by looking at file types).
One of my scripts helped you out? Please donate via Paypal

klownboy
Posts: 4147
Joined: 28 Feb 2012 19:27

Re: Like a new feature? Say thanks here

Post by klownboy »

Thanks highend...so that's the next cool script you're working on! I assume you are using AHK along with the new SC itematpos to enable modifiers. So if we're hovering over the file, we'll have a trigger like ctrl-mouse button to run or BlowUp the file (i.e., we wouldn't have to hit a keyboard key/key combo to trigger). It sounds like a ton of flexibility. I'll be glad to help test. :tup:

Edit: You can use that nothing "" return with itematpos when not over a file, folder or thumbnail to your advantage by having the script display a "default" menu. :)
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

highend
Posts: 13346
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Like a new feature? Say thanks here

Post by highend »

* SC ItemAtPos enhanced: Now it works for the following controls:
+ Scripting got a new function.
Name: ControlAtPos
I'll get back to you if the next idea springs into my mind :ninja: :ghost:
One of my scripts helped you out? Please donate via Paypal

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Like a new feature? Say thanks here

Post by bdeshi »

Whoah, I'm gone for a few days, and it's new-features-galore here! And all things I now know I've always wanted! :tup: :tup: :tup: :biggrin:
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

Re: Like a new feature? Say thanks here

Post by Papoulka »

Thank you for SC flattenfolder(). It is the core of a script I use many times every day and I'm very glad to have such a reliable and fast tool for that bit.
Last edited by Papoulka on 25 Sep 2015 16:51, edited 1 time in total.

klownboy
Posts: 4147
Joined: 28 Feb 2012 19:27

Re: Like a new feature? Say thanks here

Post by klownboy »

Thanks Don for this:
+ Scripting | Foreach: Now, foreach loops can skip empty items in the list of tokens
by passing "e" as flag:
I assume with that it's no longer necessary to have a (2nd) line like this below in the code.

Code: Select all

    foreach($dat2file, $dat2, "<crlf>","e") {
      if ($dat2file == "") {continue;}
How does it affect the last parameter "Message on empty" if the foreach line had "" for "Message on empty" (i.e., wasn't that suppose to do the same thing?)?
· In MsgOnEmpty you can state an error message for the case that ListOfTokens is empty. If MsgOnEmpty is given (even as empty string "") the loop will not be executed at all.

Code: Select all

    foreach($dat2file, $dat2, "<crlf>", ,"") {
      if ($dat2file == "") {continue;}
Thanks.
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

admin
Site Admin
Posts: 60643
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Like a new feature? Say thanks here

Post by admin »

MsgOnEmpty is used when the whole list is empty. The new switch applies when individual tokens are empty, and also when the whole list is empty. MsgOnEmpty is shown with or without the switch.

LittleBiG
Posts: 1846
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Like a new feature? Say thanks here

Post by LittleBiG »

Code: Select all

"!a OR b"      was parsed as     "NOT (a OR b)".
I stopped liking this recently. And now I changed it:
"!a OR b"      is parsed as      "(NOT a) OR b"
At last! :appl:

I hated that

Code: Select all

?!a OR b
didn't give the same result as

Code: Select all

?:!a OR b
Or this was a bug, when FindAllowMasterInvert=1?

klownboy
Posts: 4147
Joined: 28 Feb 2012 19:27

Re: Like a new feature? Say thanks here

Post by klownboy »

admin wrote:MsgOnEmpty is used when the whole list is empty. The new switch applies when individual tokens are empty, and also when the whole list is empty. MsgOnEmpty is shown with or without the switch.
Thanks for the clarificationas far as "Msg n Empty" being for the situation when everything was empty. In the testing I've done, it certainly doesn't seem like the if ($item == "") {continue;} line (which many of us having been using) after the foreach line is necessary with the new "e" flag. Thanks Don.
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

admin
Site Admin
Posts: 60643
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Like a new feature? Say thanks here

Post by admin »

LittleBiG wrote:I hated that

Code: Select all

?!a OR b
didn't give the same result as

Code: Select all

?:!a OR b
Or this was a bug, when FindAllowMasterInvert=1?
A half-bug. The Master Invert should go before the Bool marker:

Code: Select all

?!:a OR b
However this rule was not followed by the XY GUI itself because the Bool marker was prepended to the Master Invert. A little mess. Good that's over.

Post Reply