ComObjCreate Private Browser

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Portwolf
Posts: 161
Joined: 08 Oct 2018, 12:57

ComObjCreate Private Browser

11 Nov 2018, 13:31

Hi there!

Anyone has any clues on how to create an IE object, but with private browsing?

This is a part of a much larger (700 lines) prog to test a website and it makes one critical error.
If the program is interrupted while checking the logged in part of the website, it goes straight there as soon as it reloads after the fail.
I know i can setup the IE options to clean up on exit, but i'd like to make it independent of them.

I got this:

Code: Select all

ie := ComObjCreate("InternetExplorer.Application")
ie.Visible := True
WinActivate,% "ahk_id " hwnd:=ie.Application.Hwnd
ie.Navigate(PortalLink)
IEWait(ie){
while ie.busy || (ie.document && ie.document.readyState != "complete") || ie.readyState!=4
Sleep 10000
}
IEWait(ie)
Standard stuff right here, but i cannot see how to make it a private browser window.
Thanks in advance :)

:mrgreen:

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], RandomBoy and 275 guests