Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Ulfhednar

Pages: 1 ... 15 16 17 18 [19] 20 21
451
Script / Re: Search routine
« on: July 31, 2013, 18:53:19 »
Thanks Mathias
The screen of my tool bar is posted - it shows the 'user commands' menu element is absent on my UI.  Can you not see it?

How do I make the debugger run a script on a file/folder to test the script? 
I need a window that allows me to run a script 'live' if you see what I mean. 

If I understand correctly I must -
  • create a button,
  • test it,
  • then, if wrong, edit it.
 

That is a lot of clicking around the dialogs so I would like a sandbox. (If it doesn't already exist in some form).

If I understand your advice, my script should be

$s = StrReplace( $s, " " , "." ?\d);

But it doesn't seem to work..  :-[



452
Script / Re: Search routine
« on: July 31, 2013, 13:05:59 »
Thanks for responding Mathias.

I was thinking my regex would be replaced by the modified string by Jungle.  But I don't think it targets spaces.
ie
1 2 3 4
to
1.2.3.4

I wanted to test it & edit (as with a sandbox), before creating a button (that didn't work several times!) - short on time... 
Just wanted to select a file/folder, run the script & if good then assign it a button.  Maybe the debugger does this & I haven't figured out how?

I thought there was something like a script test window, (maybe I recall something like that from XYplorer which I tried years ago?)
But I have just looked at my toolbar - the User Commands item shown on MC homepage is not visible!  ???  See attached
So maybe I am missing it!!  :)

453
Script / Re: Search routine
« on: July 30, 2013, 19:20:25 »
Continuing my rename & SAR experiments, I'm wondering about regex to MC script transposition.
e.g.
Number & space to number & '.'
((?:[0-9]+)+)\
\1.

I'm stealing Jungles earlier code & using a . :-
$n = StrRegExpFind( $s, ".?\d+$" );

& I've just realized I appear to need to define a button to run this or is there a field I'm missing/misusing that allows me to run a script on a selected file/folder.  Is there a script input window & if not, can I have one to play with in a future build?  :D

454
Script / Re: Search routine
« on: July 29, 2013, 17:20:27 »
Thanks for the info, I will need to try this out!   ;)

455
Script / Re: Search routine
« on: July 26, 2013, 23:22:34 »
Guess I'm not really surprised I decided to try the impossible, & so it's back to the drawing board for script ideas.... ;D

Good to know about the F1 - F10 feature I hadn't realized that was in there.  That will be useful. Thanks.

How many other features are there I don't know about, I wonder?  :P

456
Script / Search routine
« on: July 26, 2013, 19:11:46 »
Decided to attempt a script  -
I decided to try to script a button to search for todays jpgs

Code: [Select]
MC.FileSearch.Search SEARCHIN="${sourcepath}" SEARCHFOR="*.jpg"
This will get all jpgs in the active pane.  Date & tree-depth aren't pre-loaded.
What I wish to add is the search dialog parameters
a) for today from 00:00:00.
b) to search x subfolder levels.

If it is possible to send values to the search dialog I assume I will need something like
Code: [Select]
@var $t = GetTime();Then I need to import that & ignore hours/minutes values.
can I EXCLUDE= non $t values or StrIsEqual the 't' to select date matches?

Then I'd want to poke that into the search dialog settings....

That's as far as I have got & it shows how little I have of the language logic at the moment.

But if there was a saved/favorite search function I guess I wouldn't need this :)


457
Feature Requests and Suggestions / Re: Name as Folder?
« on: July 26, 2013, 18:11:15 »
@Mathias -
I will keep playing about.  Hopefully I will figure it out  ;)

@Jungle
That has worked perfectly.
I think I will use your example to try & learn this scripting a little.  :)


Maybe this thread should go to the Scripts section now?

458
OK thanks Mathias.
I guess it's maybe because the imgburn window doesn't like things dropped in the far left pane - so it blocks the drag.

I thought the script was unique & not a derivative, I will try to persevere with the docs, I'm just not 'feeling it' yet... :P

459
Thanks for the clarification Mathias.

5 sounds like it will be useful.  I am now starting to wonder how virtual folders vs tagging compares. 
More I use MC, the more I like your approach to many problems.  Your filtering system (bottom-right of file pane) is a life-saver that I haven't seen so effectively deployed elsewhere.
I suspect MC could be a lifetimes' work however! ;)


Don't want to hijack the thread with requests but I'd considered the following a while back & never got chance to request it -
MC focus grabbing - when I drag & drop e.g. from MC to imgburn, MC will take an always on top position.  Normally I have imgburn open & it will be overlapping on my tiny 23" monitor, so it can disappear backwards when I return to MC to drag files.
Is it possible to have click-hold-drag set to allow access but keep MC in it's current position, (without MC jumping forward)?

My other request had been adjusting the default state for the find dialog - I recall you were going to look into that.

As regards the tutorials I agree that the best way to learn is to try & do something with it.  Unfortunately I still find the available parameters too opaque to be able to imagine uses for the scripting. 
Jungle has proved it has great capabilities - so I need to dig deeper.

I think it's traditional to have a 'Hello World' but something like a rename instruction would be a useful basic introductions to syntax.
I didn't entirely follow jungles script in the 'name as folder' thread & couldn't find anything that guided me through it.  (I tried the debugger but that only shows some of the loops/links).  So something that explained what was happening where would help.  I can then extrapolate that logic I hope.
Is MC script a unique language or is there something I could look at which would give me a head start?  Maybe this sounds dumb, but I keep thinking of Perl (which I don't know at all) when I look at the scripts.  ::)

460
Feature Requests and Suggestions / Re: Name as Folder?
« on: July 26, 2013, 09:42:38 »
Thanks for the explanation Jungle.
I'd looked at that line but don't understand enough MCS syntax to recognize the correct elements yet. :-[

I will run a few tests later - I am pretty sure that for me, the inclusions/adjustments you have made will be faster for my normal routine than the rename tools, so again thanks a lot.  :)

461
I have a few thoughts on the requests lists:-

4 - would be something I'd also like to see.
5 - Is this like a 'virtual folders' kind of thing?
12 - I can see good reasons for the , vs ; debate, but would this impact the other uses of ; in MC?  (e.g. Multiple search locations)


As I usually only want features that require a lot of work  :P I am reticent about asking for/expecting them but -

  • I would like to be able to do multiple in-line renames without hitting <enter> between files.
    i.e. When I have one name in edit mode I can use the arrow keys to move the live edit field to another file.   The file left behind would auto save it's new name state.  Currently the arrow keys don't allow movement & focus shift.
  • I still would like the dialog mods I suggested elsewhere.  http://forum.multicommander.com/forum/index.php/topic,930.msg2834.html#msg2834
  • Generally I think I would benefit most from some scripting tutorials.


I don't want much do I?  ;D

462
Feature Requests and Suggestions / Re: Name as Folder?
« on: July 25, 2013, 18:43:50 »
Thanks Jungle  :) 
I tried it & used a date named folder & some "img_###.jpg" files.
I found I got
img_0040.jpg
to become
17-04-20130040.jpg

Which is 'almost' what I would like.  I saw you were able to use "_" as a separator in your 1st script.

Obviously I do not know how to write MC script (!!!) but I thought adding it as you have in #66 :
Code: [Select]
$s = StrReplace( $name, $mask, "_" + numtostr( $c ) );should work.
Looking through it I guessed entering the _ with the $prefix or the $name might deploy the _ correctly.
e.g "_" $prefix,
but it didn't work.


Having looked at the currently posted docs I am unclear what I might do to alter my output string with added fixed characters.  (In this case _). 
I can see that being able to script patterns of characters added to folder names could be really useful for things like image files. 
The scripting of buttons offers me a lot of possibilities & is an interesting tool. But logically, I probably should use the batch rename instead. 

I would appreciate any advice if you have the opportunity.  I'm not seeing what I personally need in the current script documentation.  I'd like a few walk-thrus.  (Maybe that needs to go on the request list for the next release?)








463
Feature Requests and Suggestions / Re: Name as Folder?
« on: July 24, 2013, 23:30:06 »
Thanks Jungle for a nice script! :)
I see  it contains more functions than just getting & implanting the dir name. 
I like the numbering/counter for multiple files of the same type - especially as the numbering allows for pre-existing files of the same name.

The following is worth noting as it could cause issues:-
It isn't exclusive of folders, if I 'accidentally' click a sub-folder it will rename as parent dir also.
When I renamed a bunch of jpgs, it dropped the already present numbers & used it's own counter. 

I mention it as something a scripting wizard might consider, an advisory to anyone else trying this & as something I should try & figure out... 

For pre-existing numerals - how easy is it to exclude already present numbers?  (e.g. as with a regex)
Maybe I'd need a 2nd script...
Not saying you should write me one, just wondering as I want to play around with this but need some pointers.  ::) :P
-I must find time to learn this multi-scripting & this is an incentive!!

You have given me a good start to look more closely at the MC scripts & a great new functionality for my MC.   ;D

464
Feature Requests and Suggestions / Name as Folder?
« on: July 23, 2013, 14:31:36 »
Is it possible for me to run a script that would name files as their parent folder?  This would be a command I could allocate to a button ideally.
e.g.
\tortoise
file.avi

to

\tortoise
tortoise.avi

or (more tricky)

\Flowers
file01.jpg
file02.jpg

to

\Flowers
Flowers01.jpg
Flowers02.jpg

I can see that I would also need to run a numbering routine in this example unless I can exclude numerals somehow.

465
Feature Requests and Suggestions / Re: 2 Dialog changes
« on: July 23, 2013, 14:19:26 »
Thanks Mathias.
Yes MS copy dialogs aren't very aesthetic nor do they hi-lite things as I would like.  I think a lot of my preferences would need to override native explorer behaviour which may be beyond the scope of your prog/available time. 
I guess it would require a lot of coding to fully hook MC into the OS to eliminate the everlasting poor Win Explorer features & clutter. 
Its now W8 & MS still don't recognize a need for multi pane. ::)


Wow! That nukes loads of things.  Bit overkill for my current needs, even my cmd-line startup got eaten.
Now all I've got to do is reconfigure some things .... & I will be good to go ;D

466
Feature Requests and Suggestions / 2 Dialog changes
« on: July 06, 2013, 18:15:53 »
I have a couple of requests, (don't know if they are already planned) :-
  • when copying/moving files - if a source file matches a file at the destination, any differences are shown in high-lighted text on the dialog.  This could be a different color or bold type etc.   (eg - in area high-lighted on attached image).
  • When running a search, I'd the like to be able to edit/clear the old search history list - i.e. the drop-down in the 'look for' field

467
Support and Feedback / Re: Install corrupted b1430?
« on: June 19, 2013, 17:25:52 »
Me neither.
Could the Java update have interfered?

Thanks anyway. ;)

468
Support and Feedback / Re: Install corrupted b1430?
« on: June 19, 2013, 14:57:21 »
I have used the default install path
 C:\Users\...\AppData\Local\MultiCommander
but I noticed in the start/programs list I have multi commander & multicommander listed. (?)  Killed both sets of entries.

Ran an AV scan & it's all OK.
I scanned the registry for any multicommander references & del'd them
I've downloaded a fresh installer & now it's finally installed :D 
But I just ran a comparison on the 2 installers & it says byte for byte identical :o

I am confused but it looks like MC is back.

469
Support and Feedback / Re: Install corrupted b1430?
« on: June 19, 2013, 14:11:42 »
Thanks for fast response Mathias.

Removed entry in programs & features
Booted outside of the OS & deleted the files.

I don't see how it is locked as I have admin permissions & am admin
but when I run the install I get the error again - mcadmin.exe isn't even visible in the install dir
I used process explorer & I see the only MC install files running.

I updated Java last night - could that be doing something?

470
Support and Feedback / Install corrupted b1430?
« on: June 19, 2013, 12:31:12 »
I found after update to b1430 many extensions (only 'find' left), & tools (tools menu cut off after 'to clipboard' option) had disappeared.
Can't update so tried uninstall/reinstall, Uninsall said it completed but items remain.
Running installer then says files can't be overwritten (mcadmin.exe etc)

Tried to manual delete in the dir & several files refuse to be deleted - admin permissions req'd.
I am the admin ...
Tried to reinstall & I get 'already installed' that loops to 'install again' when I try to run the installer.  :-\

Any way round this?  I can run a separate USB install I guess, but would like to remove the existing HDD package & start again.

471
Support and Feedback / Re: tabbed_startup.ini
« on: June 11, 2013, 08:56:36 »
Think I figured it out.
When I updated I didn't add the cmd line syntax to the shortcut again.  & I haven't thought to check it since!  Doh!  ::)

Thanks Mathias.

472
Support and Feedback / Re: tabbed_startup.ini
« on: June 10, 2013, 22:41:08 »
Thanks for the fast reply.
Version 3.1 1401 x64
As my working folders tend to be mostly the same I didn't notice this was occurring for a while.
I'm using this format -

Code: [Select]
[PANEL_1]
Path=F:\
Side=L
ShowTree=1
Locked=0

[PANEL_2]
Path=I:\
Side=L

etc

473
Support and Feedback / tabbed_startup.ini
« on: June 10, 2013, 18:02:22 »
I made up a tabbed_startup.ini & I believe it worked previously. Now after recent update it is now over-ridden by last layout on new start.  (new instance or fresh boot).

Is there a switch for this or is last config/layout always prioritized?
TiA

474
Support and Feedback / Re: Crash on Find Files with wrong input
« on: May 02, 2013, 14:31:37 »
I had a crash following a find routine that contained a term that didn't exist in the searched drive.
Similar type of event I guess.

475
Thanks Mathias, I have not had time to fully read it all yet.
I think I need to find some samples so that I can extrapolate how to deploy some of these features.
I usually learn best when I actually want to do something specific, & then find the holes in my understanding.

Pages: 1 ... 15 16 17 18 [19] 20 21