Solved

Creating OLE Automation for Photoshop in VB

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

867 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

20 Experts available now in Live!

Get 1:1 Help Now