Jump to content
Developer Wiki and Function Reference Links ×

How to run script automaticly


Recommended Posts

  • 2 weeks later...

You can make a menucommando that will run your script and at the ending call the rpint dialog:

PROCEDURE BlaBla;
BEGIN
{your code}
DoMenuTextByName('Print',0);
END;
RUN(BlaBla);

I gues you can do the same when you open a file (not tested):

PROCEDURE BlaBla;
BEGIN
DoMenuTextByName('Open',0);
{your code}
END;
RUN(BlaBla);

As far as i know it's not possible to automatically run a script at the begin or end of the program.

Link to comment
  • 2 weeks later...

You can make a menucommando that will run your script and at the ending call the rpint dialog:

PROCEDURE BlaBla;
BEGIN
{your code}
DoMenuTextByName('Print',0);
END;
RUN(BlaBla);

I gues you can do the same when you open a file (not tested):

PROCEDURE BlaBla;
BEGIN
DoMenuTextByName('Open',0);
{your code}
END;
RUN(BlaBla);

I tried it to update automaticly a "date PIO" so that I always know at what time my file is printed. Well, it does not work. For some raison, it prints the file before updating the drawing. I tried to add wait(1) and redrawall to my script to let the time to update, is doesn't change anything....

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...