Moving to Photoshop Scripting.
i don't know anything about scripting, but would it be possible to create a script which 'clicks' a keyboard button? which could then be used as / in an action?
Let say one could be program a script to click a key an action was waiting to see. What would trigger the script to run? Of if you ran the script and it generated the click before the actions is waiting on the click what would stop the system keyboard handler from giving that click to the next process to get keyboard focus?
As far as I know, you can't use a script to simulate key presses, as that would could lead to security hacks. You can record what the key presses do, if they're a shortcut for PS.
i forgot to mention which key press i specifically want to be scripted:
i need a script for the up & down arrow,
because recording the key press as an action only 'sets time on timeline'. but i need the action 'set inpoint /outpoint' which is triggered by pressing the up or down arrow and cant be found in the menu or anywhere else.
so the only solution i see is adding a script to the action which can be triggered by F1-12 as seen here: TRANBERRY.COM • Adobe Photoshop Scripting
hope that helps. and i hope you can help, because this could make my workflow literally 10x faster
What program are you using? Your posted was moved to the Photoshop Scripting forum. Are you using PS? I'm not aware of using the arrow keys toi set the in and out points of a video.
yes, i am using PS and i think once you create a timeline and enable timeline shortcut keys the hotkeys should work as mentioned. up/down for in / outpoint and left/right for frame forward/ backward
2 people found this helpful
Keystrokes can be sent to Photoshop from an external program. It OS dependant!
Applescript, VBS, C++,C# programs can do it.
are there tutorials for this? because i really dont have a clue about how this is done i use a windows 10.
2 people found this helpful
I have written my own that you can have.
Download the zip file, unzip and copy the three files to Photoshops Presets/scripts folder.
One file is an exe, this does the send strokes
There are two jsx files
UP.jsx this send an up arrow.
Down.jsx this sends a down arrow.
If Photoshop was open close and restart Photoshop.
When recording your action, select "Insert menu item" from the action palette fly out menu
File - scripts - select the up or down script.
Rest of your action then same again for the up/down arrow.
Thank you very much, I really appreciate your help!
Unfortunately it doesn't seem to work for me... it only flashes the busy symbol for a short time but nothing happens, not even an error message or anything.
Does it work for you? Or anybody else?
Could it be my computer? I'm now home from work, with a german win 10, german photoshop, does that change anything? If so I will try again tomorrow at work where everything's english.
edit: photoshop cs6
I have tested the scripts with Windows 10 and Photoshop CS6 and they both work for me.
I tested used a selection and then running the script, it should move the selection 1 pixel at a time.
I haven't tried with timelines though.
hmmm that's weird... i tried moving a selection too but that didn't work either... i did everything like you said so if it works for you there must be something wrong on my end.
i don't have an idea what could possibly fix the problem, so i'll have to wait until tomorrow to see if working with english equipment helps.
You could test to see if the program is working for you by running this script from ExtendScript Toolkit.
#target photoshop; var SCRIPTS_FOLDER = decodeURI(app.path + '/' + localize("$$$/ScriptingSupport/InstalledScripts=Presets/Scripts")); $.setenv("sendkeys","b8+7"); File(SCRIPTS_FOLDER +"/PSsendkeys.exe").execute();
What should happen is the brush is selected, the Opacity is set to 80 and the Flow set to 70
somehow that doesn't work either...
the only difference i can spot is that what is blue on here ("sendkeys","b8+7") is red in my toolkit.
maybe anything i have to do about the PSsendkeys.exe? i just put it in the scripts folder with everything else
I am wondering if you have the runtime installed on that machine. the exe is a .NET 4.5 program
The runtime can be downloaded from Download Microsoft .NET Framework 4.5 from Official Microsoft Download Center
Worth a try?
i really wish i could repay your amazing help with results, but I tried and it says I already have it installed.
yes, maybe you're right. i will definitely try again tomorrow at work where everything's english so there shouldn't be a language barrier. and if nothing helps i'll give autohotkey a shot.
going to bed now though. a massive thank you for everything, I'll update when I'm back up. all the best
it frikkin works! =DDDDD you are amazing! it still showed the same message as JJMack posted, but I simply clicked 'Don't run' and everything works the way it's supposed to! Aaaaaah this is incredible, you just made PS a valuable animation tool, thank you sooo very much!
I really don't know what could be the reason for it not to work at home.
Home: Windows 10 German, Photoshop CS6 German
Work: Windows 8 English, Photoshop CC English
But that shouldn't really make that much of a difference, right? I thought script is always in english?
The screen is Windows Smartscreen and will come up with anything that didn't come from your machine, most people disable this.
Instructions can be found here.
Glad you got it to work!
What is your final workflow? You press F1 to move back 1 frame and the layer at the playhead is also selected? F2 to move forward and select that frame?
How are 2-exposure frames handled? Does the selected layer and the playhead get out of sync?
Thanks for figuring this out.
@SuperMerlin, Does your link still work? The file is a .vi file. I don't see the .zip.
Could you please post the original file again? I'd really appreciate it.
For my part, this "magic" program by SuperMerlin works with a ps32bit version but I am unable to make it communicate with ps64.
The problem neither seems related to the string file-path, nor to a security or compatibility file properties.
So it leads me to the question :
does this "magic" exe can work with ps64 ?