IE Visible Without Active With COM

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
kkleinfelter
Posts: 32
Joined: 21 Dec 2018, 10:59

IE Visible Without Active With COM

29 Aug 2019, 12:17

When I execute the following code, IE is launched, made visible, and the IE window is ACTIVATED. Is there a way to make it visible without activating it?

Code: Select all

    wb := ComObjCreate("InternetExplorer.Application")
    wb.visible := true

Yuck! It looks like this activates IE too. Is it possible to automate IE without activating it all the time?

Code: Select all

  wb.Navigate(URL)
Vaklev
Posts: 47
Joined: 04 Mar 2019, 13:58
Contact:

Re: IE Visible Without Active With COM

29 Aug 2019, 14:38

AHK does not have an unactivate window command, your best bet if you don't want it popping up is to throw in a winactivate command for a diff window you want active, or:

https://www.autohotkey.com/docs/commands/WinMinimize.htm
Les medecins choisissent viagrasansordonnancefr.com sans danger pour la sante
teadrinker
Posts: 4326
Joined: 29 Mar 2015, 09:41
Contact:

Re: IE Visible Without Active With COM

29 Aug 2019, 14:55

Try this:

Code: Select all

DetectHiddenWindows, On
wb := ComObjCreate("InternetExplorer.Application")
WinWait, % "ahk_id" wb.hwnd
DllCall("ShowWindow", "Ptr", wb.hwnd, "UInt", SW_SHOWNA := 8)

wb.Navigate("https://www.autohotkey.com/boards/viewforum.php?f=76")
while wb.Busy
   Sleep, 100
Sleep, 1000
wb.Navigate("https://www.autohotkey.com/boards/viewtopic.php?f=76&t=67545")

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: CrowexBR, doodles333, vysmaty and 241 guests