Hasher Posted February 26, 2007 Share Posted February 26, 2007 Hi Seems I have banged my head again the wall of this one and finally have to ask the question. I have been playing with attaching to IE7 windows before passing too IE.au3. The probelmsI ahve been having are attaching and passing to IEAttach. I cut this down I hope you get the idea ;This code detects top level of IE7 and tabs but doesnt attach. I have a feeling this should work but cant get it to attach to _IEAttach $title = WinGetTitle("classname=IEFrame","") $oIE = _IEAttach($title,"Title") ;Played with this but it doesnt attach either, it should return something like "Google -" $t1 = StringInStr(WinGetTitle("classname=IEFrame",""),"-") $title = StringMid(WinGetTitle("classname=IEFrame",""),1,$t1) $oIE = _IEAttach($title,"Title") ;This works great on the top document but doesnt pick up tabs , I would rather use handles if possible in case two indentical webpages are open $t1 = StringInStr(WinGetTitle("classname=IEFrame",""),"-") $t2 = StringMid(WinGetTitle("classname=IEFrame",""),1,$t1) $title = WinGetHandle($t2,"") $oIE = _IEAttach($title,"HWnd") Any suggestions ....??? Thanks in advance !! Firefox's secret is the same as Jessica Simpson's: its effortless, glamorous style is the result of shhh extensions! Link to comment Share on other sites More sharing options...
Hasher Posted February 26, 2007 Author Share Posted February 26, 2007 W00T !!! I got it ;-) Just removed the trailing " -" !! $t1 = StringInStr(WinGetTitle("classname=IEFrame",""),"-") $title = StringMid(WinGetTitle("classname=IEFrame",""),1,($t1 - 2)) Firefox's secret is the same as Jessica Simpson's: its effortless, glamorous style is the result of shhh extensions! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now