![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Apr 2006
Posts: 11
Rep Power: 0
![]() |
Hi All,
I have a problem in VB. Actually, i m working on a project that is supposed to pick up data from Internet Explorer Web Page, i have gone thru many sites and even MSDN but cudnt find ne information how to retrieve data from IE web page... can someone help me out??? it's very urgent. Regards Awadhesh |
|
|
|
|
|
#2 | |
|
SEXY SHOELESS GOD OF WAR!
![]() Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,193
Rep Power: 5
![]() |
Quote:
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot. - Vaarsuvius, Order of the Stick |
|
|
|
|
|
|
#3 |
|
Newbie
Join Date: Apr 2006
Posts: 11
Rep Power: 0
![]() |
i want to pick data from text boxes and labels on a web page. the web page can be of any web site. For exampla, there is log in page of a site, it has a text box to key in the username, i want to pick that value thru code.
__________________
RegardsAwadhesh |
|
|
|
|
|
#4 | |
|
SEXY SHOELESS GOD OF WAR!
![]() Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,193
Rep Power: 5
![]() |
Quote:
The trick is, the destination is coded as part of the web page. When the user submits the form, the browser submits it to the appropriate party, generally the server where the page is located. It can send the data as part of the URL, or as part of the request header (or whatever it's called; HTTP isn't my forte). The remote end accesses this information in different ways, depending on a) the server in question, and b) the method used to process requests. For example, ASP might access these values by reading properties, whereas for CGI, you might read them by getting environment variables. You won't be able to do it client-side without using client-side scripting (like Javascript), and even then, you'd need to rewrite the HTML to do this.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot. - Vaarsuvius, Order of the Stick |
|
|
|
|
|
|
#5 |
|
Newbie
Join Date: Apr 2006
Posts: 11
Rep Power: 0
![]() |
Thanks for the prompt reply but i was not looking for what you have told. Let me explain what i want to do via an example. Lets say there is a web form that has been filled by a user. the submit button has not been clicked yet and the data can be visibly seen at the moment. Using a VB code, i want to pick up that data in the respective fields with their labels text. If this is possible, plz reply back with the answer asap.
Thanks.
__________________
RegardsAwadhesh |
|
|
|
|
|
#6 |
|
Newbie
Join Date: Apr 2006
Posts: 11
Rep Power: 0
![]() |
Plzzz reply
strange!!! no one knows the answer... wat u guys doing here!!! shame on all of you...
__________________
RegardsAwadhesh |
|
|
|
|
|
#7 |
|
SEXY SHOELESS GOD OF WAR!
![]() Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,193
Rep Power: 5
![]() |
You might want to read up on 'shatter attacks' in Windows. These exploit the Win32 message system, whereby you can send messages to various windows (including edit boxes, buttons, etc), even if those windows are owned by a process other than yours. By exploiting this, you can compromise Windows. How does this help you? Well, this page explains how to get the handles for these other windows, and you can then use Windows messages and/or functions to query them as to their window text.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot. - Vaarsuvius, Order of the Stick |
|
|
|
|
|
#8 | |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Quote:
As lectricpharoah said, you'll need to use the Win32 messaging subsystem. To do this in Visual Basic, you'll need to use functions that are not available by default. To use them, you'll need to tell VB how to access these functions. Finding out the code is pretty difficult work, so the nice people at ActiveVB made ApiViewer, which should help muchly. |
|
|
|
|
|
|
#9 | |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Quote:
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
|
#10 |
|
Programmer
|
This may be what you said.. but couldln't you enumerate all the windows that are currently open and then check each window's class to see if it matches with the internet explorer class then if it mathes run another enumeration of all the child windows (I'm pretty sure text boxes count as child windows... though I'm not positive) then get the value of all the text boxes? You may need to do a little bit more filtering but I think you could pretyt much do what your asking with that...
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|