Brickoneer Posted September 21, 2007 Share Posted September 21, 2007 (edited) Hey guys, first of all, ya'll give awesome help. Just thought I'd say that.Here are my questions:1. Is there any way to tell if a user navigates to a new page? (the only thing I could come up with is constantly polling the url and checking for differences... not very efficient.)2. Is there any way to 'read' the inputs of a form on an event (like the submit button being pressed)? (again, the only thing I could come up with is constantly reading the inputs until they are unavailable to read, meaning the page has changed.)3. If there is no way to read the final inputs of a form, is there any way I can place a 'form' (or something similar) into a webpage and receive the data from that form in autoit for later use? Essentially I'm trying to create an input box or GUI of sorts IN an existing web page... is that possible? I know I can put a form in with the _IEwritehtml functions... I just can't figure out how to get the users input back into autoit.Hope that made sense!Thanks so much.Brick Edited September 21, 2007 by Brickoneer Link to comment Share on other sites More sharing options...
Brickoneer Posted September 21, 2007 Author Share Posted September 21, 2007 (edited) *bump* Any ideas anyone? Thanks! Brick [edit] sorry for bumping this so soon, I'm in a bit of a rush. Edited September 21, 2007 by Brickoneer Link to comment Share on other sites More sharing options...
Bert Posted September 21, 2007 Share Posted September 21, 2007 can you show us what code you got so far? I've got a idea of how to do it, but it depends on what you are doin. For example, are you using a embedded IE window, or just a normal IE window? Your code would help. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Blue_Drache Posted September 21, 2007 Share Posted September 21, 2007 Have you looked at the _IE functions included in IE.au3? You can have code running in the background to completely rewrite a page if you like as it's being displayed and then capture all the inputs and do whatever you like with them as well as pass it along to the web page, seamlessly. Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
Brickoneer Posted September 21, 2007 Author Share Posted September 21, 2007 Thanks for the replies. Sorry if I wasn't very clear. My entire script is based off of the IE.au3 functions... I just can't figure out how to do those certain things I described in my first post. I will try and post my script a bit later on. Thanks! Brick Link to comment Share on other sites More sharing options...
DaleHohm Posted September 21, 2007 Share Posted September 21, 2007 IE.au3 can help you with this, but what you are wanting to do is not the main focus of the functions. You'll need to study the ObjEvent function to see how you can register to take actions based on some specific event occuring to an object. Note that what you are wanting to do will be made difficult in AutoIt because ObjEvent does not get event notification synchroneously, but asynchroneously and thus cannot block or cancel processing. What this means is that you can, for example, trap an onsubmit event for a Form object and expect to got out and grab the form element values before they are passed to the server and the page is rebuilt... in reality, your event handler will be notified of the submit, but by the time you hear about it the submit will likely already have been processed and the form will no longer exist. Javascript on the webpage itself inserts itself into the event flow and can block or cancel processing while it does its task. You'll really need to be motivated to learn and experiment to make something like this work in AutoIt with that limitation... it can be done, but noone I know of has taken this very far so you would be pretty much on your own. 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...
Brickoneer Posted September 22, 2007 Author Share Posted September 22, 2007 Many thanks yet again! I'll check into it, and see how far over my head I get. Thanks! Brick 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