Jump to content

Schlitzgesicht

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Schlitzgesicht

  1. I know, but since ShowPhotoPrintingWizard isn't technically "part of the script", it runs in a seperate thread anyway I assumed, like ShellExecute/ShellExecuteWait.
  2. 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.
  3. No, it's not a secret and it doesn't even have any beautiful 3D graphics, but it has an extremely specific purpose. It imports recorded data from an old scientific DOS program in a proprietary format and plots a graph with 10000-100000 data points on average. Plotting with GDI was slower by several magnitudes, so I could only plot static graphs. Now, with opengl I was even able to make the graphs interactive with panning, zooming, stretching and other fancy stuff. Matlab would have been the ideal program to create this project, if its runtime library wasn't that huge. The entire library needs to be loaded before it even does anything. IIRC that was well over 500 MB... With Autoit and your helpful files I could create a standalone program that is faster and takes up just a couple of MB.
  4. Thank you Lars for these awesome examples. They helped me a lot in creating my little OpenGL project. I ran into a stupid problem though. My compiled project only worked inside the script dir. When I moved it to another folder OpenGL failed to initialize sometimes, depending on which folder i moved it to. It took me way too long to figure out why: Func GetProjectPath() Local $p = "" While Not FileExists( $p & "Includes\Utilities.au3" ) $p &= "..\" WEnd Return $p EndFunc Setting a sane upper limit solved my problem
×
×
  • Create New...