Solved

Creating OLE Automation for Photoshop in VB

Posted on 1998-10-01
1
495 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

726 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