Skip to main content
Participating Frequently
June 15, 2021
Question

How to make a Script for press keyboard?

  • June 15, 2021
  • 3 replies
  • 2563 views

Hi everyone, I have a problem in creating an action  on last filter step for liquify, so is there any way I can emulator ctrl+F with scripts work on photoshop?

Thank!

This topic has been closed for replies.

3 replies

Jeff Arola
Community Expert
Community Expert
June 15, 2021

You can put Ctrl+F (Last Filter) into an action using Insert Menu Item from the Actions panel flyout menu, but it needs to be recorded when there is no last filter to use, like just after youv'e opened photoshop.

 

 

 

03KRAuthor
Participating Frequently
June 16, 2021

I can't do it for Liquify 😞

Kukurykus
Legend
June 16, 2021

What Photoshop Release you have that you can check in Help / About'?

Kukurykus
Legend
June 15, 2021

In CS6 you could use:

runMenuItem(stringIDToTypeID('lastFilter'))

But in CC 2021 default Ctrl & Alt & F remembers Liquify from only previous Photoshop session.

Bojan Živković11378569
Community Expert
Community Expert
June 15, 2021

I do not understand what exactly you want to ask. Do you run action or script? If you want to press some keyboard shortcut on your own or to do something else while running/playing action then you can:

  • turn modal dialogue what is useful for Open command, Place command, some other dialogues to adjust settings
  • insert stop then to continue playing action after performing some action manually.
03KRAuthor
Participating Frequently
June 15, 2021

Sorry, i mean is there a way to write a script press ctrls+F?

Kukurykus
Legend
June 15, 2021

Save it as lstStp.jsx to Presets / Scripts of your Photoshop folder. Launch Ps and on Actions panel click on last step of your action you want it add after. Then by the same panel menu select 'Insert Menu Item' and choose File / Script / lstStp:

 

cmmnd = 'CreateObject("Wscript.Shell").SendKeys "^f"';
(vbs = File(Folder.desktop + '/.vbs')).open('w')
vbs.write(cmmnd), vbs.close(), vbs.execute()