OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 15-04-2013, 06:29
0meg@ 0meg@ is offline
Member
 
Join Date: Nov 2010
Posts: 37
Default Can I apply Color Curve Effect by using VBA?

Hi all. Help me please. I need to open Color Curve dialog (Arrange Menu), i am doing it by:

Sub ApplyCC()
SendKeys "%{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{DOWN}{RIGHT}{DOWN}{DOWN}{DOWN}{ENTER}", True
End Sub

and then i need execute Open preset button and choose preset by known name (the directory and preset are static). Can VBA do it for me?
Reply With Quote
  #2  
Old 17-04-2013, 15:30
SteveDude SteveDude is offline
Senior Member
 
Join Date: Dec 2005
Location: Salina, Kansas USA
Posts: 149
Default ...

Which version of CorelDraw are you using?
Reply With Quote
  #3  
Old 18-04-2013, 03:02
0meg@ 0meg@ is offline
Member
 
Join Date: Nov 2010
Posts: 37
Default

Corel Draw X4
Reply With Quote
  #4  
Old 20-04-2013, 11:08
SteveDude SteveDude is offline
Senior Member
 
Join Date: Dec 2005
Location: Salina, Kansas USA
Posts: 149
Default ...

Sorry, I don't have X4 any more, but you might want to look at

Application.FrameWork.Automation.Invoke(GUID)

The way I find the proper GUID is create a toolbar with just the item I am looking for and then export just that toolbar to an XML file and then open it in notepad.

You could also just try recording your steps and then look at the resulting code, then modify it to do what you want.
Reply With Quote
  #5  
Old 22-04-2013, 08:32
0meg@ 0meg@ is offline
Member
 
Join Date: Nov 2010
Posts: 37
Default

SteveDude thank you so much, i totally forget about recording macro, only handmade code
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
curve and contourgroup effect shark Macros/Add-ons 1 02-05-2011 19:40
ComboBox with clicking to apply value gorgo2 CorelDRAW/Corel DESIGNER VBA 21 11-06-2010 10:54
Change Text ... then Curve/Line segments to same color dungbtl CorelDRAW/Corel DESIGNER VBA 4 22-02-2008 08:02
Apply Envelope to bitmap RonHill General 2 19-06-2006 21:14
Apply Outline - Scale with Image geopig CorelDRAW/Corel DESIGNER VBA 4 06-05-2004 07:23


All times are GMT -5. The time now is 09:18.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com