Page 38 of 60

Re: Like a new feature? Say thanks here

Posted: 07 Sep 2015 12:18
by admin
SkyFrontier wrote:just missing <clp> instead of neverending boring <clipboard>... :whistle:
Oh yeah, me too! Wait, I'm the programmer... ... ...

Re: Like a new feature? Say thanks here

Posted: 07 Sep 2015 23:39
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:

Re: Like a new feature? Say thanks here

Posted: 09 Sep 2015 21:53
by highend
+ Scripting got a new function.
Name: ItemAtPos
Thanks for fulfilling my request!

Re: Like a new feature? Say thanks here

Posted: 09 Sep 2015 22:15
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 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Re: Like a new feature? Say thanks here

Posted: 09 Sep 2015 23:50
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:

Re: Like a new feature? Say thanks here

Posted: 09 Sep 2015 23:56
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).

Re: Like a new feature? Say thanks here

Posted: 10 Sep 2015 01:38
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. :)

Re: Like a new feature? Say thanks here

Posted: 11 Sep 2015 22:02
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:

Re: Like a new feature? Say thanks here

Posted: 12 Sep 2015 17:45
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:

Re: Like a new feature? Say thanks here

Posted: 12 Sep 2015 23:44
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.

Re: Like a new feature? Say thanks here

Posted: 14 Sep 2015 17:12
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.

Re: Like a new feature? Say thanks here

Posted: 14 Sep 2015 17:35
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.

Re: Like a new feature? Say thanks here

Posted: 14 Sep 2015 22:03
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?

Re: Like a new feature? Say thanks here

Posted: 14 Sep 2015 23:08
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.

Re: Like a new feature? Say thanks here

Posted: 15 Sep 2015 08:25
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.