AzKay Posted October 4, 2006 Share Posted October 4, 2006 Just say ive got this: $oIE = _IECreate("http://google.com") AdlibEnable("_WinExists") While 1 _IENavigate($oIE, $oRandomLink) ;Would end up having the $oIE window having a new title each time Sleep(100) WEnd Func _WinExists() If Not WinExists($oTitle) Then MsgBox(0, "Error", "Oooops, IE window has been closed. Exiting...") Exit EndIf EndFunc # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
AzKay Posted October 4, 2006 Author Share Posted October 4, 2006 Actually, Nevermind, Ive figured it out. Ill use _StringBetween, On the source, between the <title> # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
AzKay Posted October 4, 2006 Author Share Posted October 4, 2006 Odd, Doesnt seem to work. Func _WinExists() $oTitle_Source = _IEBodyReadHTML($oIE) $oTitle = _StringBetween($oTitle_Source, "<title>", "</title>") If Not WinExists($oTitle) Then MsgBox(0, "Error", "Oooops, IE window has been closed. Exiting...") Exit EndIf EndFunc oÝ÷ Ù+kxzÜzv®¶s`¤gVæ2õ7G&æt&WGvVVâb33c·2Âb33c¶g&öÒÂb33c·Fò¢b33c·Ò7G&ætå7G"b33c·2Âb33c¶g&öÒ²7G&ætÆVâb33c¶g&öÒ¢b33c·Ò7G&ætå7G"7G&æuG&ÔÆVgBb33c·2Âb33c·Âb33c·Fò¥&WGW&â7G&ætÖBb33c·2Âb33c·Âb33c·¤VæDgVæ0 # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
jvanegmond Posted October 4, 2006 Share Posted October 4, 2006 Use the Winhandle as a main guide. Then use WinGetTitle from the winhandle. github.com/jvanegmond Link to comment Share on other sites More sharing options...
AzKay Posted October 4, 2006 Author Share Posted October 4, 2006 Use the Winhandle as a main guide. Then use WinGetTitle from the winhandle.You mean, $oHandle = WinGetHandle($oIE) $oTitle = WinGetTitle($oHandle)? # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
jvanegmond Posted October 4, 2006 Share Posted October 4, 2006 You mean, $oHandle = WinGetHandle($oIE) $oTitle = WinGetTitle($oHandle)? If _IECreate returns a title, very much so, yes. github.com/jvanegmond Link to comment Share on other sites More sharing options...
AzKay Posted October 4, 2006 Author Share Posted October 4, 2006 If _IECreate returns a title, very much so, yes.Didnt work, So, I looked closely, And noticed, every time it make the window, the window, is, for a second, called "Microsoft internet explorer" So, I set the "wait" time on the IECreate to instant, and made the wingethandle look for "microsoft internet explorer", Then, all went well. Thanks. # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
jvanegmond Posted October 4, 2006 Share Posted October 4, 2006 You're welcome, AzKay. github.com/jvanegmond Link to comment Share on other sites More sharing options...
AzKay Posted October 4, 2006 Author Share Posted October 4, 2006 You're welcome, AzKay. ^^Oh, and I realized why the _IEBodyReadHtml didnt work, I read through it again, and noticed _IE"BODY"ReadHtml(). So, It wouldnt of read the title. =P # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted October 4, 2006 Moderators Share Posted October 4, 2006 This will give you the title. $oIE.document.title Link to comment Share on other sites More sharing options...
jvanegmond Posted October 4, 2006 Share Posted October 4, 2006 This will give you the title. $oIE.document.titleoÝ÷ Ûú®¢×£ ÞÆÛax2¢íý[^Y¶¶¬ën®{-ì"§vWºÚ"µÍÌÍÛÒQKØÝ[Y[Û If it does, I've made a ass out of myself in this topic. github.com/jvanegmond Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted October 4, 2006 Moderators Share Posted October 4, 2006 No, but this does. _IEPropertyGet($oIE, "hwnd") Link to comment Share on other sites More sharing options...
jvanegmond Posted October 4, 2006 Share Posted October 4, 2006 that's funny. github.com/jvanegmond 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