Zezenia highscores

Get help with using AutoHotkey and its commands and hotkeys
Demonkil
Posts: 20
Joined: 11 Jan 2016, 16:41

Zezenia highscores

23 Apr 2017, 16:21

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
User avatar
Almost_there
Posts: 404
Joined: 30 Sep 2014, 10:32

Re: Zezenia highscores

23 Apr 2017, 18:21

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.
Demonkil
Posts: 20
Joined: 11 Jan 2016, 16:41

Re: Zezenia highscores

24 Apr 2017, 10:08

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
User avatar
Almost_there
Posts: 404
Joined: 30 Sep 2014, 10:32

Re: Zezenia highscores

24 Apr 2017, 14:29

Ok, you'll probably need some library that can use COM (IE only) to control and read web elements I guess.
FanaticGuru
Posts: 1432
Joined: 30 Sep 2013, 22:25

Re: Zezenia highscores

24 Apr 2017, 15:53

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
Hotkey Help - Help Dialog for Currently Running AHK Scripts

AHK Startup - Consolidate Multiply AHK Scripts with one Tray Icon

[Function] Timer - Create and Manage Timers
FanaticGuru
Posts: 1432
Joined: 30 Sep 2013, 22:25

Re: Zezenia highscores

24 Apr 2017, 16:10

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
Hotkey Help - Help Dialog for Currently Running AHK Scripts

AHK Startup - Consolidate Multiply AHK Scripts with one Tray Icon

[Function] Timer - Create and Manage Timers

Return to “Ask For Help”

Who is online

Users browsing this forum: boiler, casperharkin, Karrsen, mikeyww, Paiter and 36 guests