Ok, now I get this error:
Quote:
Function Name: "Navigate"
Error: Object is not connected to server
(0x800401FD)
Will Continue?
This is the code i'm using:
Code:
COM_Init() ; Initialize COM - requires COM.ahk library
pageSearched:="Gmail: Email from Google"
Loop, % COM_Invoke(psw := COM_Invoke(psh:=COM_CreateObject("Shell.Application"), "Windows"), "Count")
{
LocationName:=COM_Invoke(pwb:=COM_Invoke(psw, "Item", A_Index-1), "LocationName")
IfInString,LocationName,%pageSearched%
Break
COM_Release(pwb) ;didnt break so release the one we didnt use
}
COM_Invoke(pwb, "Navigate", java)
COM_Release(pwb)
COM_Term()
Return
Is there any criterea I should be meeting for the "pagesearched" variable? I'm not even sure which text to put in there. If it is just looking for the wintitle, if that is case sensitive, or if you can just put in part of the wintitle, or if it is looking for something completely different. That may not be my problem, but i'm not completely sure on how that works.
Thanks for the help Tank.