Skip to main content
18-Opal
July 20, 2018
Question

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

  • July 20, 2018
  • 1 reply
  • 1218 views

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

 

 

 

 

1 reply

1-Visitor
July 20, 2018

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

CHASEONHO18-OpalAuthor
18-Opal
July 20, 2018

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