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 - pncdaspropagandas

Pages: 1 [2]
26
Support and Feedback / Buttons and tab focus
« on: July 18, 2017, 15:27:28 »
Hi,

When I click a button on the button bar, let's say to select files with same extension, then the files are selected but the tab/panel looses focus.

I have to carefully click on a grey area to focus the tab/panel again and then, let's say delete the files pressing del on the keyboard.

Is there a way not to loose focus?

Thanks

27
Documentation / Re: Go To Link Target
« on: July 18, 2017, 14:06:26 »
Hi Mathias,

I just want to inform that the documentation is misspelled.

The function GetLinkTarget is actually GetFSLinkTarget

And the
<num> GetFSLinkType( <str> path, <str> fileProp );
should be
<num> GetFSLinkType( <str> path );
I think (as it seems a copy paste from the function above)

28
Script / Go To Link Target
« on: February 10, 2017, 19:22:28 »
I did a script that when focusing on a Shortcut / Symbolic Link / Hardlink / Junction it navigates to it's target.

It's a mix of MC Script, Python and an executable (because it seems no one care about enumerating hardlinks targets)

If there's more than 2 instances of a hardlink or junction, the script asks the user witch one he likes.

I'm posting the main Python code (I used some custom libs I did). If people get interested I can post the full code.

MC Script:
@var $source_focus_path = '"' + GetSourceFocusPath() + '"';
@var $python_script_path;
@var $link_target;
@var $link_target_temp_file;
@var $link_target_file_size;
@var $findlinks_path;
@var $aux[];
@var $aux2;

$python_script_path = '"' + GetTagValue("${mcinstallpath}") ^ 'Tools\Links\Resolve Link.py' + '"';
$link_target_temp_file = GetTagValue("${mcinstallpath}") ^ 'Tools\Links\link_target.txt';
$findlinks_path = '"' + GetTagValue("${mcinstallpath}") ^ 'Tools\Links\Hardlink\FindLinks.exe' + '"';


if (FileExists($link_target_temp_file) == 1)
{
   $aux = {"NOPROGRESS", "NODIALOG", "SILENT"};
   DeleteFile($link_target_temp_file, $aux);
}

// There's a bug in StrReplace when using ^ in parameter
$aux2 = '^"';
$python_script_path    = StrReplace($python_script_path, '"', $aux2);
$source_focus_path     = StrReplace($source_focus_path, '"', $aux2);
$findlinks_path        = StrReplace($findlinks_path, '"', $aux2);
$link_target_temp_file = StrReplace($link_target_temp_file, '"', $aux2);
// Run Python script to get link target and store it in a temp file
LogAppInfo('"H:\Programas\MultiCommander - Projetos\Tools\Command Line Utilities\nircmd\nircmd_x64.exe" execmd "^"C:\Python35\python.exe^" ' + $python_script_path + ' ' + $source_focus_path + ' ^"' + $link_target_temp_file + '^" ' + $findlinks_path + '"');
MC.Run CMD='"H:\Programas\MultiCommander - Projetos\Tools\Command Line Utilities\nircmd\nircmd_x64.exe"' ARG={'execmd "^"C:\Python35\python.exe^" ' + $python_script_path + ' ' + $source_focus_path + ' ^"' + $link_target_temp_file + '^" ' + $findlinks_path + '"'} WAIT

// Clear selected files in the case of the link target being on the same folder
arrayAdd($aux, '');
SetSourceSelected($aux, 1);

// Ao rodar o nircmd ele retorna o sinal de terminado para o MultiComander antes de o Python ter terminado de rodar
// Então temos que esperar manualmente até o Python ter terminado de rodar
// A cada 50ms checamos se o arquivo $link_target_temp_file foi criado, até um timeout de 1s
@var $n;
for ($n = 0; $n < 20; $n++)
{
   if (FileExists($link_target_temp_file) == 1)
   {
      break;
   }
   Sleep(50);
}

// Go to target
if (FileExists($link_target_temp_file) == 1)
{
   Sleep(100);
   
   //LogAppInfo($link_target_temp_file);
   $link_target_file_size = GetFileSize($link_target_temp_file);
   if ($link_target_file_size > 0)
   {
      $link_target = LoadStringFromFile($link_target_temp_file);
      //LogAppInfo($link_target);
      
      // Delete temp file
      $aux = {"NOPROGRESS", "NODIALOG", "SILENT"};
      //DeleteFile($link_target_temp_file, $aux);
      
      // Clear selected files in the case of the link target being on the same folder
      arrayAdd($aux, '');
      SetSourceSelected($aux, 1);
      
      // As Mathias said here http://forum.multicommander.com/forum/index.php/topic,1929.0.html
      // "the UI can't be updated until the script is finished since the script is running in the same thread"
      // So there's no way to break going to the folder, then selecting the file in 2 operations
      // We can do it in 1 go using MC.RunCmd ID="Core.1312" that is CTRL+V with the target path on the clipboard
      // The ony downside is that we loose the clipboard content
      SetClipboardText($link_target);
      
      // Check if there's more than 1 link target (hardlinks and junctions)
      @var $link_targets[] = StrLines2Array($link_target);
      // If more than 1, ask the user
      if (arrayCount($link_targets) > 1)
      {
         @var $link_targets_answer = AskOption('Select target', $link_targets, 0);
         if ($link_targets_answer == -1)
         {
            // User cancelled
            break;
         }
         SetClipboardText($link_targets[$link_targets_answer]);
      }
      
      // Go To Link Target
      MC.RunCmd ID="Core.1312"
   }
   else
   {
      LogAppInfo('Error');
   }

}
else
{
   MessageBox('Resolve Link', 'Operation timeout', 0);
}


Python:

# -*- coding: utf-8 -*-

# argv[1] = link file/folder path
# argv[2] = path to exchange text file with Multi Commander
# argv[3] = path to FindLinks.exe

# argv[1] can't end with /
# Doesn't work when running inside Multi Commander and argv[1] is a symbolic link inside a junction (but it works inside cmd for example)

import sys
import os
import win32com.client
import mylib.windows.windows as lib_windows
import mylib.files.file_handling as lib_file_handling

file = open(sys.argv[2], 'w')

if sys.argv[1][-3:].lower() == 'lnk':
    print('Shortcut detected')
    shell = win32com.client.Dispatch("WScript.Shell")
    shortcut = shell.CreateShortCut(sys.argv[1])
    print(shortcut.Targetpath)
    file.write(shortcut.Targetpath)

elif os.path.islink(sys.argv[1]):
    print('Symbolic Link detected')
    link_target = lib_file_handling.get_symlink_target(sys.argv[1])
    if link_target is not None:
        print(link_target)
        file.write(link_target)

elif lib_file_handling.is_junction(sys.argv[1]):
    print('Junction detected')
    link_target = lib_file_handling.get_junction_target(sys.argv[1])
    print(link_target)
    file.write(link_target)

elif os.stat(sys.argv[1]).st_nlink > 1:
    print('Hard Link detected')
    stdout, stderr, returncode = lib_windows.run_command_line('"' + sys.argv[3] + '" "' + sys.argv[1] + '"')
    findlinks_return = stdout.splitlines()
    if int(findlinks_return[7][8:]) > 0:
        for line in range(10, len(findlinks_return)):
            if findlinks_return[line].lower() != sys.argv[1].lower():
                print(findlinks_return[line])
                file.write(findlinks_return[line] + '\n')

file.close()

And the executable is here https://technet.microsoft.com/en-us/sysinternals/hh290814

29
Support and Feedback / AutoResize column
« on: February 07, 2017, 18:45:32 »
I am using Explorer Style along with List View.

I click on the name column header with the right mouse button and click on AutoResize columns but there's no effect. I'd like the name column size to adjust to the biggest filename so I see the whole filename and no waste on space with a too big column.

Is it possible?

Thanks

30
Support and Feedback / StrReplace
« on: February 02, 2017, 18:46:49 »
In a MultiScript when I run

$python_script_path = StrReplace($python_script_path, '"', 'x');
it runs fine

but if I run
$python_script_path = StrReplace($python_script_path, '"', '^"');
it reports an error to Log Window

further, If I create a var with '^"' and use it like
$python_script_path = StrReplace($python_script_path, '"', $aux);
it runs fine also

I think there's something wrong there

31
Support and Feedback / Selecting files
« on: February 02, 2017, 16:37:10 »
When I go to a folder with 3 or more files and do the following:

- Press END
- Hold SHIFT
- Press UP

MC selects all files except the last one.

My desired behavior would be selecting the 2 last files.

Is this a bug or a desired behavior?

Thanks

32
Script / Select Same Name (Selected Files)
« on: February 02, 2017, 10:44:54 »
I wrote a Multi Script to extend the Select Same Name to All Selected Files:

@var $selected_files[] = GetSourceSelectedPaths();
@var $same_name_files[];
@var $same_name_files_iteration[];

@var $n;
@var $i;
@var $aux;

for ($n = 0; $n < arrayCount($selected_files); $n++)
{
    MC.Explorer.SetItemFocus ITEM={PathGetNamePart($selected_files[$n])}
    MC.RunCmd ID="ExplorerPanel.40308"
   
    // SetItemFocus causes the selected files in panel to be unselected
    // only the focused file gets selected
    // so we have to add it to a array and re-select them at the end
    $same_name_files_iteration = GetSourceSelectedFileNames();
    for ($i = 0; $i < arrayCount($same_name_files_iteration); $i++)
    {
        $aux = $same_name_files_iteration[$i];
        arrayAdd($same_name_files, $aux);
    }
}

SetSourceSelected($same_name_files, 0);

33
User Contributed Content / Notepad++ MCS Language Support
« on: January 29, 2017, 03:59:48 »
Hi,

I compiled the reserved words, function names etc and created a file to import to Notepad++ and have colored text to help coding.

I want to say thanks to Mathias for the lovely file manager.

Save the following code to a xml file and import in Notepad++

<NotepadPlus>
    <UserLang name="MultiCommander" ext="mcs" udlVersion="2.1">
        <Settings>
            <Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="2" decimalSeparator="0" />
            <Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="yes" Keywords8="yes" />
        </Settings>
        <KeywordLists>
            <Keywords name="Comments">00# 00// 01 02 03 04</Keywords>
            <Keywords name="Numbers, prefix1"></Keywords>
            <Keywords name="Numbers, prefix2"></Keywords>
            <Keywords name="Numbers, extras1"></Keywords>
            <Keywords name="Numbers, extras2"></Keywords>
            <Keywords name="Numbers, suffix1"></Keywords>
            <Keywords name="Numbers, suffix2"></Keywords>
            <Keywords name="Numbers, range"></Keywords>
            <Keywords name="Operators1">^ + - * / = == ! != &lt; &gt; ( ) { } ; </Keywords>
            <Keywords name="Operators2"></Keywords>
            <Keywords name="Folders in code1, open">(</Keywords>
            <Keywords name="Folders in code1, middle"></Keywords>
            <Keywords name="Folders in code1, close">)</Keywords>
            <Keywords name="Folders in code2, open">{</Keywords>
            <Keywords name="Folders in code2, middle"></Keywords>
            <Keywords name="Folders in code2, close">}</Keywords>
            <Keywords name="Folders in comment, open"></Keywords>
            <Keywords name="Folders in comment, middle"></Keywords>
            <Keywords name="Folders in comment, close"></Keywords>
            <Keywords name="Keywords1">array initialization&#x000D;&#x000A;arrayCount&#x000D;&#x000A;arrayAdd&#x000D;&#x000A;arrayRemove&#x000D;&#x000A;arrayFind&#x000D;&#x000A;arrayIFind&#x000D;&#x000A;ArraySort&#x000D;&#x000A;StrLines2Array&#x000D;&#x000A;StrLinesArray2String&#x000D;&#x000A;StrTokenize2Array&#x000D;&#x000A;StrLen&#x000D;&#x000A;StrSub&#x000D;&#x000A;StrFind&#x000D;&#x000A;StrRFind&#x000D;&#x000A;StrReplace&#x000D;&#x000A;StrToUpper&#x000D;&#x000A;StrToLower&#x000D;&#x000A;StrTrim&#x000D;&#x000A;StrTrimLeft&#x000D;&#x000A;StrTrimRight&#x000D;&#x000A;StrSplit&#x000D;&#x000A;StrCompareNoCase&#x000D;&#x000A;operator ==&#x000D;&#x000A;StrIsEqual&#x000D;&#x000A;StrIsEqualNoCase&#x000D;&#x000A;StrIsWildMatch&#x000D;&#x000A;StrIsWildMatchNoCase&#x000D;&#x000A;StrIsRegExpMatch&#x000D;&#x000A;StrIsRegExpMatchNoCase&#x000D;&#x000A;StrRegExpFind&#x000D;&#x000A;RowListLoad&#x000D;&#x000A;RowListClose&#x000D;&#x000A;RowListCount&#x000D;&#x000A;RowListColumnCount&#x000D;&#x000A;RowListArray&#x000D;&#x000A;RowListItem&#x000D;&#x000A;ReplaceTagsInString&#x000D;&#x000A;GetTime&#x000D;&#x000A;FormatDate&#x000D;&#x000A;FormatTime&#x000D;&#x000A;TimeLocal2UTC&#x000D;&#x000A;TimeUTC2Local&#x000D;&#x000A;ParseDateTime&#x000D;&#x000A;GetFileTime&#x000D;&#x000A;SetFileTime&#x000D;&#x000A;IsFolder&#x000D;&#x000A;FileExists&#x000D;&#x000A;GetFileSize&#x000D;&#x000A;GetFileProp&#x000D;&#x000A;FindFirstFile&#x000D;&#x000A;FindFiles&#x000D;&#x000A;GetFileAttributes&#x000D;&#x000A;AddFileAttributes&#x000D;&#x000A;RemoveFileAttributes&#x000D;&#x000A;SetFileAttributes&#x000D;&#x000A;HasFileAttributes&#x000D;&#x000A;CopyFile&#x000D;&#x000A;MoveFile&#x000D;&#x000A;RenameFile&#x000D;&#x000A;UnpackFile&#x000D;&#x000A;PackFile&#x000D;&#x000A;DeleteFile&#x000D;&#x000A;DeleteFiles&#x000D;&#x000A;MakeDir&#x000D;&#x000A;FilterCreate&#x000D;&#x000A;FilterAddRule&#x000D;&#x000A;FilterLoad&#x000D;&#x000A;FilterLoadById&#x000D;&#x000A;FilterSave&#x000D;&#x000A;FilterIsMatch&#x000D;&#x000A;PathGetPathPart&#x000D;&#x000A;PathGetNamePart&#x000D;&#x000A;PathGetFileExtPart&#x000D;&#x000A;PathGetParts&#x000D;&#x000A;PathMakeRelativeMC&#x000D;&#x000A;PathMakeAbsoluteMC&#x000D;&#x000A;PathTranslatePath&#x000D;&#x000A;NetWGet&#x000D;&#x000A;RegKeyExists&#x000D;&#x000A;RegKeyAdd&#x000D;&#x000A;RegKeyDel&#x000D;&#x000A;RegKeyFind&#x000D;&#x000A;RegKeyFindRegExp&#x000D;&#x000A;RegValueExists&#x000D;&#x000A;RegValueAdd&#x000D;&#x000A;RegValueDel&#x000D;&#x000A;RegValueFind&#x000D;&#x000A;RegValueFindRegExp&#x000D;&#x000A;RegValueGetSZ&#x000D;&#x000A;RegValueGetDWORD&#x000D;&#x000A;GetSelectedFileNames&#x000D;&#x000A;GetSelectedPaths&#x000D;&#x000A;GetSourceSelectedFileNames&#x000D;&#x000A;GetTargetSelectedFileNames&#x000D;&#x000A;GetSourceSelectedPaths&#x000D;&#x000A;GetTargetSelectedPaths&#x000D;&#x000A;GetSourcePath&#x000D;&#x000A;GetTargetPath&#x000D;&#x000A;GetSourceFocusPath&#x000D;&#x000A;GetTargetFocusPath&#x000D;&#x000A;GetSourceFocusName&#x000D;&#x000A;GetTargetFocusName&#x000D;&#x000A;GetSourceItems&#x000D;&#x000A;GetTargetItems&#x000D;&#x000A;SetSourceSelected&#x000D;&#x000A;SetTargetSelected&#x000D;&#x000A;Sleep&#x000D;&#x000A;Log&#x000D;&#x000A;LogDump&#x000D;&#x000A;LogDumpArray&#x000D;&#x000A;LogAppInfo&#x000D;&#x000A;MessageBox&#x000D;&#x000A;AskText&#x000D;&#x000A;AskOption&#x000D;&#x000A;SaveArray&#x000D;&#x000A;LoadArray&#x000D;&#x000A;SaveStringToFile&#x000D;&#x000A;LoadStringFromFile&#x000D;&#x000A;GetClipboardText&#x000D;&#x000A;SetClipboardText&#x000D;&#x000A;GetTagValue&#x000D;&#x000A;TranslateEnvString&#x000D;&#x000A;FTPConnect&#x000D;&#x000A;FTPChdir&#x000D;&#x000A;FTPMkdir&#x000D;&#x000A;FTPRmdir&#x000D;&#x000A;FTPRemove&#x000D;&#x000A;FTPRename&#x000D;&#x000A;FTPList&#x000D;&#x000A;FTPListCount&#x000D;&#x000A;FTPListGet&#x000D;&#x000A;FTPExists&#x000D;&#x000A;FTPPutFile&#x000D;&#x000A;FTPGetFile&#x000D;&#x000A;FTPCommandRaw&#x000D;&#x000A;FTPQuit&#x000D;&#x000A;ChkSum_Calculate</Keywords>
            <Keywords name="Keywords2">@var&#x000D;&#x000A;new</Keywords>
            <Keywords name="Keywords3">import&#x000D;&#x000A;if&#x000D;&#x000A;else&#x000D;&#x000A;for&#x000D;&#x000A;while&#x000D;&#x000A;break&#x000D;&#x000A;continue&#x000D;&#x000A;return&#x000D;&#x000A;function&#x000D;&#x000A;class</Keywords>
            <Keywords name="Keywords4">${date:&#x000D;&#x000A;${time:&#x000D;&#x000A;${param:&#x000D;&#x000A;${focusfilepath}&#x000D;&#x000A;${targetpath}&#x000D;&#x000A;${sourcepath}&#x000D;&#x000A;${targetdevice}&#x000D;&#x000A;${sourcedevice}&#x000D;&#x000A;${sourcefocuspath}&#x000D;&#x000A;${targetfocuspath}&#x000D;&#x000A;${sourcefocusname}&#x000D;&#x000A;${targetfocusname}&#x000D;&#x000A;${leftpath}&#x000D;&#x000A;${leftfocuspath}&#x000D;&#x000A;${leftfocusname}&#x000D;&#x000A;${rightpath}&#x000D;&#x000A;${rightfocuspath}&#x000D;&#x000A;${rightfocusname}&#x000D;&#x000A;${mcinstallpath}&#x000D;&#x000A;${mcappdatapath}&#x000D;&#x000A;${mclogpath}&#x000D;&#x000A;${mcconfigpath}&#x000D;&#x000A;${mcuserappdata}</Keywords>
            <Keywords name="Keywords5">Sleep&#x000D;&#x000A;Log&#x000D;&#x000A;LogDump&#x000D;&#x000A;LogDumpArray&#x000D;&#x000A;LogAppInfo&#x000D;&#x000A;MessageBox&#x000D;&#x000A;AskText&#x000D;&#x000A;AskOption&#x000D;&#x000A;SaveArray&#x000D;&#x000A;LoadArray&#x000D;&#x000A;SaveStringToFile&#x000D;&#x000A;LoadStringFromFile&#x000D;&#x000A;GetClipboardText&#x000D;&#x000A;SetClipboardText&#x000D;&#x000A;GetTagValue&#x000D;&#x000A;TranslateEnvString&#x000D;&#x000A;MC.Run&#x000D;&#x000A;MC.RunUserCmd&#x000D;&#x000A;MC.RunCmd&#x000D;&#x000A;MC.CmdLineSet&#x000D;&#x000A;MC.CmdLineRun&#x000D;&#x000A;MC.View&#x000D;&#x000A;MC.Edit&#x000D;&#x000A;MC.SetActivePanel&#x000D;&#x000A;MC.SetActiveTab&#x000D;&#x000A;MC.CloseAllTabs&#x000D;&#x000A;MC.SaveTabs&#x000D;&#x000A;MC.LoadTabs&#x000D;&#x000A;MC.ChangeTabSession&#x000D;&#x000A;MC.XChangeSettings&#x000D;&#x000A;MC.BindKey&#x000D;&#x000A;MC.UnBindKey&#x000D;&#x000A;MC.ShowFavWindow&#x000D;&#x000A;MC.ShowFavPopup&#x000D;&#x000A;MC.ShellPaste&#x000D;&#x000A;MC.LoadButtonPanelLayout&#x000D;&#x000A;MC.Filesystem.Rename&#x000D;&#x000A;MC.Filesystem.Delete&#x000D;&#x000A;MC.Filesystem.Makedir&#x000D;&#x000A;MC.Filesystem.PackFiles&#x000D;&#x000A;MC.Filesystem.Unpack&#x000D;&#x000A;MC.Explorer.NewBrowser&#x000D;&#x000A;MC.Explorer.CloseAll&#x000D;&#x000A;MC.Explorer.Goto&#x000D;&#x000A;MC.Explorer.Select&#x000D;&#x000A;MC.Explorer.Deselect&#x000D;&#x000A;MC.Explorer.Refresh&#x000D;&#x000A;MC.Explorer.RefreshTree&#x000D;&#x000A;MC.Explorer.Copy&#x000D;&#x000A;MC.Explorer.Delete&#x000D;&#x000A;MC.Explorer.Move&#x000D;&#x000A;MC.Explorer.Makedir&#x000D;&#x000A;MC.Explorer.SetViewFilter&#x000D;&#x000A;MC.Explorer.GetViewFilter&#x000D;&#x000A;MC.Explorer.SetColumns&#x000D;&#x000A;MC.Explorer.SetViewMode&#x000D;&#x000A;MC.Explorer.SetTabProp&#x000D;&#x000A;MC.Explorer.Sort&#x000D;&#x000A;MC.Explorer.SizeFolder&#x000D;&#x000A;MC.Explorer.SetItemFocus&#x000D;&#x000A;MC.Explorer.SetColoringRules&#x000D;&#x000A;MC.Explorer.RefreshColoringRules&#x000D;&#x000A;MC.Explorer.ChangeSetting&#x000D;&#x000A;MC.Explorer.Selection.Select&#x000D;&#x000A;MC.Explorer.Selection.Unselect&#x000D;&#x000A;MC.Explorer.Selection.SelectAll&#x000D;&#x000A;MC.Explorer.Selection.UnselectAll&#x000D;&#x000A;MC.Explorer.Selection.InvertSelection&#x000D;&#x000A;MC.Explorer.Selection.SelectByColor&#x000D;&#x000A;MC.Explorer.Selection.UnselectByColor&#x000D;&#x000A;MC.Explorer.Selection.SaveSelectionToMemory&#x000D;&#x000A;MC.Explorer.Selection.LoadSelectionFromMemory&#x000D;&#x000A;MC.Explorer.Selection.SaveSelectionToFile&#x000D;&#x000A;MC.Explorer.Selection.LoadSelectionFromFile&#x000D;&#x000A;MC.Explorer.Selection.LoadSelectionFromClipboard&#x000D;&#x000A;MC.Explorer.Selection.CompareFoldersForDuplicates&#x000D;&#x000A;MC.Explorer.Selection.CompareFoldersForSelected&#x000D;&#x000A;MC.Explorer.Selection.CompareFoldersForMissingAndNewer&#x000D;&#x000A;MC.Explorer.Selection.CompareFoldersForMissing&#x000D;&#x000A;MC.Explorer.Selection.CompareFoldersForNewest&#x000D;&#x000A;MC.FileSearch.Search&#x000D;&#x000A;MC.Special.SelectOldestByName&#x000D;&#x000A;MC.Utils.CreateLink&#x000D;&#x000A;MC.Utils.SortLines&#x000D;&#x000A;MC.Utils.FindAndReplace&#x000D;&#x000A;MC.CheckSum.Verify&#x000D;&#x000A;MC.CheckSum.Create&#x000D;&#x000A;MC.DataViewer.View&#x000D;&#x000A;MC.PictureTools.Convert&#x000D;&#x000A;MC.PictureTools.Resize</Keywords>
            <Keywords name="Keywords6">ADD&#x000D;&#x000A;ADMIN&#x000D;&#x000A;ALL&#x000D;&#x000A;ALLSELECTED&#x000D;&#x000A;ARG&#x000D;&#x000A;ASADMIN&#x000D;&#x000A;ASCII&#x000D;&#x000A;ASKNAME&#x000D;&#x000A;ASYNC&#x000D;&#x000A;ATTRIBUTE&#x000D;&#x000A;AUTO&#x000D;&#x000A;AUTORELOAD&#x000D;&#x000A;AUTOSTART&#x000D;&#x000A;BGCOLOR&#x000D;&#x000A;BINARY&#x000D;&#x000A;CHECKSUM&#x000D;&#x000A;CMD&#x000D;&#x000A;COL&#x000D;&#x000A;COLNAME&#x000D;&#x000A;COLOR&#x000D;&#x000A;CONTENT&#x000D;&#x000A;CURRENT&#x000D;&#x000A;DATEFORMAT&#x000D;&#x000A;DELETE&#x000D;&#x000A;DONOTASK&#x000D;&#x000A;EDITAS&#x000D;&#x000A;ENCODING&#x000D;&#x000A;ENDATWHITESPACE&#x000D;&#x000A;ENDCHAR&#x000D;&#x000A;EXCLUDE&#x000D;&#x000A;FILE&#x000D;&#x000A;FILENAME&#x000D;&#x000A;FILES&#x000D;&#x000A;FILTER&#x000D;&#x000A;FILTERID&#x000D;&#x000A;FIND&#x000D;&#x000A;FLAT&#x000D;&#x000A;FOCUS&#x000D;&#x000A;FOLDERNAME&#x000D;&#x000A;FOLDERS&#x000D;&#x000A;FONT&#x000D;&#x000A;FONTSIZE&#x000D;&#x000A;FORCEREBUILD&#x000D;&#x000A;FORCEUPDATE&#x000D;&#x000A;FORCEUTF8&#x000D;&#x000A;FORMAT&#x000D;&#x000A;FORMAT_1&#x000D;&#x000A;GOTO&#x000D;&#x000A;HEIGHT&#x000D;&#x000A;HEX&#x000D;&#x000A;HIDE&#x000D;&#x000A;HIGHLIGHT&#x000D;&#x000A;ID&#x000D;&#x000A;IGNORECASE&#x000D;&#x000A;ITEM&#x000D;&#x000A;ITEMSEP&#x000D;&#x000A;JPGQUALITY&#x000D;&#x000A;KEEPBACKUP&#x000D;&#x000A;KEEPBOTTOM&#x000D;&#x000A;KEEPLOCKED&#x000D;&#x000A;KEEPTOP&#x000D;&#x000A;KEY&#x000D;&#x000A;LANGUAGEORDER&#x000D;&#x000A;LEFT&#x000D;&#x000A;LEFTONLY&#x000D;&#x000A;LINEOFFSET&#x000D;&#x000A;LNKSRC&#x000D;&#x000A;LNKTRG&#x000D;&#x000A;LNKTYPE&#x000D;&#x000A;METHOD&#x000D;&#x000A;MODE&#x000D;&#x000A;NATRUALNUMORDER&#x000D;&#x000A;NEWNAME&#x000D;&#x000A;NEWQUEUE&#x000D;&#x000A;NODIALOG&#x000D;&#x000A;NOTTHERE&#x000D;&#x000A;ONLYFILES&#x000D;&#x000A;ONLYFOCUS&#x000D;&#x000A;ONLYFOLDERS&#x000D;&#x000A;ORDER&#x000D;&#x000A;OVERWRITE&#x000D;&#x000A;PANEL&#x000D;&#x000A;PASSWORD&#x000D;&#x000A;PATH&#x000D;&#x000A;POS&#x000D;&#x000A;REDRAWUI&#x000D;&#x000A;REPLACE&#x000D;&#x000A;REPLACEALL&#x000D;&#x000A;REPLACEWITH&#x000D;&#x000A;RESET&#x000D;&#x000A;REVERSE&#x000D;&#x000A;RIGHT&#x000D;&#x000A;RIGHTONLY&#x000D;&#x000A;RULE&#x000D;&#x000A;SAVEAS&#x000D;&#x000A;SEARCHFOR&#x000D;&#x000A;SEARCHFOR_REGEXP&#x000D;&#x000A;SEARCHIN&#x000D;&#x000A;SECTION&#x000D;&#x000A;SELECTED&#x000D;&#x000A;SEPARATE&#x000D;&#x000A;SETFOCUS&#x000D;&#x000A;SHELL&#x000D;&#x000A;SHOWPATH&#x000D;&#x000A;SIDE&#x000D;&#x000A;SILENT&#x000D;&#x000A;SIZE&#x000D;&#x000A;SKIPLEADINGSPACE&#x000D;&#x000A;SORTAS&#x000D;&#x000A;SORTBY&#x000D;&#x000A;SOURCE&#x000D;&#x000A;STARTIN&#x000D;&#x000A;SUBLEVELS&#x000D;&#x000A;SUBSTRLEN&#x000D;&#x000A;TAB&#x000D;&#x000A;TABCOLORS&#x000D;&#x000A;TABLOCK&#x000D;&#x000A;TABLOCKALLOWSUBCHANGE&#x000D;&#x000A;TABNAME&#x000D;&#x000A;TARGET&#x000D;&#x000A;TEXT&#x000D;&#x000A;TIME&#x000D;&#x000A;TIMEFROM&#x000D;&#x000A;TIMETO&#x000D;&#x000A;TOGGLE&#x000D;&#x000A;UNICODE&#x000D;&#x000A;UPDATEUICACHE&#x000D;&#x000A;USEEXISTINGQUEUE&#x000D;&#x000A;VALUE&#x000D;&#x000A;VIEWAS&#x000D;&#x000A;WAIT&#x000D;&#x000A;WIDTH&#x000D;&#x000A;WILDCARD&#x000D;&#x000A;WORDS&#x000D;&#x000A;</Keywords>
            <Keywords name="Keywords7">$$</Keywords>
            <Keywords name="Keywords8">$</Keywords>
            <Keywords name="Delimiters">00&apos; 01 02&apos; 03&quot; 04\ 05&quot; 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23</Keywords>
        </KeywordLists>
        <Styles>
            <WordsStyle name="DEFAULT" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="COMMENTS" fgColor="808080" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="LINE COMMENTS" fgColor="808080" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="NUMBERS" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS1" fgColor="65CA00" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
            <WordsStyle name="KEYWORDS2" fgColor="8000FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS3" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
            <WordsStyle name="KEYWORDS4" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
            <WordsStyle name="KEYWORDS5" fgColor="808000" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
            <WordsStyle name="KEYWORDS6" fgColor="808040" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
            <WordsStyle name="KEYWORDS7" fgColor="000000" bgColor="FF0000" fontName="" fontStyle="4" nesting="0" />
            <WordsStyle name="KEYWORDS8" fgColor="FF8000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="OPERATORS" fgColor="FF0080" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN CODE1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN CODE2" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN COMMENT" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS2" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS3" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS4" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS5" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
        </Styles>
    </UserLang>
</NotepadPlus>


34
Support and Feedback / LoadArray
« on: January 27, 2017, 16:47:06 »
Hi,

I'm implementing a scrap area that I can Add/Remove files to it.

When I execute the command:
@var $temp_scrap_file = ".\Config\Scrap\scrap.txt";
$old_items = LoadArray($temp_scrap_file);
if the txt file is empty MC immediately closes

I will do a verification if the file is empty prior to LoadArray, but I would like just to let you guys now

Thanks

35
Support and Feedback / Get Link Target
« on: January 27, 2017, 11:24:12 »
Is there a way to get the link target (either a shortcut or hardlink) using MultiScript? I want to create a button that makes the source panel go to the target directory. I searched but found only how to create a link.

Thanks

36
Feature Requests and Suggestions / Documentation
« on: January 26, 2017, 14:48:06 »
Hi,

I may be wrong, but in the page
http://multicommander.com/docs/multiscript/functions/getfilefromview
the first item in list is GetSelectFileNames, but when you click on it it shows the details of GetSelectedFileNames.

I think that the first item in the list in missing "ed" in the Select

Thanks

37
Feature Requests and Suggestions / Run focus selection on ENTER
« on: January 26, 2017, 11:40:36 »
In another file manager I used to use, when I got a focused (but not selected) file or folder and pressed ENTER it would treat it as if it was selected and run it / go inside that folder. But for safety, if I want to delete it I have to select if first.

And if it is the first time entering a folder, it would already put focus on the first file/folder.

I find this very useful. If you could implement it I would appreciate very much.

Thank you.

38
Support and Feedback / ${sourcefilepath} problem
« on: January 19, 2017, 16:26:02 »
Hi,

I'm having trouble with the  ${sourcefilepath} multitag.

I created a User Defined Command as a Batch Script with:

echo sourcepath = "${sourcepath}"
echo sourcefilepath = "${sourcefilepath}"
pause

Then I select any or multiple files on C:\

When I run the scrit I get:
sourcepath = ""C:\""
sourcefilepath = ""

So is this a bug or did I do something wrong?

Thanks

Pages: 1 [2]