cursed wrote:
I am trying to do the same thing without the search. After login in with my user name and password, i need to be able to create a new window under same session. I am using IE7....
So, basically, i wanna be able to press F1, open new window of any URL under same cookie session. or IE window session, b/c i have to login with a user name and password, when the new window opens i have to re-enter my username and password everytime.
I don't think that you can do this.
The whole point to having "session cookies" set by a server is to force all subsequent interactions with that session cookie to take place in the same browser "instance". What that means for you is that, attempting to open a new window will start a new instance of your browser - without the session cookie. And since the new window ("browser instance") doesn't have your instance-specific session cookie, the server asks you to authenticate again.
What you'll need to do is to manipulate the
first session window (by using the IE_LoadURL command to navigate to another page, for example).
cursed wrote:
I dled COM.ahk, setworkdir, copy any paste your code, and replaced the "blah" with the window title of the page i want to display. When i run the script, it executes then close. No new window was made and nothing happens.
The code that I included was a "snippet" - not meant to be a fully-running example. If the window opened, navigated to the page you desired, and then closed, then the script succeeded - that was all it was written to do. From the above example (and note the inserted comment in red):
Code:
Loop ; until the search web page is fully loaded
{
if (COM_Invoke(pweb, "ReadyState") = 4)
break
}
; Your code for manipulating this downloaded page, or navigating to another page, should go here.
COM_Release(pweb)
cursed wrote:
The I am new to COM.ahk and i dont really understand the functions and what they do and there are no tutorials on this so its hard for newbies to read.
Oh, do I share your pain!

The challenges here are many, because you not only have to understand the basics of AHK,
but you have to understand at least the basics of how to make use of Microsoft's WebBrowser and Internet Explorer controls. If you want to manipulate the web pages that you're seeing in the control, then you need
much more than a basic understanding of the Document Object Model (DOM) and/or Microsoft's mshtml interfaces, connection methods, and element types. So... even trying to write a tutorial that's "easy" enough for newcomers would be very difficult, indeed.
I'm in the middle of a big coding project, which will take me until the end of June. If there's still interest on this subject in July (and if no one else has begun the effort), I'll start to draft a tutorial that collects and exhaustively documents snippets of COM/DOM/mshtml code, oriented specifically to AHK users. But while I will try to make it as understandable as I can, I can make
no promises that this tutorial will be "accessible" (readily understandable) by AHK newcomers. Fair enough?