Sign in to follow this  
Followers 0
madafakas

Web page analyse and submit script

3 posts in this topic

I am new to autoit and I wonder if it could help me. Tried to code script in PHP but failed.

I need autoit to go to webpage http://www.labas.lt/lt/about/drivers/number/ . There are 3 numbers (mobile phone numbers). I need autoit to filter them and check if there is some kind of sequence in one of them (for example 4 same number in a row 37064444536 or combination 37064 144 144). If yes, then I want autoit to push "Rezervuoju" button below that number, type in my mail and submit the form. If no - clear cookies, refresh and do the same again and again.

Could anyone at least tell me what functions should I use or so?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

To go to the webpage, use _IECreate and _IENavigate if you have to go to another webpage.

To get the numbers, you will first have to retrieve the source with _InetGetSource. Then you will have to parse through the text with String functions.

Comparing numbers will also require String functions. StringRegExp would be best, but that is very difficult for a beginner to learn right off the bat.

To click a button, use an _IE function that will click the button. Typing in your e-mail and submitting the form will also require _IE functions.

I am not exactly sure how to refresh the page or clear the cookies, but you should be able to search the forum for those answers.

Edited by dantay9

[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post


Link to post
Share on other sites

There are also many ways to get the source of the page using _IE functions instead of INetGet - this is important particularly if the page is generated dynamically or requires authentication (See _IEBodyReadHTML, _IETableWriteToArray and _IEPropertyGet innertext)

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0