Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: psyopsgaming on March 09, 2017, 03:58:19 AM

Title: How To Change Keyboard Shortcuts
Post by: 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? 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
Title: Re: How To Change Keyboard Shortcuts
Post by: eumagga0x2a on March 09, 2017, 07:12:00 AM
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 (https://github.com/mean00/avidemux2/blob/master/avidemux/common/ADM_commonUI/myOwnMenu.h) to your liking and rebuild Avidemux (if you use Windows, you'll need Linux for that (https://raw.githubusercontent.com/mean00/avidemux2/master/cross-compiling.txt)).

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.
Title: Re: How To Change Keyboard Shortcuts
Post by: eumagga0x2a on March 10, 2017, 03:16:46 PM
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 (https://github.com/mean00/avidemux2/blob/master/avidemux/qt4/ADM_userInterfaces/ADM_gui/Q_gui2.cpp#L680), 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.
Title: Re: How To Change Keyboard Shortcuts
Post by: rojavid on March 11, 2017, 11:53:14 AM
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
Title: Re: How To Change Keyboard Shortcuts
Post by: rojavid on March 11, 2017, 02:43:48 PM
Nm, I was advised at videohelp to use a mapper, which I did..yay !
Title: Re: How To Change Keyboard Shortcuts
Post by: cartucho on April 09, 2021, 01:53:54 AM
If you are in Windows and want to change the shortcuts in Avidemux just run this script with Autohotkey (https://www.autohotkey.com/) 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!
Title: Re: How To Change Keyboard Shortcuts
Post by: butterw on April 09, 2021, 07:46:27 AM
Hopefully fully customizable hotkeys will get added to Avidemux at some stage:
https://avidemux.org/smif/index.php/topic,19413.0.html
Title: Re: How To Change Keyboard Shortcuts
Post by: cartucho on April 09, 2021, 07:15:41 PM
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".