|
|
#1 |
|
"The" RedHeadedLefty
Join Date: Aug 05
Location: College Station, TX Preferred Nickname: Gig Current Mood: Just Peachy Turnons: String Manipulation
Posts: 4,461
![]() ![]() ![]() ![]() ![]() |
Internet Explorer_Server class window
Anyone know how to pull text out of this kind of control? It is an Internet Explorer_Server class control inside of a messenger window, namely Yahoo. The chat room text. I want to pull this data out and analyze it. I cant seem to even pull the handle out through code (but i can see it through Spy++). The parent is YHTMLContainer class, and the YHTMLContainer is the child to the IMClass class.
The following code executes correctly: VB Code:
Kinda confused next.. The Internet Explorer_Server is the child of a child, per se.. the child of YHTMLContainer.... how would I get the handle.. i tried doing a FindWindow on just the class Internet Explorer_Server but kept returning nothing. Also, doing a FindWindowEx on Internet Explorer_Server also returned nothing. All this and I still have to figure out how to get the text in the control to my application...
|
|
|
|
|
|
#2 |
|
Super Moderator
Join Date: Jan 05
Location: Sunny Adelaide
Posts: 12,532
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Re: Internet Explorer_Server class window
Do FindWindowEx() on hWndChild. Also, you can just pass vbNullString instead of the window title, unless you specifically need to find that window.
so VB Code:
|
|
|
|
|
|
#3 |
|
Super Moderator
Join Date: Jan 05
Location: Sunny Adelaide
Posts: 12,532
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Re: Internet Explorer_Server class window
Oh and, to get the text, try
VB Code:
|
|
|
|
|
|
#4 |
|
"The" RedHeadedLefty
Join Date: Aug 05
Location: College Station, TX Preferred Nickname: Gig Current Mood: Just Peachy Turnons: String Manipulation
Posts: 4,461
![]() ![]() ![]() ![]() ![]() |
Re: Internet Explorer_Server class window
Hmmm.. couldve sworn I tried that 10 times already, but copied your third line into mine for the hwndIEServer and it worked lol ... thx
gonna work on the text part now...
|
|
|
|
|
|
#5 |
|
"The" RedHeadedLefty
Join Date: Aug 05
Location: College Station, TX Preferred Nickname: Gig Current Mood: Just Peachy Turnons: String Manipulation
Posts: 4,461
![]() ![]() ![]() ![]() ![]() |
Re: Internet Explorer_Server class window
The code to get the text doesnt work.. i returns a zero value. The code I have so far is below, all the handles pull nonzerovalues. The SendMessage statements return 0.
VB Code:
|
|
|
|
|
|
#6 |
|
"The" RedHeadedLefty
Join Date: Aug 05
Location: College Station, TX Preferred Nickname: Gig Current Mood: Just Peachy Turnons: String Manipulation
Posts: 4,461
![]() ![]() ![]() ![]() ![]() |
Re: Internet Explorer_Server class window
Im guessing the code won't work because it is some sort of HTML object. Anyone know how to pull text from the Internet Explorer_Server class window? The same class is used as the main window in Internet Explorer, so surely someone out there has done it.
|
|
|
|
|
|
#7 |
|
"The" RedHeadedLefty
Join Date: Aug 05
Location: College Station, TX Preferred Nickname: Gig Current Mood: Just Peachy Turnons: String Manipulation
Posts: 4,461
![]() ![]() ![]() ![]() ![]() |
Re: Internet Explorer_Server class window
I now am pulling the HTML Object out of the window, but I am still getting a blank document. Here is some of the code :
VB Code:
VB Code:
The SendMessageTimeout function call in the WindowDom function brings back a message of 0, which is where i think the holdup is. I can feel im getting real close... anyone know of something i can try?? |
|
|
|
|
|
#8 |
|
New Member
Join Date: Sep 05
Posts: 1
![]() |
Re: Internet Explorer_Server class window
Hey,
Did you ever get this going? I'm currently working on the same issue. Let me know if you found the solution. - Thanks Dennis |
|
|
|
|
|
#9 |
|
"The" RedHeadedLefty
Join Date: Aug 05
Location: College Station, TX Preferred Nickname: Gig Current Mood: Just Peachy Turnons: String Manipulation
Posts: 4,461
![]() ![]() ![]() ![]() ![]() |
Re: Internet Explorer_Server class window
I sure did WingMan... my code was a little messy, but I did find some code on the net that utilizes an IEDom class, to get the http object. Have it in a project that returns the innertext of the document that is currently inside the Internet Explorer window.... gimme a few minutes and I'll post the code....
Rather... do you want the code to get the text out of Internet Explorer?? or in regards to Yahoo Instant Messenger, which also uses the Internet Explorer_Class window?? |
|
|
|
|
|
#10 |
|
"The" RedHeadedLefty
Join Date: Aug 05
Location: College Station, TX Preferred Nickname: Gig Current Mood: Just Peachy Turnons: String Manipulation
Posts: 4,461
![]() ![]() ![]() ![]() ![]() |
Re: Internet Explorer_Server class window
Here's the code where you can get the information into a string from the class window hwnd.. its in an IEdom class and in a win32 functions class... to get the html into a string, you just call the following:
VB Code:
**Note been a while since I used this code, and it might be a little messy because I was just first beginning when I wrote it... Last edited by gigemboy; Jan 13th, 2006 at 12:39 PM. |
|
|
|
|
|
#11 |
|
PoorPoster
Join Date: Oct 05
Location: in an island
Posts: 2,654
![]() ![]() ![]() ![]() ![]() |
Re: Internet Explorer_Server class window
Last edited by iPrank; Jan 13th, 2006 at 01:47 PM. |
|
|
|
|
|
#12 |
|
New Member
Join Date: Aug 06
Posts: 2
![]() |
Re: Internet Explorer_Server class window
redi can't run success,get nothing,have all code?
|
|
|
|
|
|
#13 |
|
New Member
Join Date: Aug 06
Posts: 2
![]() |
Re: Internet Explorer_Server class window
i am use vb6,i think that can get vb6's all code?
|
|
|
|
|
|
#14 |
|
"The" RedHeadedLefty
Join Date: Aug 05
Location: College Station, TX Preferred Nickname: Gig Current Mood: Just Peachy Turnons: String Manipulation
Posts: 4,461
![]() ![]() ![]() ![]() ![]() |
Re: Internet Explorer_Server class window
The code posted was .NET code, if that helps explain a little as to why it won't work in VB6... you would have to use the VB6 declarations...
|
|
|
|
|
|
#15 |
|
New Member
Join Date: Aug 06
Posts: 1
![]() |
Re: Internet Explorer_Server class window
Can you change that code to C#.Net?
|
|
|
|
![]() |
|
||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|