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.


Topics - Ulfhednar

Pages: 1 [2] 3
26
Script / Rename profiles accessed by MS?
« on: December 24, 2016, 16:27:43 »
I see that it is possible to use filters in MS now & maybe dreamed this also applied to rename profiles..?
So far I cannot find anything related to MS calling rename filters though.
Perhaps it is a 'to do'?
If not please point me in the right direction! ;)

Meanwhile I will have to do it the old way,   ;D

Merry Xmas

27
Script / Extract text & save to file?
« on: November 27, 2016, 17:24:52 »
I wondered if I could make a script to search for files containing a string & output the found lines to a text file or clipboard.

I can see that the search & filter functions will find the file content but is it possible to grab the found lines & output them?

SaveStringToFile could be used to output the result but defining the str + parameters & deciding what to output is potentially a bit more complex. 
If I wanted to find any line that included a word or phrase, & output that whole line, can I do it or should I be looking at more complex tools?
e.g.
I want any line with 'cat'
I have a file with this content
Code: [Select]
the frog sat on the mat
the cat sat on the mat
the dog sat on the mat
the fox sat on the mat
the result output should be :- the cat sat on the mat
I assume I can use LF or CRLF to define lines or punctuation such as a full-stop to flag 'whole' lines.

I also like these options:-
  • save string(s) as list
  • save string list including filename (or name & path)
  • save string(s) from multiple files as list
  • Output list to clipboard
Hope that makes sense.
This may be too much for a MC script, but I'd like to play around with writing it if it is possible  :D

28
Beta Releases / Multi Commander 6.5 BETA - other
« on: November 14, 2016, 13:16:31 »
Thanks for the reply Mathias.  I am using b2282 - that is the most recent isn't it?

The selection bug-this is difficult to explain, it had occurred a while back and then in a recent release what I believed it to be was listed in the list of fixes & the problem 99% went away. I now cannot find the update list which included this fixed description.   :-\

Basically if you selected one or more files within a group and then moved/copied them to the opposite pane, selecting another block of files would often start from a random point in the collection of files.  This happened between dirs on the same physical disk+partition. (Maybe this is related to the delay in the 'grab focus thing?  All my disks say 100% okay & the FATs etc pass windows checkdisk tho...)

The focus of the last highlighted file would somehow randomly move so that a select+shift could start in a random location and a random selection of files would be highlighted for the next operation.  I suspected that the mouse cursor + overlay was involved. Difficult to explain it without videoing it.  It did occur once yesterday on a directory with a hundred files present.
E.g.
I select 10 files from a folder holding 100 files, I move these 10 files to the opposite pane;
I have highlighted another file as the copying operation occurs, I press shift and select the last file hi-lighting a new block;
the highlight grabs a random block which ends with my end selection click.
So the hi-lite selection grabs extra/different files

Code: [Select]
1
2-hi-lite
3-hi-lite
4-click
5-shift
6-shift
7-shift
8-shift
9-shift
10-shift+click - hi-lite
11
12
13
14
15
16
This could be really crazy sometimes adding dozens of extra files to the next operation.  Sometimes the selection would extend into off-screen area that could only be seen by using the scroll bar.  It wasn't really frequent & I couldn't decide how to describe it ....  then you seemed to fix it.
But maybe you meant something different & my PC is just trying to make my head explode... ::)

Grab focus-normally whilst the copy or move operation occurs I can select something else and begin or queue another operation from another dir.  Moving out of the current dir, whilst the initial op commences, now delays.
I must wait and MC will enter a 'not responding' state if I click 'up' to move up the tree, whilst it begins the copy or move operation.
I had wondered if this was due to the USB drives that I copied some items to but these are USB 3.0 drives on the USB 3.0 socket & it also happens between SATA hard disks within the system.
So I mean it is grabbing focus as it starts a function and this is preventing me from clicking on/doing anything else.

I have been resetting column width and then setting as default. But I maybe hadn't clicked save as default since installing the last beta ...I thought I had! 
I have now it seems to be okay!

OK on the Find switch/functionalities, I can wait  & use regex etc so it's not life-threatening (yet!)




29
Beta Releases / Multi Commander 6.4.x Issues
« on: August 04, 2016, 13:44:42 »
Just grabbed 6.4.3 b2232 (w7 x64)
I find that if I delete a folder the hi-lite bar jumps to the top of the window ".."rather than the old behaviour of going to the next item shown.  Bit annoying to be scrolling around when you have more than 50 folders :P

I noticed the d/l was very slow - serverside issue?  Or just overloaded?  Took 3 tries over about 40 minutes to eventually get the file.  Took more than 10mins to actually transfer.  Unusual!  .....Sorry, but I was desperate to see the latest build!!   ;)

Thanks Mathias.

****
I've found something else that is possibly related.
On selecting a file & opening rename the focus hi-lite can also jump to ".." sometimes.
This causes the rename dialog to open without any files being present in it.   ???

30
Feature Requests and Suggestions / Find Dialog mods
« on: June 12, 2016, 11:28:34 »
Wondering if it would be possible to add a couple of things to the find dialog some time.
  • When the 'Find Content' field is full from a previous use, a 'clear' button would be helpful in addition to the Regex tester button.
  • On the 'Load/Save' filters tab, the option to modify or update an existing entry.

31
I'm wondering how easy it would be to use the packer function to pack nested files & maintain the folder structure.
i.e.
Code: [Select]
folder 1
.\file abc.ext
.\folder 2
..\file def.ext
..\folder 3
...\file ghi.ext

packer would zip the files in place, writing output  to source -

Code: [Select]
folder 1
.\file abc.ext
.\file abc.zip
.\folder 2
..\file def.ext
..\file def.zip
..\folder 3
...\file ghi.ext
...\file ghi.zip

I wondered if this would be possible via 'flat-view', where I would select the files required & use the packer to pack & output to source.

My first attempt didn't work so now I'm thinking about script or CC, but I can see there may be a lot of variables for me to cover. 

I know flatview is still experimental, maybe this is something that 'should' work in the future?

32
Support and Feedback / Filter + Custom commands broken?
« on: May 13, 2016, 12:43:24 »
Using MC 6.2 b2147 on W7x64

So far I found that neither of these would work, when I added them to buttons: -

MC.Explorer.Selection.Select FILTER=*.zip;*.rar
MC.Filesystem.Delete FILTER="*.zip;*.rar"


I tried with " " & without.

...or is it me?  :-\

33
Support and Feedback / MC 6.1 2124 NODIALOG Switch broken?
« on: April 10, 2016, 10:14:27 »
Just ran the update to 6.1 2124 & I am finding that the button to which I have assigned the user defined command
MC.Explorer.Delete NODIALOG NEWQUEUE
now shows a dialog.

MC.Explorer.Move NODIALOG USEEXISTINGQUEUE
MC.Explorer.Copy NODIALOG USEEXISTINGQUEUE

-Work as before.

Something broken ?

34
Support and Feedback / Semi colon blocks search
« on: February 22, 2016, 18:25:42 »
I was stumped by search not working until I noticed the file names & sub folder names had ; in them.   ::)

Would it be possible to handle this character differently to allow search ops?

35
Support and Feedback / FTP weird behavior
« on: February 08, 2016, 19:29:56 »
Just a quick question on FTP.
I normally use Filezilla, but I saw that for uploading pics MC would be much better as it can show thumbs of the images.  So I have tried it on 2 different sites. 

In my attempts to use MC I find that it will start out OK but after a while seems to lock up during any transfer, it won't disconnect/reconnect & the connection 'drive letter' stays on the drive toolbar until MC is restarted.

I can restart MC & then reconnect OK, (but with loss of session partial transfers) but MC will then lock again....
I am leaving it on default settings & entering URL, login & pw etc. 

Any ideas?

Clash between NOOP & passive modes perhaps?

36
Support and Feedback / Config Backup
« on: December 12, 2015, 20:40:18 »
Had to do a clean OS install today & discovered the renaming profiles didn't get saved  :(
I shall be spending a while trying to rewrite those!  :P

Wondering if that is a known thing or my fault?
Also wonder if the tabs config (colours etc) should be exported too?

Have yet to notice any other missing settings, so I'm pretty sure it has worked otherwise  ;)

37
Script / MultiScript Name selection excluding file extension?
« on: November 28, 2015, 16:22:19 »
I'm wondering about how to exclude the file extension with multiscript.  (Obviously MultiRename has a switch for this.)

If I use GetSourceSelectedFileNames or similar, I get a complete name.
I thought about generating a list of files to clipboard without extensions & I thought about renaming using a regex but excluding the extension.

Whilst I can imagine using something like (pdf$|txt$) in the regex to force to an end of name, this is quite restrictive.
It would be nice if there is a way to target the process to the different parts <file>.<ext> to avoid some clashes.
e.g.
I have a pdf which the user has labelled document(pdf).pdf as the creator has their Windows settings on exclude showing extensions & uses extra filetype identification signals.
If I run a normal SAR in MS for pdf I'd lose both elements.


Is there anything like e.g. GetSourceSelectedFileNamesExcludeExt script function for file name selections? 
Or have I not found the way this is done?  ::)

EDIT
I am going to try StrSplit & a $anchor to see if I can target it to the correct regex selected elements... & PathGetNamePart is one of the things I should be thinking about!

38
Support and Feedback / Regex in Find Dialog broken?
« on: November 07, 2015, 10:36:38 »
I'm entering the following in the find dialog but cannot get it to work
e.g.
Find = *.txt
File Content= (?:word)
+switch= regexp
Returns nothing

Find = *.txt
File Content= word
+switch= (none)
Returns files containing 'word'

That form of regexp normally works or am I going mad again?
   :o
 ???

39
Support and Feedback / MC unRAR sometimes fails
« on: September 11, 2015, 12:14:36 »
Just an FYI
I have seen a few files made with WinRAR & 7zip that MC cannot read properly or extract of late.
Sometimes MC will show only folders not files within an archive, sometimes it will show an empty pane.

Not exactly sure why as WinRAR 5.x & 7zip will read & extract etc without any trouble.    ???

40
Feature Requests and Suggestions / Folder Icons Mod
« on: September 10, 2015, 14:03:58 »
I found this -
Shedko Folderico 4 RC12
http://sur.ly/o/eng.softq.org/folderico/AA005599

As it doesn't seem more complex than your file coloring system I wondered if you intended to implement anything similar e.g. using the file system coloring dialog. 



41
Support and Feedback / MDV click select
« on: July 25, 2015, 13:22:35 »
Using MDV via <F1> I find I can block select words/values with a double click.
If I click the view file icon on find results this function will only partially select the block, usually only 1 or 2 chars.
Can this be 'fixed'?

I'd also love to see a double-click/block select/copy to clipboard function in MDV.  Is that possible?

42
Support and Feedback / MC blocked by Comodo?
« on: April 19, 2015, 15:11:48 »
I just updated to 5.1.1 b1926 & it seemed quite happy.   (W7 x64)
I then updated comodo CIS & rebooted, now MC will not get past the splash screen - it's showing ''reading MC Config''.
Cannot force MC to close, must het reset to get rid of splash...
MC & MC dir are whitelisted in every aspect of CIS....
Any ideas? 
I am going to post on Comodo forums as well.

43
Script / 2 functions I'd like to see
« on: February 14, 2015, 13:30:58 »
Wondering if it is possible to add script commands for
set output file-size for the packer function - for disk spanning etc. (The existing GUI packer dialog could also benefit from an output file-size setting option)
Get string from the clipboard - I thought of a button for renaming a file with clipboard text & moving it to a target folder

Obviously if it is a lot of work then don't worry too much about it ;)

44
Beta Releases / MDV find field MC 4.5.1768
« on: September 10, 2014, 11:49:18 »
I noticed that multi-data viewer no longer refreshes the 'find' field after a search from the F3 search function.  It used to pass the search string used when looking for text in files.
This was a very useful feature please bring it back!   :)

45
Beta Releases / Crashes when running scripts 4.3.5 b1716
« on: July 12, 2014, 15:07:15 »
I have seen a few crashes since upgrading to 1716.
This happens when running scripts on multiple items [hi-lited file or folder selections] where the script performs multiple functions e.g. - rename; move.
These scripts were working OK previously & I haven't tried any of the latest scripting features yet.  Maybe this is a coincidence?

Windows reports -

Code: [Select]
Problem signature:
  Problem Event Name: APPCRASH
  Application Name: MultiCommander.exe
  Application Version: 4.3.5.1716
  Application Timestamp: 53bc1e55
  Fault Module Name: MultiCommander.exe
  Fault Module Version: 4.3.5.1716
  Fault Module Timestamp: 53bc1e55
  Exception Code: c000041d
  Exception Offset: 0000000000192f1a
  OS Version: 6.1.7601.2.1.0.256.1
  Locale ID: 2057
  Additional Information 1: 7776
  Additional Information 2: 7776b171d8f6376d2a0c9e49b8ea7df5
  Additional Information 3: b1c9
  Additional Information 4: b1c947b179b29ac26d1a69ec9aa81cc4

46
Feature Requests and Suggestions / Rename by list
« on: June 08, 2014, 13:55:42 »
Wondering if the multi-rename module can be made to import a .txt of names to use as a rename list?

The [N] field being replaced from the txt by strings separated by <CR>.
i.e. Each name would correspond to a specific line - file #7 rename from line #7 etc

Maybe this could be done with a script?  No idea where I'd start on that tho! 

47
Script / Select / deselect switch fault?
« on: June 03, 2014, 14:52:22 »
I'm trying to do a MS that will
  • select any zips
  • extract (& overwrite if req'd)
  • deselect
  • run a new function - eg new selection, rename & move on the extracted file
However the select / deselect command seems to malfunction.
Using the debugger to step through, this works:-

Code: [Select]
MC.Explorer.Select FILTER="*.zip"
MC.Explorer.Deselect FILTER="*.zip"

MC selects then deselects the zip(s)

However when I add an Unpack command:-

Code: [Select]
MC.Explorer.Select FILTER="*.zip"
MC.Filesystem.Unpack TARGET=${sourcepath} FILTER="*.*"
MC.Explorer.Deselect FILTER="*.zip"

MC reselects the zip at the end of the unpack routine. 
If it is a multi-part zip, MC will only select part 1, not the whole *.zip set at the end of the routine.

This means my next script commands do not get processed.
I also tried using MC.Explorer.Selection.Unselect & MC.Explorer.SetItemFocus but couldn't get away from the initial zip selection.

Also wondering about an 'overwrite' switch for the unpacker.  Can't find anything on MC.Filesystem.Unpack in the docs.

48
Script / Debugger in 4.3 hangs MC on error
« on: May 31, 2014, 19:17:04 »
I know the debugger is very #beta# right now but thought I'd mention this -

MC 4.3 1691
Playing with the debugger I found it now crashes MC if it encounters a 'serious' syntax error.
Previously hitting 'stop' button & seeing the debugging stopped msg was enough to detach the debugger.
The stop button now stays 'lit' & the debugger must be shut down with X.  MC window hangs with 'not responding' white-out & needs to be closed via X & following crash dialog.

I decided to play with this question to reawaken my script knowledge - http://forum.multicommander.com/forum/index.php/topic,1184.0.html
Adding a folder with date works OK.
Adding time to date creates a crash or a folder called $date. (Obviously I have not given the variables correctly  ::))
 
Adding the time variable seems a potential problem as HH:MM:SS obviously can't be used for a name/path, (:'s), but with or without : I find in calling the FormatTime function I will see the hour but MM for minutes....?  My fault?  [See pic]

It would be interesting to know if a folder name using multiple variables is possible, & how far I am off!  ;)

Using the following
Code: [Select]
@var $now = GetTime();
@var $date = FormatDate( "dd-MM-yyyy", $now );
@var $nowLocal = FormatTime( "HHMM", $now);
@var $folder;
@var $FolderBaseName = GetSourcePath();
@var $arr = {"$date", "$nowLocal"};


{
 $folder = $FolderBaseName ^ $arr;
 MC.Filesystem.Makedir PATH="{$folder}"
 }

Gives \$date  :o
(Debug screen attached)

49
Support and Feedback / Speed of Right Click Menu
« on: March 07, 2014, 14:35:04 »
I am noticing some variations in the speed of right click menu opening.
Some of the time it is quite quick or instant.  Sometimes it waits for a second+ before the dialog opens.
I assume this is Win7 shell related but wanted to check. 
BTW the OS is on an SSD so I expect things to be quicker in general. 
Maybe I can alter a Win7 setting to get better response overall?

50
Beta Releases / Crash on multiple copy ops
« on: January 01, 2014, 14:54:09 »
MC 3.9.9 b1600 x64
Whilst I was copying files to an external device, I ran the search routine, selected files & hit the move icon & MC crashed. Standard Win dialog - "Stopped responding / Close the program"

I had thought the ops would queue but maybe the copy/move function calls in the find dialog act a little differently....
Just thought you would want to know!

Happy New Year.

Pages: 1 [2] 3