https://autohotkey.com/board/topic/1497 ... photoshop/
For reference in Photoshop brush control is as follows:
- Size = [ and ]
- Softness = shift [ and shift ]
both of which can easily be assigned to a couple of keys. However,
- Opacity = number 1-100
-Flow = number shift 1-100
For these there is no way to cycle up/down and devoting the number of required keys is not practical.
In his post linked above, "tenderchkn" provides the following solution, which I have now tried and it works fairly well. FOr your convenience I am copying it here, but it is NOT my work is is his, but is not accessible on this forum.
Code: Select all
#IfWinActive, ahk_exe Photoshop.exe
Array := ["01", "02", "04", "07", "10", "15", "20", "30", "40", "50", "75", "100"]
OpacityCount := Array.MaxIndex()
FlowCount := 1
return
F12::
FlowCount ++
Send {Shift Down}
Send, % Array[FlowCount]
Send {Shift Up}
if (FlowCount > Array.MaxIndex())
FlowCount := Array.MaxIndex()
return
+F12::
OpacityCount ++
Send, % Array[OpacityCount]
if (OpacityCount > Array.MaxIndex())
OpacityCount := Array.MaxIndex()
return
F11::
FlowCount --
Send {Shift Down}
Send, % Array[FlowCount]
Send {Shift Up}
if (FlowCount < 1)
FlowCount := 1
return
+F11::
OpacityCount --
Send, % Array[OpacityCount]
if (OpacityCount < 1)
OpacityCount := 1
return
Note, this works both as multiple key presses and also via press & hold (to ramp up/down). I find that on the press & hold for Flow, it sometimes also changes Opacity, so one may want to add some delay or troubleshoot that single issue. If one just uses multiple presses for Flow there is no issue.
My use of this is to assign to a keypad, multi-button mouse, or wacom pen button to have full brush control without keyboard. (Note ctl-alt-R-click gives easy Heads Up Display of size and softness, which can be mapped to a single button/key). That plus 2 more buttons (along with shift) now add increase/decrease for opacity and flow.
I help this is useful to others.