Page 3 of 7

Re: mouse wheel click open folder in a new tab

Posted: 2022-09-10, 20:24 UTC
by jinsight
2Fla$her

I edited my above entry as duplicated below. I hope it's clearer now.

"I consider a third party program, such as TwinKey, or a plugin, such as Autorun.wdx, a stopgap in assigning values to mouse clicks. This feature should be a default and built in to TC. From within TC, keystrokes can be assigned values. so should mouse clicks. TC doesn't use plugins for assigning values to keystrokes so TC shouldn't use plugins for mouse click values."

Re: mouse wheel click open folder in a new tab

Posted: 2022-09-10, 20:52 UTC
by Fla$her
jinsight wrote: 2022-09-10, 19:24 UTCTC doesn't use plugins for assigning values to keystrokes so TC shouldn't use plugins for mouse click values.
I still don't understand the logic. There is a plugin that is installed in TC. So it can be used in it. Isn't that right? Why shouldn't it (Autorun) be used for this? Nonsense.

Moreover, the plugin makes it possible to be limited to the specified components of TC window, which makes it logically more attractive and functional. See the examples in the help for a better understanding of the issue.

Re: mouse wheel click open folder in a new tab

Posted: 2022-09-10, 22:32 UTC
by Ziabrev
help_en.chm:
Notes

Although the plugin was optimized for speed, due to the large number of intercepted and processed messages, it is recommended to minimize the number of installed handlers if possible. It is also recommended that the most frequently occurring events (for example, scrolling with the mouse wheel, left-click) be placed at the beginning.

Limitations

Minimal requirements: Autorun 2.0.11+, Total Commander 9.0+.

Under Windows 7, actions assigned to the mouse wheel do not block the default action for this control.

X1 / X2 buttons may not work (untested).


The functions are not performed.
I need this:

Code: Select all

ControlSetMouseAction /M 0 SendCommand 701
ControlSetMouseAction /X1 0 SendCommand 702
ControlSetMouseAction /X2 0 SendCommand 703
ТI use a script.

Re: mouse wheel click open folder in a new tab

Posted: 2022-09-10, 22:38 UTC
by Fla$her
Ziabrev wrote: 2022-09-10, 22:32 UTCI need this:
Write to the appropriate topic. There's an offtop here.
history_en.txt wrote:2.2.3 beta
- Tweaks: fixed work with modifiers (again, and again, and again)

2.2.2 beta
- Tweaks: fixed work with modifiers
In TC betas errors are constantly being corrected. Plugins should be an exception?

P. S.: Generally, the Start menu is a long-standing relic. I don't understand why anyone else uses it.

Re: mouse wheel click open folder in a new tab

Posted: 2022-09-11, 03:56 UTC
by Ziabrev
2Fla$her
It is not rational to use only one command for the MButton key,
so I select third-party utility commands from the list on the Start menu
when performing a certain task.
The Autorun plugin works.
Thank you.

Re: mouse wheel click open folder in a new tab

Posted: 2022-09-11, 05:46 UTC
by KozakMak
Fla$her wrote: 2022-09-10, 17:38 UTCAutorun 2.2.4 beta
Why couldn't you write earlier that a new version is needed? :shock:

Okey, now its work, BUT only when click on the active cursor :x

Re: mouse wheel click open folder in a new tab

Posted: 2022-09-11, 14:59 UTC
by Fla$her
Ziabrev wrote: 2022-09-11, 03:56 UTC It is not rational to use only one command for the MButton key,
so I select third-party utility commands from the list on the Start menu
when performing a certain task.
I understand. I'm talking about why you use them instead of custom em_ commands.
Ziabrev wrote: 2022-09-11, 03:56 UTC The Autorun plugin works.
Thank you.
Good. You are welcome.

KozakMak wrote: 2022-09-11, 05:46 UTCWhy couldn't you write earlier that a new version is needed? :shock:
The relevance of the version is always important. You don't write on every corner that it's better to use the current TC version. ;)
KozakMak wrote: 2022-09-11, 05:46 UTCBUT only when click on the active cursor :x
Right:
Fla$her wrote: 2022-09-08, 12:56 UTC 2KozakMak
Have you read petermad's post? There it is not about clicking on a folder in the list.
But we are having a conversation with the author about adding a command to press buttons/keys, so you can also implement your request.

Re: mouse wheel click open folder in a new tab

Posted: 2022-09-11, 16:17 UTC
by Ziabrev
2Fla$her
Я говорю о том, почему вы используете их вместо пользовательских команд em_.
How? Change command in autorun.cfg? Then you need to restart TC.
Through the Start menu, this is not required.

Re: mouse wheel click open folder in a new tab

Posted: 2022-09-11, 17:16 UTC
by Fla$her
2Ziabrev
You call SendCommand 701 from autorun.cfg, which needs to be restarted after editing.
And where you create a command (in the Startup menu or in the Choise command dialog of the usercmd.ini or Wcmd_LNG.ini section) does not apply to restarting.
I'm writing about using the Startup menu itself. It's outdated.
It's better to use em_, since they can be named in a way that is understandable to the user.
And you can call from autorun.cfg, for example, like this:

Code: Select all

ControlSetMouseAction /M 3 CommandExec em_OpenDirInNewTab

Re: mouse wheel click open folder in a new tab

Posted: 2022-09-29, 11:34 UTC
by KozakMak
Fla$her wrote: 2022-09-11, 14:59 UTCwe are having a conversation with the author about adding a command to press buttons/keys, so you can also implement your request.
are there any improvements in 2.2.7 beta?

Re: mouse wheel click open folder in a new tab

Posted: 2022-09-29, 12:11 UTC
by Fla$her
KozakMak wrote: 2022-09-29, 11:34 UTCare there any improvements in 2.2.7 beta?
Yes, of course. Added a new child RunTime plugin and several functions (commands). Specifically for the current task, the following solution is proposed:

Code: Select all

LoadLibrary Plugins\Autorun_Runtime.dll
LoadLibrary Plugins\Autorun_Tweaks.dll
#——————————————————————————————————————
ControlSetMouseAction /M 1 OpenDirInNewTab
ControlSetMouseAction /M 2 OpenDirInNewTab

Func OpenDirInNewTab
   I = ItemAtCursor('index')
   F = RequestInfo(1010 + ItemAtCursor('panel'))
   If I >= 0 And (F = -1 Or F > I) Then
      If ItemAtCursor('panel') <> RequestInfo(1000) Or Not ItemAtCursor('focused') Then MouseClick
      If ItemAtCursor('focused') Then SendCommand 3003
   EndIf
EndFunc
It's recommended to read the Switching to version 3.x page in the help.

P. S.: I didn't intend to publish this right away, as the plugin hasn't been fully debugged for release yet. At a minimum, we should expect 2-3 beta versions with minor additions to the functionality.
Off topic: I highly recommend taking a closer look at SetHotkeyAction + ShowPopupMenu.

Re: mouse wheel click open folder in a new tab

Posted: 2022-09-30, 07:09 UTC
by KozakMak
Wow, very nice!

Okey, сan this feature be extended?
For example, I have in [Associations] *.torrent
If I click mouse wheel on this extention = open my associated program?

Re: mouse wheel click open folder in a new tab

Posted: 2022-09-30, 12:03 UTC
by Fla$her
2KozakMak
If get be attached only to associations, then this will complicate everything. It's easier to perform the Enter analog on non-catalog elements:

Code: Select all

LoadLibrary Plugins\Autorun_Runtime.dll
LoadLibrary Plugins\Autorun_Tweaks.dll
#——————————————————————————————————————
ControlSetMouseAction /M 1 OpenDirInNewTabElseEnter
ControlSetMouseAction /M 2 OpenDirInNewTabElseEnter

Func OpenDirInNewTabElseEnter
   I = ItemAtCursor('index')
   If I >= 0 Then
      F = RequestInfo(1010 + ItemAtCursor('panel'))
      If ItemAtCursor('panel') <> RequestInfo(1000) Or Not ItemAtCursor('focused') Then MouseClick
      If ItemAtCursor('focused') Then
         If F > I Or F = -1 Then
            SendCommand 3003
         Else
            SendCommand 1001
         EndIf
      EndIf
   EndIf
EndFunc
With the same success, instead of 1001, you can adapt, for example, such commands:

Code: Select all

904  / cm_Edit
2932 / cm_EditExistingFile
2934 / cm_ListOnly
2935 / cm_ListMulti

Re: mouse wheel click open folder in a new tab

Posted: 2022-10-07, 06:26 UTC
by KozakMak
nice, but I can press enter anyway)
point is to bypass system associations

https://ibb.co/z5pTdDk

because internal associations is the first menu item, is it possible to somehow affect him?

Re: mouse wheel click open folder in a new tab

Posted: 2022-10-07, 08:19 UTC
by Fla$her
I don't understand what this is about. If internal associations for the mask are set, then they will be executed by Enter.
What does the system context menu have to do with it?
If you are not satisfied with the system associations, what prevents you from adding internal ones?
How can be bypass system associations in the absence of internal ones? Some nonsense.