Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Region ;************ Includes ************
- #Include <IE.au3>
- #EndRegion ;************ Includes ************
- $sFileToPrint = @ScriptDir & "\print.html"
- ; Delete registry keys
- RegDelete("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup", "footer")
- RegDelete("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup", "header")
- ;
- $oIE = _IECreate($sFileToPrint)
- _IEAction($oIE, "print")
- _IEQuit($oIE)
- ; Restore old registry keys
- RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup", "footer", "REG_SZ", "&u&b&d")
- RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup", "header", "REG_SZ", "&w&bSeite &p von &P")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement