Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I have this code in VB Excel. This code, will run Photoshop and then automatically run the script which name is 'MyPSScript'.

CreateObject("Photoshop.Application").DoJavaScript ("D:/MyPSScript.js")

The problem is when the Photoshop starts, it does not come to top in windows. I mean it starts in background of Excel window. So I need to know how can I make Photoshop in front of other windows. Like for example making it as Always-on-Top via script, or simply select its window to be on top of others.

Note: Only Photoshop Script Please.

What I have tried:

I searched the net but no luck.
Posted
Updated 16-Jun-22 6:56am
v2

How about asking this in the forums for Photoshop? You're going to find the most experience with the product over there.

Google Adobe Photoshop Forums[^]
 
Share this answer
 
I found my answer from Stackoverflow.

JavaScript
appRef.BringToFront
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900