Hello Guest it is December 14, 2019, 01:15:06 PM

Author Topic: Plugin forced calls  (Read 1846 times)

0 Members and 1 Guest are viewing this topic.

Plugin forced calls
« on: May 29, 2010, 11:01:40 AM »
Hi,
Don’t anyone know, is there a way to force a plugin to be run "called".  From what little I understand. Normally a plugin is called every 100mS.  I would like to be able to call a plugin from within a macro and have it run without delay!  Any ideas…


MiniDave ???

Offline poppabear

*
  • *
  •  2,233 2,233
  • Briceville, TN, USA
    • View Profile
    • S S Systems, LLC
Re: Plugin forced calls
« Reply #1 on: May 30, 2010, 03:59:49 AM »
Yes, Use  the VB  "NotifyPlugins( some integer here)  then in your Plugin area in Machdeviceimplementation.cpp

in the notify code.

void   myNotify ( int ID)
{
   if( ID == myIntegerID ) //this is the integer you send from the VB NotifyPlugins(myIntegerID)
                 {
           do your code here;
                 }
}

scott
Commercial Mach3 & Mach 4, Design/Build/Retrofit CNC and Industrial machines.
http://www.ss-systems-llc.com/
Re: Plugin forced calls
« Reply #2 on: May 31, 2010, 05:00:32 PM »
 ;D


Thanks Scott, Great help.

MiniDave