Hello! I'm using the Windows Photo Printing Wizard in my script. Simplified example: #include <ScreenCapture.au3>
#include <File.au3>
Local $sTempFile_1 = _TempFile(@TempDir, "~ISO_", ".bmp")
Local $sTempFile_2 = _TempFile(@TempDir, "~ISO_", ".bmp")
local $GUI = GUICreate("Example", 200, 200)
GUISetState(@SW_SHOW)
Sleep(250)
_ScreenCapture_CaptureWnd($sTempFile_1, $GUI)
Sleep(500)
_ScreenCapture_CaptureWnd($sTempFile_2, $GUI)
If Not @error Then
Local $CommDlg = ObjCreate('WIA.CommonDialog')
Local $Files = ObjCreate('WIA.Vector')
If IsObj($CommDlg) And IsObj($Files) Then
$Files.Add($sTempFile_1)
$Files.Add($sTempFile_2)
$CommDlg.ShowPhotoPrintingWizard($Files)
FileDelete($sTempFile_1)
FileDelete($sTempFile_2)
EndIf
EndIf
The script runs fine, but unfortunately Microsoft decided to enable "Fit to Frame" by default and there's apparently no way to turn it off, so it has to be manually disabled each time I start the wizard. The script pauses while the Wizard is showing, so I can't uncheck the checkbox within my script. Is there any way to run $CommDlg.ShowPhotoPrintingWizard($Files) in the background without using a second script? I tried adlibbing, but the script still pauses.