I want to avoid all those hardcodes as Send ^p and so on.
So far I know that there are 3 different ways to open Print page, but I dont know how to set up it forward (it would be best if I dont need to play with Print page and instead of that I just call DLL or IE command to print("pdf", "location") or something like that.)
Code: Select all
PostMessage, 0x111, 260,, Shell DocObject View1, A ;WM_COMMAND := 0x111 ;Print...
Code: Select all
for wb in ComObjCreate("Shell.Application").Windows
if InStr(wb.FullName, "iexplore.exe")
wb.document.parentWindow.print
Code: Select all
pwb.Navigate("javascript:window.print()")