May 14, 2021, 10:05:29 PM

News:

--


How To Change Keyboard Shortcuts

Started by psyopsgaming, March 09, 2017, 03:58:19 AM

Previous topic - Next topic

psyopsgaming

I have looked all over for information on this. Is there any way to change your keyboard shortcuts? When editing a mass number of short files it is easier to have my right hand on the mouse and my left on the WASD instead of the UDLR Arrows. If not is there a way to request this feature. Thanks! - Psyops Gaming

eumagga0x2a

Quote from: psyopsgaming on March 09, 2017, 03:58:19 AM
I have looked all over for information on this. Is there any way to change your keyboard shortcuts?

Sure. Edit avidemux/common/ADM_commonUI/myOwnMenu.h to your liking and rebuild Avidemux (if you use Windows, you'll need Linux for that).

QuoteIf not is there a way to request this feature.

This is a very common feature request, to entirely different, mutually exclusive values. If you would like to see Avidemux enhanced with a runtime keyboard accel editor soon: patches warmly welcome.

eumagga0x2a

Actually, this is not quite that simple. Some keyboard accels are hardcoded in MainWindow::eventFilter in avidemux2/avidemux/qt4/ADM_userInterfaces/ADM_gui/Q_gui2.cpp, but you rather don't mess with the code there, because all the keys you want to use for navigation instead of the arrow keys already have different actions assigned across the application when pressed together with the Ctrl modifyer key.

So even if you succeed in assigning W, A, S and D to actions currently assigned to Up, Left, Down and Right, you can't achieve consistency.

rojavid

Sucks that I have to go back to the older version which moves around madly when zooming in/out just because of the ridiculousness of changing [] to ctrl pg up/dn :(
It is a sad day when great software becomes less usable with no way to change settings to our liking
My kybd has no Pg Up/Dn

rojavid

Nm, I was advised at videohelp to use a mapper, which I did..yay !

cartucho

April 09, 2021, 01:53:54 AM #5 Last Edit: April 09, 2021, 01:55:41 AM by cartucho
If you are in Windows and want to change the shortcuts in Avidemux just run this script with Autohotkey or compile for more convenience.

This script change the Mark A and Mark B to [ and ] respectively, S for Save, W to Close File, A to Go to A marker, B to Go to B Marker, G to Go Time.
Also I mapped the letter M to make focus in Video, the optimal would be make focus in the time bar but I can't do it. Make focus in video helps when sometimes the Ctrl+Up and Ctrl+Down don't work because the focus is in another place.

You can change for whatever shorcut you want, use ^ to indicate Ctrl (for example ^F is Ctrl+F), # for Win Key, ! for Alt Key and + for Shift key

Here the script.

#if WinActive("ahk_exe avidemux.exe")
#IfWinActive, ahk_class Qt5QWindowIcon
[:: Send ^{PGUP}

]:: Send ^{PGDN}

s:: Send ^s

w:: Send ^w

a:: Send {PGUP}

b:: Send {PGDN}

g:: Send ^t

m::  ControlFocus , Qt5QWindowIcon10

#if
#if

Hope this help to all people like me what want to change the shortcuts of Avidemux to suit his own taste.
Cheers!

butterw

Hopefully fully customizable hotkeys will get added to Avidemux at some stage:
https://avidemux.org/smif/index.php/topic,19413.0.html

cartucho

Quote from: butterw on April 09, 2021, 07:46:27 AMHopefully fully customizable hotkeys will get added to Avidemux at some stage:
https://avidemux.org/smif/index.php/topic,19413.0.html

Thanks!
I don't know about that config3 file and seems like a better solution, but is only a reduced set of shortcuts what can be changed.

By now I continue with my script, what besides is a "down & dirty" (and external) solution is better suited for my needs, because ANY COMMAND WITH A SHORTCUT BY DEFAULT in avidemux can be changed. And mostly of the menu options have default shortcuts.

Like you say hopefully fully customizable hotkeys will get added to Avidemux at some stage.

I post in this OLD thread because if the first Google result when I search "avidemux shortcuts keys".