Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Photoshop toolbar


  • Please log in to reply
40 replies to this topic
Bebert
  • Members
  • 84 posts
  • Last active: Jan 03 2011 06:47 AM
  • Joined: 08 Jun 2009
for "HelloWorld" and Photoshop enthusiasts:

movable toolbar with most used Photoshop shortcuts

Posted Image

variations with graphic png buttons:
Posted Image

feel free to modify or customize as you wish (eg: vertical layout)
#NoEnv
#Persistent
#SingleInstance force
SendMode Input
SetWorkingDir %A_ScriptDir%  
Menu Tray, icon, Photoshop.ico

CustomColor = 99FF00  
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow  
Gui, Color, %CustomColor%
Gui, Font, s14, Calibri
WinSet, TransColor, %CustomColor% 

Gui, Add, Button, x70 y50 w120 h30 gcl1, Copy
Gui, Add, Button, x190 y50 w120 h30 gcl2, Paste
Gui, Add, Button, x310 y50 w120 h30 gcl3, New.Layer
Gui, Add, Button, x430 y50 w120 h30 gcl4, Select.All
Gui, Add, Button, x550 y50 w120 h30 gcl5, Deselect
Gui, Add, Button, x670 y50 w120 h30 gcl6, Actions
Gui, Add, Button, x790 y50 w120 h30 gcl7, {enter}
Gui, Add, Button, x910 y50 w120 h30 gcl8, Revert

Gui, Add, Button, x70 y85 w120 h30 gcl9, Save
Gui, Add, Button, x190 y85 w120 h30 gcl10, Save.as
Gui, Add, Button, x310 y85 w120 h30 gcl11, Transform
Gui, Add, Button, x430 y85 w120 h30 gcl12, Last Filter
Gui, Add, Button, x550 y85 w120 h30 gcl13, Merge.dn
Gui, Add, Button, x670 y85 w120 h30 gcl14, Flatten.img
Gui, Add, Button, x790 y85 w120 h30 gcl15, Step.Back
Gui, Add, Button, x910 y85 w120 h30 gcl16, exit

Gui, Add, Picture, x0 y45 w1100 h5 GuiMove, side.png
Gui, Add, Picture, x0 y80 w1100 h5 GuiMove, side.png
Gui, Add, Picture, x0 y115 w1100 h5 GuiMove, side.png
Gui, Add, Picture, x0 y45 w70 h70 GuiMove, PhotoshopCS4.png
Gui, Add, Picture, x1030 y45 w70 h70 GuiMove, PhotoshopCS4.png

Gui, Show, x280 y750 NoActivate
return

cl1:
;Adobe Photoshop CS4
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^{c}
return

cl2:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^{v}
return

cl3:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send +^{n}
return

cl4:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^{a}
return

cl5:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^{d}
return

cl6:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send !{f9}
return

cl7:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send {enter}
return

cl8:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send {f12}
return

cl9:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^{s}
return

cl10:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send +^{s}
return

cl11:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^{t}
return

cl12:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^{f}
return

cl13:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^{e}
return

cl14:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^+{e}
return

cl15:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^!{z}
return

cl16:
Gui, Destroy
exitapp
return

uiMove:
PostMessage, 0xA1, 2,,, A
Return

Esc::
Gui, Destroy
exitapp
return


tested in both CS4 and CS5 versions of Photoshop

code with all the png and icon graphics
<!-- m -->http://www.mediafire... ... oolbar.rar<!-- m -->
or use your own graphics

8)

complete toolkit with new buttons here:
<!-- m -->https://ahknet.autoh...to ... kit.rar<!-- m -->

Chicken Pie 4 Tea
  • Members
  • 379 posts
  • Last active: Dec 12 2014 06:46 PM
  • Joined: 18 Aug 2009
He He, thanks for this. Now it wasnt so hard to post this was it? dont be so shy about your work in future share it. You never know who will find a use for it. I'm going to have a play around with this later,
Thank-you :D
"Choose your parents wisely"

Bebert
  • Members
  • 84 posts
  • Last active: Jan 03 2011 06:47 AM
  • Joined: 08 Jun 2009
my scripts change everyday, always finding new bits of code to improve and/or optimize from this forum :)

have fun customizing it to your own fav Photoshop short cuts.

might post the vertical version later, so it can be moved to either side of the screen.

Chicken Pie 4 Tea
  • Members
  • 379 posts
  • Last active: Dec 12 2014 06:46 PM
  • Joined: 18 Aug 2009
Think Ive checked a lot of it so far, just one thing

cl12 send ^{f}
is needed on most peoples pc I think - you had it as t
"Choose your parents wisely"

Bebert
  • Members
  • 84 posts
  • Last active: Jan 03 2011 06:47 AM
  • Joined: 08 Jun 2009
@HelloWorld: fixed it

version with zoom in/out buttons included:

#NoEnv
#Persistent
#SingleInstance force
SendMode Input
SetWorkingDir %A_ScriptDir%  
Menu Tray, icon, Photoshop.ico

CustomColor = 99FF00  
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow  
Gui, Color, %CustomColor%
Gui, Font, s14, Calibri
WinSet, TransColor, %CustomColor% 

Gui, Add, Button, x70 y50 w120 h30 gcl1, Copy
Gui, Add, Button, x190 y50 w120 h30 gcl2, Paste
Gui, Add, Button, x310 y50 w120 h30 gcl3, New.Layer
Gui, Add, Button, x430 y50 w120 h30 gcl4, Select.All
Gui, Add, Button, x550 y50 w120 h30 gcl5, Deselect
Gui, Add, Button, x670 y50 w120 h30 gcl6, Actions
Gui, Add, Button, x790 y50 w120 h30 gcl7, {enter}
Gui, Add, Button, x910 y50 w120 h30 gcl8, Revert
Gui, Add, Button, x1030 y50 w120 h30 gZin, Zoom +

Gui, Add, Button, x70 y85 w120 h30 gcl9, Save
Gui, Add, Button, x190 y85 w120 h30 gcl10, Save.as
Gui, Add, Button, x310 y85 w120 h30 gcl11, Transform
Gui, Add, Button, x430 y85 w120 h30 gcl12, Last Filter
Gui, Add, Button, x550 y85 w120 h30 gcl13, Merge.dn
Gui, Add, Button, x670 y85 w120 h30 gcl14, Flatten.img
Gui, Add, Button, x790 y85 w120 h30 gcl15, Step.Back
Gui, Add, Button, x910 y85 w120 h30 gcl16, exit
Gui, Add, Button, x1030 y85 w120 h30 gZout, Zoom -

Gui, Add, Picture, x0 y45 w1220 h5 GuiMove, side.png
Gui, Add, Picture, x0 y80 w1220 h5 GuiMove, side.png
Gui, Add, Picture, x0 y115 w1220 h5 GuiMove, side.png
Gui, Add, Picture, x0 y45 w70 h70 GuiMove, PhotoshopCS4.png
Gui, Add, Picture, x1150 y45 w70 h70 GuiMove, PhotoshopCS4.png

Gui, Show, x280 y750 NoActivate
return

Zin:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send, ^{=}
sleep 40
send, {v}
return

Zout:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send, ^{-}
sleep 40
send, {v}
return

cl1:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^{c}
return

cl2:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^{v}
return

cl3:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send +^{n}
return

cl4:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^{a}
return

cl5:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^{d}
return

cl6:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send !{f9}
return

cl7:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send {enter}
return

cl8:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send {f12}
return

cl9:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^{s}
return

cl10:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send +^{s}
return

cl11:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^{t}
return

cl12:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^{f}
return

cl13:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^{e}
return

cl14:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^!{e}
return

cl15:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^!{z}
return

cl16:
Gui, Destroy
exitapp
return

uiMove:
PostMessage, 0xA1, 2,,, A
Return

Esc::
Gui, Destroy
exitapp
return




Bebert
  • Members
  • 84 posts
  • Last active: Jan 03 2011 06:47 AM
  • Joined: 08 Jun 2009
cool GUI fluro buttons alternative:

Posted Image


all png's here with Photoshop template:

<!-- m -->http://www.mediafire... ... uttons.rar<!-- m -->

:)

#NoEnv
#Persistent
#SingleInstance force
SendMode Input
SetWorkingDir %A_ScriptDir%  
Menu Tray, icon, Photoshop.ico

CustomColor = 99FF00  
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow  
Gui, Color, %CustomColor%
Gui, Font, s14, Calibri
WinSet, TransColor, %CustomColor% 

Gui, Add, Picture, x70 y50 w120 h30 gcl1, png/Copy.png
Gui, Add, Picture, x190 y50 w120 h30 gcl2, png/Paste.png
Gui, Add, Picture, x310 y50 w120 h30 gcl3, png/NewLayer.png
Gui, Add, Picture, x430 y50 w120 h30 gcl4, png/SelectAll.png
Gui, Add, Picture, x550 y50 w120 h30 gcl5, png/Deselect.png
Gui, Add, Picture, x670 y50 w120 h30 gcl6, png/Actions.png
Gui, Add, Picture, x790 y50 w120 h30 gcl7, png/enter.png
Gui, Add, Picture, x910 y50 w120 h30 gcl8, png/Revert.png
Gui, Add, Picture, x1030 y50 w120 h30 gZin, png/Zoom+.png

Gui, Add, Picture, x70 y85 w120 h30 gcl9, png/Save.png
Gui, Add, Picture, x190 y85 w120 h30 gcl10, png/Saveas.png
Gui, Add, Picture, x310 y85 w120 h30 gcl11, png/Transform.png
Gui, Add, Picture, x430 y85 w120 h30 gcl12, png/LastFilter.png
Gui, Add, Picture, x550 y85 w120 h30 gcl13, png/Mergedown.png
Gui, Add, Picture, x670 y85 w120 h30 gcl14, png/Flatten.png
Gui, Add, Picture, x790 y85 w120 h30 gcl15, png/StepBack.png
Gui, Add, Picture, x910 y85 w120 h30 gcl16, png/exit.png
Gui, Add, Picture, x1030 y85 w120 h30 gZout, png/Zoom-.png

Gui, Add, Picture, x0 y45 w1220 h5 GuiMove, side.png
Gui, Add, Picture, x0 y80 w1220 h5 GuiMove, side.png
Gui, Add, Picture, x0 y115 w1220 h5 GuiMove, side.png
Gui, Add, Picture, x0 y45 w70 h70 GuiMove, PhotoshopCS4.png
Gui, Add, Picture, x1150 y45 w70 h70 GuiMove, PhotoshopCS4.png

Gui, Show, x280 y750 NoActivate
return

Zin:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send, ^{=}
sleep 40
send, {v}
return

Zout:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send, ^{-}
sleep 40
send, {v}
return

cl1:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^{c}
return

cl2:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^{v}
return

cl3:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send +^{n}
return

cl4:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^{a}
return

cl5:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^{d}
return

cl6:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send !{f9}
return

cl7:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send {enter}
return

cl8:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send {f12}
return

cl9:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^{s}
return

cl10:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send +^{s}
return

cl11:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^{t}
return

cl12:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^{f}
return

cl13:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^{e}
return

cl14:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^!{e}
return

cl15:
ifWinExist, ahk_class Photoshop
WinActivate, ahk_class Photoshop
send ^!{z}
return

cl16:
Gui, Destroy
exitapp
return

uiMove:
PostMessage, 0xA1, 2,,, A
Return

Esc::
Gui, Destroy
exitapp
return




Chicken Pie 4 Tea
  • Members
  • 379 posts
  • Last active: Dec 12 2014 06:46 PM
  • Joined: 18 Aug 2009
Well done, looking good and I see you have added zoom buttons, I find this tool bar really handy and with photoshop giving you the option of assigning keyboard shortcuts to your favourite actions, it would be easy for someone to add their favourite actions too. if they wanted

and you see, over 200 people were interested enough to read this post (but were too shy to comment!) and you weren't going to bother posting this.
"Choose your parents wisely"

Bebert
  • Members
  • 84 posts
  • Last active: Jan 03 2011 06:47 AM
  • Joined: 08 Jun 2009
thanks HelloWorld.

I have put extra buttons in the package for ppl who want to modify/customize their shortcuts. The Cinema4D template for the text fluoro effect available on request.

I find it saves a lot of time with the toolbar sitting on the bottom of the Photoshop window.

will post soon a Firefox with sandboxes toolbar -
will include auto clear sandbox for secure online banking and shopping, autokill switch etc,,,




8)

SoLong&Thx4AllTheFish
  • Members
  • 4999 posts
  • Last active:
  • Joined: 27 May 2007
@bebert: why not post at autohotkey.net, its free and easier for everyone.
See <!-- m -->http://www.autohotke...pic.php?t=36756<!-- m -->
Although you can use a browser I suggest a FTP program to maintain / upload your scripts. You can create a documentation web page for each script as some people do if you know a bit of HTML

Bebert
  • Members
  • 84 posts
  • Last active: Jan 03 2011 06:47 AM
  • Joined: 08 Jun 2009
@hugov:

still a bit of a newbie for the advanced functions, just posting basic stuff for launching and combining multiple hotkey combos to one click action.

will check it out, thanks :)

jibz
  • Guests
  • Last active:
  • Joined: --
I saved as a .jsx and when I play the script in CS4 it says line 2 is invalid.
What am I doing wrong?

  • Guests
  • Last active:
  • Joined: --
actually it says error 8 syntex error line 2 -> #NoEnv Please help!
I am new at scripts and would love to see this toolbar work for me.

Chicken Pie 4 Tea
  • Members
  • 379 posts
  • Last active: Dec 12 2014 06:46 PM
  • Joined: 18 Aug 2009

I saved as a .jsx and when I play the script in CS4 it says line 2 is invalid.
What am I doing wrong?


It sound like you havent used autohotkey yet?
you need to download and install the small program autohotkey 1st.
<!-- m -->http://www.autohotkey.com/download/<!-- m -->

Then download the script posted. I would choose the first or second post as the last one with the new png icons doesnt work for me, the icons dont show correctly.
When you copy and paste the script in notepad, save it with the extension .ahk not .jsx
you dont call the script form photoshop but start it separately by double clicking on it. You could make it so tht when you double click on it - it starts photoshop for you - just put a line in the script like
run, D:\PROGRAM FILES\Adobe\CS5\PhotoshopCS5\Photoshop.exe
(change it if your path is different.

ask more questions if you dont understand this!
if you download the graphics from the 1st post there are just 3 files and they go in the same folder as the script.
"Choose your parents wisely"

Bebert
  • Members
  • 84 posts
  • Last active: Jan 03 2011 06:47 AM
  • Joined: 08 Jun 2009
"HelloWorld":

I keep all the PNG's in a PNG folder in the same directory as the script - hence the png/name.png reference in the script.

tested again and works 100% with new PNG's

complete toolkit here:
<!-- m -->https://ahknet.autoh...to ... kit.rar<!-- m -->

Chicken Pie 4 Tea
  • Members
  • 379 posts
  • Last active: Dec 12 2014 06:46 PM
  • Joined: 18 Aug 2009
Thanks, for me to get the new icon set to work I need
photoshop.ico
side.png
photoshopCS4.png
in the same folder as the script

then in a folder called png I put the rest of the png files.

-----------------------
of course you can change the references in the scirpt to suit.
"Choose your parents wisely"