Solved

Creating OLE Automation for Photoshop in VB

Posted on 1998-10-01
1
484 Views
Last Modified: 2012-08-14
This is a loaded question. How do I create a VB application that automates a bunch of Actions in Photoshop? The answer has to do with OLE Automation. That's about all I know. Please help!!!
0
Comment
Question by:hobster
1 Comment
 
LVL 1

Accepted Solution

by:
ylarvor earned 30 total points
ID: 1437684
if you want more information, send a mail to ylarvor@mygale.org

*****************************************************
Create an OLE SERVER and use SendKey to command an App

****************************************************

                              Exe: MyProject
                              Form: MyForm
                              Control Command1: MyButton

MyProject:Declaration

Dim ServerOLE as object

Sub MyForm_Load()
Set ServerOLE = CreateObject("MyActiveX.MyClass")
End Sub

Sub MyButton_Click()
' Open an application before give orders
' result = Shell("c:\windows\Notepad.exe", 3)

ServeurOLE.option1

End Sub


                              ActiveX EXE: MyActiveX
                              Class: MyClass


Public Sub option1()
' File / Open / Filename = Fichier.txt
SendKeys "%{F}", True
SendKeys "O", True
SendKeys "Fichier.txt"
End Sub

0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now