Photoshop CS4 Brush resize on the fly for photoshop CS3

Hey hey, more Autohotkey goodness for CS3 users, brush resize on the fly, CS4 style!

First download a free copy of Autohotkey

Save a textfile called “cs3resize.ahk” and copy and paste the code below into that file and save it. Then doubleclick it to run the script.

By default the script uses the M key to trigger, you can change that by looking at the comments in the code below.

Select the brush tool, then hit M and move your mouse or pen up and down (NOT left and right) on the screen and watch your brush resized on the fly. Hit M again to return to normal drawing mode.

The script simply sends out the left and right bracket keys when the mouse/pen is moved up and down. You can easily make copies and this script and bind other hotkeys for brush hardness or anything else in photoshop that has increasing and decreasing values.


;CS3 Brush Resize on the fly
#ifWinActive ahk_class Photoshop
{

;Mess with this if moving the pen takes to much CPU
setbatchlines, 500ms

;Bad things will happen if you change this.
#MaxThreadsPerHotkey 2

bbrake=1

Coordmode, mouse, Screen

;This is the shortcut (m) you use to activate, look in AHK Help for keycodes.
;Make sure this is not bound to any function in photoshop.
m::
MouseGetPos,, old_mousey

if bbrake
{
bbrake=0
}
else if !bbrake
{
bbrake=1
return
}

loop
{
MouseGetPos,, mousey

if ((mousey=old_mousey) and (bbrake != 1))
continue
else if bbrake=1
break

if (mousey > old_mousey)
{
;Mouse move up. Change to a key you have set in photoshop cs3 to increase something.
send, {[}
old_mousey:=mousey
}
else if (mousey < old_mousey)
{
;Mouse move down. Change to a key you have set in photoshop cs3 to decrease something.
send, {]}
old_mousey:=mousey
}
}

return

}

You must be logged in to post a comment.