Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Using CE to read data from HTML?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Thu Oct 27, 2016 4:45 pm    Post subject: Using CE to read data from HTML? Reply with quote

Is there a way to read data from HTML in CE? Can LUA do that? Such as the WebClient class in C#.

I want to do this because I want my trainer to receive data from a specific HTML, and then determine (through string comparison) if the current version of the trainer is update to date.

Thanks a lot.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Thu Oct 27, 2016 4:52 pm    Post subject: Reply with quote

Code:
local url = "http://forum.cheatengine.org/download.php?id=119322"
local http = getInternet()
local file = http.getURL(url)
http.destroy()
print(file)
Back to top
View user's profile Send private message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Thu Oct 27, 2016 6:09 pm    Post subject: Reply with quote

Zanzer wrote:
Code:
local url = "http://forum.cheatengine.org/download.php?id=119322"
local http = getInternet()
local file = http.getURL(url)
http.destroy()
print(file)


Thanks, Zanzer. Smile

What is the type of file? String?
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Thu Oct 27, 2016 6:18 pm    Post subject: Reply with quote

Yep
Back to top
View user's profile Send private message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Thu Oct 27, 2016 7:14 pm    Post subject: Reply with quote

Zanzer wrote:
Yep


Thanks again. Smile
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Sun Oct 30, 2016 7:53 pm    Post subject: Reply with quote

Hi, to make sure, is this work for CE 6.5 and higher ?
Where is store the HTML file ? in a online storage eq : dropbox, mega, etc ?
Thanks
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Oct 30, 2016 9:58 pm    Post subject: Reply with quote

6.5+ unless you need to use POST. I believe that was just added in 6.6.
You can store the file anywhere on the internet, as long as the user has access.
For instance, if you need to log in someplace, then you need to include the login information in your Lua request.
Or prompt the user to enter credentials, etc.
Back to top
View user's profile Send private message
akalsrb
How do I cheat?
Reputation: 0

Joined: 25 Oct 2016
Posts: 4

PostPosted: Mon Oct 31, 2016 2:12 am    Post subject: Re: Using CE to read data from HTML? Reply with quote

fmanager wrote:
Is there a way to read data from HTML in CE? Can LUA do that? Such as the WebClient class in C#.

I want to do this because I want my trainer to receive data from a specific HTML, and then determine (through string comparison) if the current version of the trainer is update to date.

Thanks a lot.
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Mon Oct 31, 2016 5:05 am    Post subject: Reply with quote

Zanzer wrote:
6.5+ unless you need to use POST. I believe that was just added in 6.6.
You can store the file anywhere on the internet, as long as the user has access.
For instance, if you need to log in someplace, then you need to include the login information in your Lua request.
Or prompt the user to enter credentials, etc.


I see, thank so much Zanzer
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites