mojehyip Posted July 9, 2012 Share Posted July 9, 2012 (edited) http://www.antwo.pl/ on right side of it are column with ranking. I want write into log file every time when i refresh my exproler. $username = redcolor in html code $points = ; greencolor in html code _FileWriteLog(@ScriptDir & "daneDodaneOdpowiedzi.log", "Ranking Stats : " &"USER:"&$username&" "&"( "&$points&" )"& " ADRESS: http://www.antwo.pl/") <a href="profil,1,Niedzielka.html" title="Niedzielka">Niedzielka ( 66690 )</a> ( Dear admin, You do not support people making inconsistent with the rules like hacks/keygens/trojans/bot, You Have closed only because you thought i will using it for a bot. I, however, I had no idea how to imagine it differently. Now I found this a nice mobile site the Google translate. Interpreters by him. I can not solve this problem, the rest of the users in the rankings now I start to rewrite and I will learn it. This will allow me check if they all use the service according to the rules. ) Edited July 9, 2012 by mojehyip Link to comment Share on other sites More sharing options...
Myicq Posted July 9, 2012 Share Posted July 9, 2012 Read examples and understand code at This should do what you need. The rest is a question of parsing HTML in correct way. Basically string functions. mojehyip 1 I am just a hobby programmer, and nothing great to publish right now. Link to comment Share on other sites More sharing options...
mojehyip Posted July 9, 2012 Author Share Posted July 9, 2012 Read examples and understand code at This should do what you need. The rest is a question of parsing HTML in correct way. Basically string functions.Thanks for answer, but i don't specialy know this language. I don't get it fast. But every day, ranking changing. Could some give another easier way to get information from website to log txt? Link to comment Share on other sites More sharing options...
Myicq Posted July 9, 2012 Share Posted July 9, 2012 (edited) There are several ways to get from IE to AutoIT (or what you actually want: fetch information from a web server), but what you SHOULD focus on is to isolate the information from right-column. Start by copying HTML source from the page into a variable. Then practice isolating the stuff you need. The rest (getting HTML data online) is trivial. It's the HTML isolation that can be tricky. [Edit]: see this example how simple it is: #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <INet.au3> ; ============== ; demo to fetch some web page and put content in an Edit box. ; ============== $Form1 = GUICreate("Form1", 760, 624, 208, 143) $Edit1 = GUICtrlCreateEdit("", 16, 128, 697, 425, BitOR($ES_AUTOVSCROLL,$ES_WANTRETURN,$WS_VSCROLL)) GUISetState(@SW_SHOW) $indhold = _INetGetSource('http://google.com') GUICtrlSetData($Edit1,$indhold) ; exit after 10 seconds sleep(10000) exit Edited July 9, 2012 by Myicq I am just a hobby programmer, and nothing great to publish right now. Link to comment Share on other sites More sharing options...
mojehyip Posted July 10, 2012 Author Share Posted July 10, 2012 (edited) But what command i can get from line: <a href="profil,1,Niedzielka.html" title="Niedzielka"></a> to get Niedzielka(like user iD ) and his points number ? Edited July 10, 2012 by mojehyip Link to comment Share on other sites More sharing options...
Myicq Posted July 10, 2012 Share Posted July 10, 2012 But what command i can get from line: <a href="profil,1,Niedzielka.html" title="Niedzielka">...</a> to get Niedzielka(like user iD ) and his points number ? Once you have the content of the web page, you can - for example - use stringregexp. there are tutorials on how you can "take small chunk out of bigger chunck". Go study and experiment. Try now to make some code yourself, OK ? It's best way to learn. There are many examples out there. I am just a hobby programmer, and nothing great to publish right now. 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