COM Methods reference for IE

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Gibbons
Posts: 93
Joined: 20 Sep 2016, 20:39

COM Methods reference for IE

04 Jan 2019, 17:10

I can't find the references for MS Office programs, but not for IE. Can somebody point me in the right direction?

I'm looking for the equivalent of the link below, but for IE.

https://docs.microsoft.com/en-us/office ... ixedformat

Thanks Much.
Gibbons
Posts: 93
Joined: 20 Sep 2016, 20:39

Re: COM Methods reference for IE

04 Jan 2019, 17:26

Closer. I'm trying to find the command to print the active IE page to a PDF file. I don't see that type of command listed......
User avatar
Xtra
Posts: 2750
Joined: 02 Oct 2015, 12:15

Re: COM Methods reference for IE

04 Jan 2019, 18:00

Printing is controlled by the OS / System not the browser.
You could easily send Ctrl+P and then use winwait, controlsettext, controlclick etc.

HTH
A_AhkUser
Posts: 1147
Joined: 06 Mar 2017, 16:18
Location: France
Contact:

Re: COM Methods reference for IE

04 Jan 2019, 19:57

Maybe trying the ExecWB method (from the link provided by TheDewd):

Code: Select all

#NoEnv
#SingleInstance force
#Warn

OLECMDID_PRINT 				 := 6 ; https://autohotkey.com/board/topic/109628-loop-action-on-files-in-folder-syntax-help/

OLECMDEXECOPT_DODEFAULT      := 0 ; https://autohotkey.com/board/topic/47052-basic-webpage-controls-with-javascript-com-tutorial/page-12
OLECMDEXECOPT_PROMPTUSER     := 1
OLECMDEXECOPT_DONTPROMPTUSER := 2

GUI, Add, ActiveX, vWB w400 h400, Shell.Explorer
WB.navigate("https://duckduckgo.com/")
while (WB.busy || WB.readyState <> 4)
    sleep 100
GUI, Show, AutoSize
return

!i::WB.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER)
my scripts
Gibbons
Posts: 93
Joined: 20 Sep 2016, 20:39

Re: COM Methods reference for IE

06 Jan 2019, 18:17

OK. Thanks for the help. I'm going to 'old school' this by just writing the script to click on the buttons in the right order.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: MrHue, Rohwedder, songdg and 336 guests