Multi Commander Support Forum
File Managment For Professionals
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
MultiCommander v14.2 is released!
Home
Help
Search
Login
Register
Multi Commander Support Forum
»
Multi Commander
»
Support and Feedback
»
Run with CMD param "-AutoRun=userCommand" when an MC instance already running
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Run with CMD param "-AutoRun=userCommand" when an MC instance already running (Read 10449 times)
jiabaoyu99
Newbie
Posts: 3
Run with CMD param "-AutoRun=userCommand" when an MC instance already running
«
on:
April 24, 2023, 01:14:40 »
I've already written a custom user command to get the active tab's path.
It works like a charm in MC. However, I planned to use it to pass the pass the autohotkey.
I read the manul and find that one can run MC using command line parameter "-AutoRun=userCommand" and invoke the user-command.
Sadly I found that if one instance of MC is already running, the user-command just doesn't invoke.
Is it a bug?
If not, does anyone here know autohotkey on how to
send windows message
to MC to fulfill my need?
Ref->
http://multicommander.com/Docs/MultiCommanderWindowsMessageAPI
Best regards.
Logged
Mathias (Author)
Administrator
VIP Member
Posts: 4416
Re: Run with CMD param "-AutoRun=userCommand" when an MC instance already running
«
Reply #1 on:
May 03, 2023, 13:16:42 »
The -AutoRun parameter is sent to the instance you are starting. If "only allow single instance" is active. Then MC is already running and will then not call the AutoRun command.
You can command Hotkeys inside MC to user defined commands.
Logged
jiabaoyu99
Newbie
Posts: 3
Re: Run with CMD param "-AutoRun=userCommand" when an MC instance already running
«
Reply #2 on:
May 04, 2023, 19:32:36 »
Thank you for the explanation
So could you add a function that always invokes user command?
I barely know how to send windows messages. And I am using autohotkey.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Multi Commander Support Forum
»
Multi Commander
»
Support and Feedback
»
Run with CMD param "-AutoRun=userCommand" when an MC instance already running