Jump to content

Recommended Posts

Posted

You guys were talking about cookies, IE Windows, and authentication ("logged in").

If one IE window session is authenticated with yahoo with a per-session cookie, how can _IECreate or _IEAttach attach to that specific session?

If you have only one IEXPLORE.EXE running then all instances should share the session cookie. If you have more than one, _IEAttach to one you know has the session cookie you want... if you want a new instance, RUN a new IEXPLORE.EXE... if you want to open a new window with the same session as an existing window, _IEAttach to that window then use $oIE.navigate2("new-url", 1) -- the ,1 tells it to open a new window...

Does that give you some ideas?

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Posted

Not sure if this has been mentioned. I just drank a bunch of energy drinks and now i'm just crashed, but i think it has to do with Cookies. IE automatically uses the cookies available, and cookies are replaced every time you sign in with a different login.

Now i'm gonna go get a cookie. Bye

Posted

In my day we called that the munchies... but it had nothing to do with energy drinks...

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Posted

So Dale, I'm able to attach to an authenticated session of IE and make a new window (navagate2) but I'm having problems hiding it. I've tried winsetstate and $oIE.Visible = 1 but couldn't get them to work. Is there a way to hide it (or better yet, not create it in the first place while still being able to get data and not touch the first window?

#include <IE.au3>

Opt("WinTitleMatchMode", 2)
$oIE = _IEAttach("Gmail")
$s_url = "http://mail.google.com/mail/"

$oIE.navigate2($s_url,1)
Sleep(1000)
$oIE2 = _IEAttach("Gmail")
$oIE2.Visible = 0
$sText = _IEBodyReadText ($oIE2)
MsgBox(1, "TESTING", $stext)

;then down here I'd do some timed stuff while reusing the same hidden window
;most importantly leaving the main (unhidden) window alone.

P.S. I'm only hijacking this thread because I believe it's the same thing the OP wanted to do. :whistle:

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...