saolaolsson / pixiple

Pixiple is a Windows application that searches your files for images that are similar in pixel and metadata content and presents you with a sorted list of similar image pairs to compare
MIT License
112 stars 16 forks source link

Suggestion: Add keyboard hotkeys #12

Open trulsbekk opened 2 years ago

trulsbekk commented 2 years ago

For example: Arrow keys: next and previous image pair CTRL+O: Open in default viewing application CTRL+SHIFT+O: Open containing folder A: delete left image D: delete right image Space: Swap images

trulsbekk commented 2 years ago

Here's a AutoHotkey script I made for Pixiple. It's active whenever the Pixiple window is active. Copy the code and save it as a .ahk file, then run, or download the attachement and change the extension to .ahk.

These are the keyboard shortcuts: 1: First Pair LCtrl: Delete file (left pane) LAlt: Delete file (right pane) Space: Swap images Left: Previous pair Right: Next Pair Up: Open folder (left pane) Down: Open folder (right pane)

#NoEnv
SetWorkingDir %A_ScriptDir%
CoordMode, Mouse, Window
SendMode Input
#SingleInstance Force
SetTitleMatchMode 2
#WinActivateForce
SetControlDelay 1
SetWinDelay 0
SetKeyDelay -1
SetMouseDelay -1
SetBatchLines -1

#IfWinActive Pixiple 5

LControl::
DelLeft:
ControlClick, Button6, Pixiple 5,, Left, 1,  NA
Sleep, 10
Return

LAlt::
DelRight:
ControlClick, Button8, Pixiple 5,, Left, 1,  NA
Sleep, 10
Return

Up::
OpenLeft:
ControlClick, Button5, Pixiple 5,, Left, 1,  NA
Sleep, 10
Return

Down::
OpenRight:
ControlClick, Button7, Pixiple 5,, Left, 1,  NA
Sleep, 10
Return

Space::
Swap:
ControlClick, Button1, Pixiple 5,, Left, 1,  NA
Sleep, 10
Return

1::
FirstPair:
ControlClick, Button2, Pixiple 5,, Left, 1,  NA
Sleep, 10
Return

Left::
PrevPair:
ControlClick, Button3, Pixiple 5,, Left, 1,  NA
Sleep, 10
Return

Right::
NextPair:
ControlClick, Button4, Pixiple 5,, Left, 1,  NA
Sleep, 10
Return

Pixiple.txt