supersonic 4 Posted May 31, 2010 (edited) Hi! When opening the document properties window for a printer the Windows Taskbar will be displayed. I would like to avoid that. Is there a way? Here's a code sample: #include <WindowsConstants.au3> Local $hGUI = GUICreate("", @DesktopWidth, @DesktopHeight, 0, 0, $WS_POPUP) Local $sPrinter = "FreePDF" GUISetBkColor(0x484848, $hGUI) GUISetState(@SW_SHOW, $hGUI) WinSetTrans($hGUI, "", 234) RunWait(@ComSpec & ' /C ' & @WindowsDir & '\system32\rundll32.exe printui.dll,PrintUIEntry /e /n"' & $sPrinter & '"', @WindowsDir & '\system32', @SW_HIDE) GUIDelete($hGUI) In order to work you probably have to define an other printer for '$sPrinter'. By the way: I'm still looking for a way to replace 'RunWait()' with 'DllCall()'. So, if anybody has a suggestion... Greets, -supersonic. Edited May 31, 2010 by supersonic Share this post Link to post Share on other sites
JFX 10 Posted May 31, 2010 ControlHide('','', WinGetHandle("[CLASS:Shell_TrayWnd]")) RunWait(@ComSpec & ' /C ' & @WindowsDir & '\system32\rundll32.exe printui.dll,PrintUIEntry /e /n"' & $sPrinter & '"', @WindowsDir & '\system32', @SW_HIDE) ControlShow('','', WinGetHandle("[CLASS:Shell_TrayWnd]")) Share this post Link to post Share on other sites
supersonic 4 Posted June 1, 2010 Thank you, good idea! Instead of hiding the window is it possible to set it into background? Share this post Link to post Share on other sites