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 


CEImage using image link [help]

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Lynxz Gaming
Advanced Cheater
Reputation: 1

Joined: 01 Jul 2017
Posts: 67

PostPosted: Fri Feb 23, 2018 8:15 am    Post subject: CEImage using image link [help] Reply with quote

so i wanna to make a ceimage link to image website
example http://www.growtopiagame.com/worlds/parkour.png
using link no manual how?

_________________
Hello Hitler !
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater
Reputation: 31

Joined: 09 Aug 2013
Posts: 757

PostPosted: Fri Feb 23, 2018 9:12 am    Post subject: Reply with quote

add an onclick event that does shellExecute(the url)?
_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater
Reputation: 17

Joined: 10 Apr 2015
Posts: 619

PostPosted: Fri Feb 23, 2018 10:34 am    Post subject: Reply with quote

Quote:
so i wanna to make a ceimage link to image website


Maybe it's mean 'make a CEImage with get the image from a website link', is it?

If true :

Code:
function createPictureFromURL(url)
 local http = getInternet()
 local file = http.getURL(url)
 http.destroy()
 local picture = createPicture()
 local stream = createStringStream(file)
 picture.loadFromStream(stream)
 return picture
end

url = 'http://www.growtopiagame.com/worlds/parkour.png'
LinxPic = createPictureFromURL(url)

if form == nil then
 form = createForm()
end

if image == nil then
 image = createImage(form)
end

if picture == nil then
 picture = LinxPic
 image.setPicture(picture)
 form.width, form.height = 700,700
 image.Height = form.Height
 image.Width = form.Width
 image.Stretch = true
end

form.show()



Capture.JPG
 Description:
Whooaaaahhhh.....
 Filesize:  207.65 KB
 Viewed:  1850 Time(s)

Capture.JPG



_________________
Singapore Sling + Johnnie Walker + Some Peanuts....


Last edited by Corroder on Fri Feb 23, 2018 11:02 am; edited 1 time in total
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater
Reputation: 31

Joined: 09 Aug 2013
Posts: 757

PostPosted: Fri Feb 23, 2018 10:44 am    Post subject: Reply with quote

Corroder wrote:
Quote:
so i wanna to make a ceimage link to image website


Maybe it's mean 'make a CEImage with get the image from a website link', is it?
possible, if so then I suppose you could use something like (untested)
Code:
local net = getInternet()
local img = net.getURL(imageurl)
local stream = createMemoryStream()
stream.write(stringToByteTable(img))
--form_name.image_name
CETrainer.CEImage1.Picture.LoadFromStream(stream)
stream.destroy()
alternatively you could write it to a file and use CETrainer.CEImage1.loadImageFromFile(filepath)... not sure which is better
_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater
Reputation: 17

Joined: 10 Apr 2015
Posts: 619

PostPosted: Fri Feb 23, 2018 11:05 am    Post subject: Reply with quote

FreeER
Quote:
possible, if so then I suppose you could use something like (untested)


It is possible, I am also make some code on my post EDIT above.

_________________
Singapore Sling + Johnnie Walker + Some Peanuts....
Back to top
View user's profile Send private message
Lynxz Gaming
Advanced Cheater
Reputation: 1

Joined: 01 Jul 2017
Posts: 67

PostPosted: Fri Feb 23, 2018 5:02 pm    Post subject: Reply with quote

Wow work thanks
now i can make custom player position with worlds too xD
thx! Corroder and FreeEr Again !

_________________
Hello Hitler !
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