Doppio Posted January 25, 2006 Share Posted January 25, 2006 I tried to search for anythig similar, but the search doen't return anything. Every moring I have to open a website that gives me the daily asignments: Ticket number, Site Address, Problem description, and Contact. I print this page for every ticket I get (about 10 a day). What I wanted to do was to get the data from the Web Form, and send it to a text file so I can read it on My PDA (save a few trees) . How can I retrieve data from an open Web form? Any help or sugestions that would lead me to a resolution will be greatly appreciated Link to comment Share on other sites More sharing options...
DaleHohm Posted January 25, 2006 Share Posted January 25, 2006 I tried to search for anythig similar, but the search doen't return anything. Every moring I have to open a website that gives me the daily asignments: Ticket number, Site Address, Problem description, and Contact. I print this page for every ticket I get (about 10 a day). What I wanted to do was to get the data from the Web Form, and send it to a text file so I can read it on My PDA (save a few trees) . How can I retrieve data from an open Web form?Any help or sugestions that would lead me to a resolution will be greatly appreciatedIE.au3 gives you many options for opening and parsing the content of web pages. See my sig for a pointer and reply 3 of that post for examples.Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
Doppio Posted January 25, 2006 Author Share Posted January 25, 2006 IE.au3 gives you many options for opening and parsing the content of web pages. See my sig for a pointer and reply 3 of that post for examples.DaleI went through the IE.au3 file, but didn't find any examples, can you be more specific? Link to comment Share on other sites More sharing options...
DaleHohm Posted January 25, 2006 Share Posted January 25, 2006 I went through the IE.au3 file, but didn't find any examples, can you be more specific?IE.au3 gives you many options for opening and parsing the content of web pages. See my sig for a pointer and reply 3 of that post for examples.Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
Doppio Posted January 25, 2006 Author Share Posted January 25, 2006 IE.au3 gives you many options for opening and parsing the content of web pages. See my sig for a pointer and reply 3 of that post for examples.DaleSorry... I found the examples. Very nice.I read the homail (email) example, but can't figure out how to do the same on this site.My Webpagecan you Help? Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted January 25, 2006 Moderators Share Posted January 25, 2006 Not all login forms are the same as hotmails login form. So you have to look at the source code for the login window and find the name of the form, username, and password. I changed the form names accordingly, but you may need to open the form a little differently. #include <IE.au3> ; Create a browser window and navigate to hotmail $oIE = _IECreate() _IENavigate($oIE, "http://magic75.nycenet.edu/magictsd/prelogin.htm") ; get pointers to the login form and username and password fields $o_form = _IEFormGetObjByName($oIE, "frmLogin") $o_login = _IEFormElementGetObjByName($o_form, "UID") $o_password = _IEFormElementGetObjByName($o_form, "PWD") ; Set field values and submit the form _IEFormElementSetValue($o_login, "your username here") _IEFormElementSetValue($o_password, "your password here") _IEFormSubmit($o_form) Exit Link to comment Share on other sites More sharing options...
The Kandie Man Posted January 25, 2006 Share Posted January 25, 2006 Too bad this doesn't work with firefox. I don't use IE. I know better than to do that. "So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire Link to comment Share on other sites More sharing options...
DaleHohm Posted January 25, 2006 Share Posted January 25, 2006 Too bad this doesn't work with firefox. I don't use IE. I know better than to do that. It's so refreshing to have the voice or reason and intelligence jump into the middle of a conversation like this. Thanks for sharing.Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted January 26, 2006 Moderators Share Posted January 26, 2006 guayo, just wondering if you had gotten a chance to try my code out yet? 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