Page 1 of 1

Zezenia highscores

Posted: 23 Apr 2017, 16:21
by Demonkil
Hello,

I'm wanting to know if it was possible to make a script which would log the top 100 peoples EXP on the highscores and then check it again after 15 minuntes and output the data to a notepad file saying the difference in experience.

Thanks

Re: Zezenia highscores

Posted: 23 Apr 2017, 18:21
by Almost_there
It would depend if the text is within a control that can be accessed by Autohotkey. Just use Windows Spy and see if it works.

Re: Zezenia highscores

Posted: 24 Apr 2017, 10:08
by Demonkil
Almost_there wrote:It would depend if the text is within a control that can be accessed by Autohotkey. Just use Windows Spy and see if it works.
Here is what it says.

Image

Re: Zezenia highscores

Posted: 24 Apr 2017, 14:29
by Almost_there
Ok, you'll probably need some library that can use COM (IE only) to control and read web elements I guess.

Re: Zezenia highscores

Posted: 24 Apr 2017, 15:53
by FanaticGuru
Demonkil wrote:Hello,

I'm wanting to know if it was possible to make a script which would log the top 100 peoples EXP on the highscores and then check it again after 15 minuntes and output the data to a notepad file saying the difference in experience.

Thanks
Yes. It will require some skill and work. Getting the information from the website is the hard part.

I would down load the entire HTML code for both URL:
https://www.zezeniaonline.com/community ... evel/page1
https://www.zezeniaonline.com/community ... evel/page2

Then I would parse that text using either RegEx or DOM to put all the information I want into an array for storage.

The comparing, outputting to Notepad, repeating, is all fairly trivial.

With AHK experience it is a short but moderate difficulty project.

FG

Re: Zezenia highscores

Posted: 24 Apr 2017, 16:10
by FanaticGuru
Here is a start to download the first page of HTML.

Code: Select all

MsgBox % Get_URL_Html("www.zezeniaonline.com/community/highscores/All/level/page1")

Get_URL_Html(URL)
{
	whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
	whr.Open("GET", "http://" URL, true)
	whr.Send()
	whr.WaitForResponse()
	return whr.ResponseText
}
The MsgBox is too small to display all the text but gets the concept across.

FG