How to set whether the source displays the User Interface?

You can use the IfShowUI property to set whether the Source displays the User Interface.

Javascript Code:

function btnScan_onclick() 
  {
       DWObject.SelectSource();
       DWObject.OpenSource();
       DWObject.IfShowUI = false;  // don’t display the User Interface
       DWObject.IfDisableSourceAfterAcquire = true; // disable the Data Source User Interface after acquire all images
       DWObject.AcquireImage();
  }