Skip to main content
3月 20, 2009 12:27 下午 UTC
问题

run mapkey

Look at the documented restrictions on ProMacroExecute().

Bob

Bob Monat
Jerand Technical Services, Inc.
bob@jerand.com
www.jerand.com
1-317-875-6087


On Fri, Mar 20, 2009 at 12:56 AM, Nikhil Gothankar <
-> wrote:

> Dear Friends,
>
> I am having a mapkey. it works fine under normal pro/e working, but if i
> try to run it using tollkit via macro functions *ProMacroExecute *it
> return -26 (PRO_TK_NOT_VALID).
>
> mapkey new @MAPKEY_NAMEnew1;@MAPKEY_LABELnew1;~ Command `ProCmdModelNew`
> ;\
> mapkey(continued) ~ Select `new` `Type`1 `Drawing`;
> ProStringToWstring( wmacro,"~ Command `ProCmdModelNew` ;~ Select `new`
> `Type`1 `Drawing`;");
>
> //ProTKFprintf(fp,"status=%d\n",status);
>
> status = ProMacroLoad( wmacro );
>
> //status = ProMacroLoad( L"%@MAPKEY_LABELhn_ew" );
>
> //ProTKFprintf(fp,"ProMacroLoad:%d\n",status);
>
> status = ProMacroExecute();
>
> i am trying to run this mapkey on some ok return of some UI message dialog.
>
>
>
> Thanks & Regards
>
> Nikhil Gothankar
>
>