supersonic Posted May 31, 2010 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
JFX Posted May 31, 2010 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]"))
supersonic Posted June 1, 2010 Author Posted June 1, 2010 Thank you, good idea! Instead of hiding the window is it possible to set it into background?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now