cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

How do I use other code in between functions that wait for input?

CHASEONHO
18-Opal

How do I use other code in between functions that wait for input?

I try to print all drawing file.

I using ProPrintExecute().

ProPrintExecute() called MS_PRINT_MGR and appear print dialog.

We try to accept print automatic.

But ProPrintExecute() wait user inputs Accept or Cancel.

I try to use Auto Accept through the Windows API, but the next statement will not run until ProPrintExecute () is finished.

 

Is there a way to run the code after ProPrintExecute is called?
For example, ProPrintExecute runs in the background or starts the code that appears after ProPrintExecute.

 

Warm Regards

SeonHo

 

Thanks

 

 

 

 

2 REPLIES 2

Never tried but can check with multi thread once. 

 

A different topic , but below might be useful:

https://stackoverflow.com/questions/21771701/reading-multiple-files-parallel-into-a-buffer

Run the program that have a following sequence before ProPrintExecute ().

1. Continue checking the print window in the while statement (infinite loop).
2. If the print window exists, press the OK button.
3. The program ends

I can now automatically accept printing with the above routine.

 

thanks

Top Tags