sajin_ss
13 years agoNew Contributor
Handle Thread/BackgroundWorker process on button click
I have doubt to scripting in c# for the following scenario,
On Print click there are thread to process image and it may or may not be take more time depends on image. After Print complete one message box will display to inform user whether print complete or not.
Problem is, before complete process the script is calling to click on message button. I have to delay the process till the Thread/BackgroundWorker process complete.
Code :
var printButton =...["ContentPresenter"]["ImagebuttonPrint"];
printButton["Click"](47, 13);
// thread and BackgroundWorker process is here
// I want to delay the process here till process complete
var okButton=...["ContentPresenter"]["ProcessCompleteMessage"]["ImageButtonOk"]
okButton["Click"](45, 14);
Thanks in advance.
Regards,
Sajin
On Print click there are thread to process image and it may or may not be take more time depends on image. After Print complete one message box will display to inform user whether print complete or not.
Problem is, before complete process the script is calling to click on message button. I have to delay the process till the Thread/BackgroundWorker process complete.
Code :
var printButton =...["ContentPresenter"]["ImagebuttonPrint"];
printButton["Click"](47, 13);
// thread and BackgroundWorker process is here
// I want to delay the process here till process complete
var okButton=...["ContentPresenter"]["ProcessCompleteMessage"]["ImageButtonOk"]
okButton["Click"](45, 14);
Thanks in advance.
Regards,
Sajin