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 - Mathias (Author)

Pages: 1 2 [3] 4 5 6 7 ... 176
51
SDK / Re: question 1
« on: June 25, 2024, 15:41:16 »
1)
Depends on what type of extension..

From the IMultiAppInterface interface.

 // Create new log
 virtual ILogger*  CreateLogger() = 0;

 // Log to existing log
 virtual void LogFmt( UINT nLogID , LogLevel nLevel ,  const char*  strText , ... ) = 0;
 virtual void LogFmt( UINT nLogID , LogLevel nLevel ,  const WCHAR* strText , ... ) = 0;
 virtual void Log( UINT nLogID , LogLevel nLevel ,  const char*  strText ) = 0;
 virtual void Log( UINT nLogID , LogLevel nLevel ,  const WCHAR* strText ) = 0;

Code: [Select]
long MCAppExtensionSample::PreStartInit( IMultiAppInterface* pAppInterface )
{

  pAppInterface->LogFmt(0, LogLevel::_DEBUG_, L"Loading... %s", L"Parameter");
}

2) Id is just start from 0 to n , It is so you can have multiple extension in the same dll.
If you only have 1 extension. let it be 0.


52
string strmc=“Multi commander is using the Commander Style Look and Feel”
string strwin="Multi commander is using the Window Explorer Style Look and Feel"

string strMcTips="how do you want to control Multi Commander\n"+strmc+"\n The Commander.."
string strWinTips="how do you want to control Multi Commander\n"+strwin+"\n The Commander.."

btnMc.onClick(){
{
   QuickFeelDilog.setTips(strMcTips);
}
 
btnWin.onClick(){
{
   QuickFeelDilog.setTips(strWinTips);
}
 

hope it display

“Multi commander is using the Window Explorer Style Look and Feel ”

not 

“Multi commander is using the Commander Style Look and Feel as default”


Not sure what you mean.??

Yes by default MC is using Commander Style. If you cancel that dialog on first startup, you end up with commander styled.
If you want MC mouse / keyboard be setup to be like Windows Explorer. You need to configure that your self OR select the Quick Look 'n'Feel dialog. that will change all settings to switch setup

There is no "Commander Style" is ON / OFF thing..  When switching Windows Explorer mode, a whole range of settings are modified to match how Windows Explorer works.
Mouse settings are changed to match Windows Explorer. and how selection work.  You can do all this changes your self in Core settings and Explorer Panel Settings. You can do the quick switch to Windows Explorer mode and then customize some things to work like Commander style. 
Commander Style / Windows Explorer mode is not a simple on off thing. it just a quick way to change MANY settings to change MC


53
multicommander default use farar.dll unrar *.rar.

if select "windows explorer compatibility look'n'Feel"

auto diable farar.dll and can use winrar.exe open *.rar.

like:

farar.enable=true
if(window.explorer.feel==true)
{
  farar.enable=false;
}

you mean FSRar.dll , The Rar Extension for MC ?

None of the extensions are disabled when switching mode..

Switching mode is just a quick way to switch many settings at once.

You can disabled that extension in the "Manage Plugins and Extensions" dialog.



54
hope it display

“Multi commander is using the Window Explorer Style Look and Feel ”

not 

“Multi commander is using the Commander Style Look and Feel as default”


Not sure what you mean.??

Yes by default MC is using Commander Style. If you cancel that dialog on first startup, you end up with commander styled.
If you want MC mouse / keyboard be setup to be like Windows Explorer. You need to configure that your self OR select the Quick Look 'n'Feel dialog. that will change all settings to switch setup

55
Have see no issue when switching to Windows Explorer mode..  What issue do you have? what do you do ?

Dont understand you second part.


56
SDK / Re: buidl err
« on: June 25, 2024, 07:27:09 »
Ah 64bit build.

replace line with
if(szNewFilename[0] == L'\0')

You can just removed the postbuild step, It is only used to copy it to folder where MC is.

57
Support and Feedback / Re: I can't read buttons text
« on: June 24, 2024, 13:35:43 »
Hi
Thank you for answering so quickly. Attached photo in No_Dark mode
And YES, I use UltraUXThemePatcher... Is this the problem, you think?
Best Regards

I think the ThemePatcher is the issue, When using dark theme in MC, Theme Patcher is overwriting some of the drawing and draws buttons that are not darkmode..
Might work if you configure ThemePatcher to draw in dark mode too. (If that is possible, not sure how configurable Themepatcher is)


58
Support and Feedback / Re: "file type" language
« on: June 24, 2024, 11:36:05 »
1) File type names shown from the filetype columns is returned by Windows. MC ask windows for them. It should return same in Windows Explorer.

I don't know what does "is returned by Windows" mean. But I tried simple reading (Default) value for file extension from registry and then LoadString/RegLoadMUIStringW. Simple reading returns unclocalized string (I tested on RUS/ENG lang packs), while the latter return localized one.

The "FileType Name" Column. (Added in 14.1)  MC asks Windows for the filetype

C/C++ API call to SHGetFileInfoW returns that.

Code: [Select]
 
  SHFILEINFOW fileInfo;
  UINT sizeFile = sizeof(fileInfo);
  UINT Flags = SHGFI_TYPENAME;
  if (!SHGetFileInfoW(szFilePath, 0, &fileInfo, sizeFile, Flags))
    return false;
 
  // FileType is set in
  fileInfo.szTypeName

59
Support and Feedback / Re: I can't read buttons text
« on: June 24, 2024, 11:12:04 »
Don't know why it looks like that for you.
The checkboxes are also in a none standard color.

Are you running some 3rd party Theme changer in Windows ?

How does it look if DarkMode in MC is not enabled ?

61
Support and Feedback / Re: "file type" language
« on: June 24, 2024, 09:04:13 »
I am using a Chinese language pack, but when I added "file type", it did not display in Chinese.
I used language editing extensions and found that I couldn't find the relevant items and couldn't understand the sorting rules.
So I decompressed the language pack and searched for relevant text. I can't find it either.

Additionally, I found that columnset is stored in columnsetsXML. Directly stored name.
When switching languages, columns seem to not switch based on language changes

1) File type names shown from the filetype columns is returned by Windows. MC ask windows for them. It should return same in Windows Explorer.

2) Yes some places do not support the multi language system. Like the "name" of default column sets.



62
Beta Releases / Re: v14.0 BETA
« on: June 20, 2024, 14:54:38 »
when checking if file exists the GetFileAttributes(..) API is used. But for the special system files it return false and set error code to FILE_NOT_FOUND.

I tried PathFileExists(). For non-existing file it returns 0x02 FILE_NOT_FOUND while for "hiberfil.sys" it returns 0x20 ERROR_SHARING_VIOLATION. Also FindFirstFile() succeedes.

It looks inconsistent when you see a file in the panel, but script says it doesn't exist.
Yes some Windows API report  NOT FOUND and some SHARING VIOLATION..
Its only for some very special system files. Not sure it is worth the time to create some workaround just for them.

63
Beta Releases / Re: v14.0 BETA
« on: June 20, 2024, 11:20:52 »
If FileExists return 0 then Windows return error when checking for those special file. Windows actually return ERROR_FILE_NOT_FOUND when trying to check those files.
But MC somehow shows that files in Explorer Panels. If it can detect them, then I don't see a reason why MultiScript's FileExists could not.
Try IsFolder() for "hiberfil.sys"

Listing all files just to see if a file exists is not efficient. It is very slow.
when checking if file exists the GetFileAttributes(..) API is used. But for the special system files it return false and set error code to FILE_NOT_FOUND.

64
Support and Feedback / Re: how to add filetyoe column
« on: June 20, 2024, 10:49:29 »
The program can now display the extension column, but cannot find the file type column.
The program has already obtained the icon for the file, so it should also be able to obtain the file type.

I hope to display the corresponding type column like explorer  . thanks

Never been a request for actually showing that.. But I think it is easy to add.. See if I get time to add it to 14.1

65
Beta Releases / Re: v14.0 BETA
« on: June 20, 2024, 10:48:07 »

I don't see it losing defined scripables columns. have you checked  the option for the script to be a FileProp?
Thanks. Checking this option works.

But there's another issue. Some multiscript functions fails with certain files. E.g. FileExists returns 0 for "hiberfil.sys", "pagefilt.sys", "swapfile.sys". And IsFolder fails with script engine error.

This sample code: will variable be visible out of its scope?

Code: [Select]
if(IsVariableDefined("$_FILEPROP_FILEPATH") == 0)
{
  @var $_FILEPROP_FILEPATH = GetTargetFocusPath();
}

it should be "@gvar" to force defined a global. But that branch is not merged. Will fix that tonight.

IsFolder() works for me

If FileExists return 0 then Windows return error when checking for those special file. Windows actually return ERROR_FILE_NOT_FOUND when trying to check those files.

66
Beta Releases / Re: v14.0 BETA
« on: June 20, 2024, 09:13:34 »
1.
Example of script that will just show the file extension in a column.

Code: [Select]
if(IsVariableDefined("$_FILEPROP_FILEPATH") == 0)
{
  @var $_FILEPROP_FILEPATH = GetTargetFocusPath();
}

@var $ext = PathGetFileExtPart($_FILEPROP_FILEPATH);

@var $_FILEPROP_DISPLAYNAME = $ext;

On the line "@var $ext = PathGetFileExtPart($_FILEPROP_FILEPATH);" I get error "Script engine error => Failed to process token - "$ext"" although IsVariableDefined() returns 1.

---

2. Script list for a scriptable column is empty.
3. Scriptable columns are completely lost after closing MC (not only from displayed column, but from the available columns list)

I found that IsVariableDefined always return 1.  even if it is not defined.. that the only issue i found

I don't see it losing defined scripables columns. have you checked  the option for the script to be a FileProp?

maybe the script was created before you needed to allowed it to be run as fileprop column, thr script need the option "AllowAsFileProp"  to be clicking on the "*" in the script editor.
It will add
#options (AllowAsFileProp) 
At the top of the script..

so if you created the column before that was added it can be why it is not shown in the list.

67
I found the issue.. Will be fixed in 14.1 that will be release in this weekend (hopefully)

68
I tried that. See the attachment. The autocomplete does not happen.

Ah yes. there is no autocomplete in the field.  Not sure if it can be applied. Will check..  the Autocomplete is a build in Windows things that can be assigned to some fields..

69
As is:
You can only type the folder or path with autocomplete on the address bar editor below the icon tool bar.

Request:
I used the address bar bread crumb below the drive letter. Can you allow us to double click on the path and then typing the folder.
Autocomplete options appear to allow me to navigate the path while typing.

If you double click after the text, it enters edit mode. or press Ctrl+E
Might maybe be possible to add so it is possible to enter edit on double click on name to.


70
its not the lenght.. there is no limit for that.. I guess it is how you write it

If you are looking for a file called "Sockets, Shellcode, Porting, & Coding. Reverse Engineering Exploits & Tool Coding For Sec Pro.pdf"
then put it around " around it. else it will break on spaces.. and each part is a filter..  "Sockets," "Shellcode," If you want to match many keyword use space,
The it will be a OR match.. if you do "Sockets Shellcode" it will find all items matching "Sockets" OR "ShellCode"  it does not require both of them to be there

For that you need to rightclick and the filter icon and selected advanced filtering and create a advanced one.

Or do a regexp match.. if you start the filter with ":" then you are matching using regex



71
Support and Feedback / Re: Multi Commander stays in background
« on: June 08, 2024, 15:25:57 »
Probably a Windows issue.. MC have no control over that

72
Support and Feedback / Re: Multi Commander stays in background
« on: June 08, 2024, 10:23:48 »
MC do not control that. It is handled by the Windows manager in Windows.
Only time MC messes with that is if you force it to be "topmost" using cmd "topmost 1" in cmdline field.
But that sets it to top window.. not bottom.


73
Beta Releases / Re: v14.0 BETA
« on: May 25, 2024, 08:14:29 »
Good catch.. Will fix that
For normal file copy it should be enabled, if copying inside archives it should not

74
That's really odd.

I tried it on 2 PCs, one with Windows 7, the other with Windows 10.
I tried it with the installer and the portable version.
I even tried earlier versions, back to the oldest available on the download page (v11.3).
The only changes in the configuration I made was unchecking "Show link target in name column".

The results were frustratingly consistent:
Toggling the option always made targets appear or disappear for symlinks to directories. But it had no effect on symlinks to files. For them the target was always displayed.

It's not as if the universe would implode, if that mystery couldn't be solved.
But it would be very convenient, if symlinks were a bit less obtrusive.

So, though I know that this question is slightly impertinent ;): Did it really really ever work as intended with file symlinks?

Correct.. for files it does not check that option.. Easy fix.. will be fixed in next version

75
That's really odd.

I tried it on 2 PCs, one with Windows 7, the other with Windows 10.
I tried it with the installer and the portable version.
I even tried earlier versions, back to the oldest available on the download page (v11.3).
The only changes in the configuration I made was unchecking "Show link target in name column".

The results were frustratingly consistent:
Toggling the option always made targets appear or disappear for symlinks to directories. But it had no effect on symlinks to files. For them the target was always displayed.

It's not as if the universe would implode, if that mystery couldn't be solved.
But it would be very convenient, if symlinks were a bit less obtrusive.

So, though I know that this question is slightly impertinent ;): Did it really really ever work as intended with file symlinks?

ah Files. Hmm I only have Folders here.. Will check tomorrow.

Pages: 1 2 [3] 4 5 6 7 ... 176