• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

I want to make small software using winform

Explorer ,
Jul 01, 2021 Jul 01, 2021

Copy link to clipboard

Copied

I have basic knowledge of winform, but I don't know how to connect API between winform and photoshop2021 to make a small software for my school, main task is to manage student's card photo
I want to make a function that can run on jsx file, can anyone help me how to connect and a small code for a button to run on jsx file so that I can understand and follow...thanks

TOPICS
Actions and scripting

Views

220

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Jul 01, 2021 Jul 01, 2021

Copy link to clipboard

Copied

Can you use the winform library in Photoshop. Is there a photoshop plug-in that can use it.  Photoshop Scriptingsupport DOM would not support it.  If there is some JavaScript support for it you may be able to use it with Photoshop.  Adobe uses a very old javascript version, If there is a Photoshop Plug-in that can use winform and that plug-in has action support programmed in,  You may be able to use it in a photoshop script using action manager code..

 

There a just a handful of Photoshop script experts that participate here.   I only hack at Photoshop scripting I'm not an expert. Hopefully  an expert will answer. Its easy to run a script from a shortcut. To add a button to Photoshop you would need the create a Photoshop extension.    Script normally have menu items in menu File>Scripts>Script Name or, menu File>Automate>Script Name... .  Photoshop Plug-in script are added to menu File>Automate>Script Name ... they can be recorded in action and they will not display their Dialog when you play the Action. The action will pass the setting record in the action step by the plug-in when the step was recorded. Thar action can be batched.

JJMack

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 01, 2021 Jul 01, 2021

Copy link to clipboard

Copied

Hi @Cavin House,

I assume by Winform you allude to something included in the .Net platform or Windows ecosystem to create a UI based application(not looked into Win programming for years now so pardon me if I am outdated.), if yes then I can safely conclude that you are on a Win machine. Now the option that you have is to use the COM interface of PS and write your code using the language you use in your project which in my guess would be C#. I found an example of doing this using Python, see the following article

Photoshop scripting with Python

So in your case, you will have to find a library that allows you to load the COM objects and you should be good to go. See one such library that I could find, it seems to be a paid library but it will guide you in the right direction in case you need to find a free one.

PsDotNet

-Manan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 02, 2021 Jul 02, 2021

Copy link to clipboard

Copied

LATEST

This isn't an answer to your question, but it's just a small point that might be useful to know. I have seen people spend time on projects built around Adobe apps, only to find later they can't do the job, so this could save time to know. This may not be relevant to your situation at all.

 

If you make an app that uses Photoshop, everyone who uses the app needs a subscription for Photoshop. Their own subscription in their own name, because it can't be shared. So you could not, for example, make an app for students to use, or for a shared computer in a school office. If you make an app for named administrators to use, they would each need a Photoshop subscription.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines