snip3r Posted December 19, 2006 Posted December 19, 2006 I have tried to make a GUI with some fields like email, login info, and when a specific page is detected, like a formular or something, those informations to be filled automatically. To be more specific, I know the link of the page and the script must detect if i view that page. If the answer is yes, the script must complete Field 1, field 2 ad field 3 with some text or numbers i have specified in the GUI (i have used a combo menu to let the user choose from multiple things) The answer is...how i make the script to identify the page i am browsing, and how can i write a variable on the web page??? Also, if i make a GUI where i enter login informations, and i want to click the button login, and a web page to open with the address and login info fullfiled, what would be the code? Thanks
JoshDB Posted December 19, 2006 Posted December 19, 2006 Look in the helpfile and find:WinExistsWinWaitActiveSend()Then look around for documentation on IE.au3For the GUI, try something like this:#include <GUIConstants.au3> $GUI = GUICreate("Webpage Filler",300,150) $Email = GUICtrlCreateInput("Input E-Mail Address Here",25,25) $Login = GUICtrlCreateInput("Input Login Here",25,45) $Password = GUICtrlCreateInput("Input Password Here",25,65) $Button = GUICtrlCreateButton("Go!",55,105) GUISetState() Do $msg = GUIGetMsg() Select Case $msg = $Button ; PUT CODE HERE EndSelect Until $msg = $GUI_EVENT_CLOSEWhere it says '; PUT YOUR CODE HERE' is where you should put the code that fills in the webpage - Which you should be able to do yourself pretty easily.If worse comes to worst (I'm not sure if that's the expression... Ah well.), then find how how to use MouseClick (not preferable) or send some Tab presses to navigate to the right input fields on the webpage (more preferable), but you should be fine using IE.au3 Ha, I haven't been on these forums since... 2006, almost. Behold, my legacy signature:My AutoIt idol is Valuater. You know you love him, too.My Stuff: D&D AGoT Tools Suite
snip3r Posted December 19, 2006 Author Posted December 19, 2006 Thanks...it will help me a lot. By the way, this was my second day learning to use this kind of script...and i am a fast learner.
JoshDB Posted December 19, 2006 Posted December 19, 2006 Same here. I pretty much learned all I know know in a week or two. Good job, nice to see other quick learners. Ha, I haven't been on these forums since... 2006, almost. Behold, my legacy signature:My AutoIt idol is Valuater. You know you love him, too.My Stuff: D&D AGoT Tools Suite
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