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 


Can I load form file from internet ?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
keepstill
Newbie cheater
Reputation: 0

Joined: 22 May 2020
Posts: 17

PostPosted: Mon Jun 08, 2020 7:51 am    Post subject: Can I load form file from internet ? Reply with quote

Hi. I need to get form file from internet and load to my form. Is it possible?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25284
Location: The netherlands

PostPosted: Mon Jun 08, 2020 8:09 am    Post subject: Reply with quote

if you save it to a temp location you can then use createFormFromFile and then delete the file
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
keepstill
Newbie cheater
Reputation: 0

Joined: 22 May 2020
Posts: 17

PostPosted: Mon Jun 08, 2020 10:34 am    Post subject: Reply with quote

Dark Byte wrote:
if you save it to a temp location you can then use createFormFromFile and then delete the file

I think it's close to success. I tried this code.
Code:
int=getInternet()
form=int.getURL("myformurl")
int.destroy()

createFormFromFile(form)

Error:Unable to open file "<?xml version...." what should I do ?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25284
Location: The netherlands

PostPosted: Mon Jun 08, 2020 12:17 pm    Post subject: Reply with quote

try saving it to a file on the harddisk first
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
keepstill
Newbie cheater
Reputation: 0

Joined: 22 May 2020
Posts: 17

PostPosted: Mon Jun 08, 2020 12:22 pm    Post subject: Reply with quote

Dark Byte wrote:
try saving it to a file on the harddisk first


And now:
Code:
int=getInternet()
form=int.getURL("myformurl")
int.destroy()
local f = assert(io.open("myform.LFM", "w"))
f:write(form, "\n")

f:close()
createFormFromFile("myform.LFM")

Error: Illegal at document level... I saved my form file but I don't know how to use createFormFromFile

EDIT:
Done!
Code:
int=getInternet()
form=int.getURL("myformurl")
int.destroy()
local f = assert(io.open("myform.frm", "w"))
f:write(form, "\n")

f:close()
createFormFromFile("myform.frm")

It's just must be ".frm" Thank you DB <3
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 Lua Scripting 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