I wonder if hotkeys in DOpus can be set up to change their function depending on current view mode. Most of the time, I use DOpus in dual pane mode set to Details view. I use Left and Right keys to switch between panes (basically, either key sets the focus to DEST). On occasion, when I browse image folders, I switch to thumbnail view. In this case, I'd prefer if Left and Right selected the next thumbnail within a row (the one to the left or right). Can the function assigned to Left and Right change depending on whether I'm in Details or Thumbnails mode?
No, you have to use separate keys (e.g. Ctrl-Left/Right to change sides instead of plain Left/Right).
AHK to the rescue. I added two buttons to the DOpus toolbar: Details mode and Thumbnail mode. Depending on the mode, the relevant button is shown "depressed", i.e., darker. In AHK, I can check the button color and redefine the Left/Right keys depending on viewing mode. AHK code:
[code]#IfWinActive ahk_class dopus.lister
CoordMode, Pixel, Relative
Left::
Right::
PixelGetColor, detColor, 911, 39
PixelGetColor, thumColor, 936, 39
if (detColor > thumColor)
SendInput {TAB}
else
SendInput {%A_ThisHotkey%}
return
#IfWinActive
[/code]