Skip navigation
Currently Being Moderated

How to wait for ExecPlaceRequest

Jan 5, 2014 2:27 AM

Tags: #illustrator #plug-in



I am trying to write a "tester" plugin (CC) that will test the "real" plugin using SendMessage to send messages to it. Things like kSelectorAIToolMouseDown etc.


This is working in the sense that the group art is indeed being drawn, but the problem is I need to synchronize the test plugin code on the drawing code / results and I have not found a good way to do that.


E.g. the "real" plugin invokes an ExecPlaceRequest to draw art as the result of a mouse up event, but that is not immediately visible for the tester plugin and the tester plugin should wait for that.


So I guess I have two questions


- Is this a good approach to write tests for a AI plugin?

- How can I synchronize my tester plugin and make it only continue when all actions/updates/etc as the result of processing a message are finished.


All tips warmly welcomed!





  • Currently Being Moderated
    Jan 7, 2014 11:07 AM   in reply to

    This is probably simplistic, but why not send a notifier out when its completed?

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points