| View previous topic :: View next topic |
| Author |
Message |
Dr.Disrespect Grandmaster Cheater
Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Thu Oct 27, 2016 4:45 pm Post subject: Using CE to read data from HTML? |
|
|
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 |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Thu Oct 27, 2016 4:52 pm Post subject: |
|
|
| 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 |
|
 |
Dr.Disrespect Grandmaster Cheater
Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Thu Oct 27, 2016 6:09 pm Post subject: |
|
|
| 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.
What is the type of file? String?
|
|
| Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Thu Oct 27, 2016 6:18 pm Post subject: |
|
|
| Yep
|
|
| Back to top |
|
 |
Dr.Disrespect Grandmaster Cheater
Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Thu Oct 27, 2016 7:14 pm Post subject: |
|
|
Thanks again.
|
|
| Back to top |
|
 |
Corroder Grandmaster Cheater Supreme
Reputation: 75
Joined: 10 Apr 2015 Posts: 1668
|
Posted: Sun Oct 30, 2016 7:53 pm Post subject: |
|
|
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 |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sun Oct 30, 2016 9:58 pm Post subject: |
|
|
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 |
|
 |
akalsrb How do I cheat?
Reputation: 0
Joined: 25 Oct 2016 Posts: 4
|
Posted: Mon Oct 31, 2016 2:12 am Post subject: Re: Using CE to read data from HTML? |
|
|
| 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 |
|
 |
Corroder Grandmaster Cheater Supreme
Reputation: 75
Joined: 10 Apr 2015 Posts: 1668
|
Posted: Mon Oct 31, 2016 5:05 am Post subject: |
|
|
| 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 |
|
 |
|