[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Creating OLE Automation for Photoshop in VB

Posted on 1998-10-01
1
Medium Priority
?
513 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

656 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