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 


i need help ., im on a big project
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
MateeJr GT
Advanced Cheater
Reputation: 0

Joined: 24 Dec 2017
Posts: 66

PostPosted: Sat Jul 06, 2019 9:40 pm    Post subject: i need help ., im on a big project Reply with quote

I already create an CEImage
i already create an button
i already create CEEdit

for

if i write PARKOUR on CEEdit
i click on button
then the ceimage get image auto from web link
like this
http://www.growtopiagame.com/worlds/parkour.png
then it show up to ceimage
Dont create new form
just show up on my ceimage
........
if i change on CEEdit ffrom PARKOUR to GROWTOPIA
then the url link will auto been this
http://www.growtopiagame.com/worlds/growtopia.png
i dont wanna change the link http://www.growtopiagame.com/worlds/(Only change here , get from CEEdit).png


so
i click button
then what picture it has in http://www.growtopiagame.com/worlds/parkour.png will show up in ceimage
help me
peace!]


NO BODY HELP ME? /sad

_________________
Hi Lynxz Gaming
Back to top
View user's profile Send private message
DaVinci69
How do I cheat?
Reputation: 0

Joined: 18 Feb 2019
Posts: 6

PostPosted: Sat Jul 06, 2019 11:04 pm    Post subject: Re: i need help ., im on a big project Reply with quote

something like this?

Code:
UDF1.CEImage1.Stretch = true
UDF1.CEEdit1.CharCase = 'ecLowerCase'
createNativeThread(function()
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 = 'First part of link here'..UDF1.CEEdit1.Text..'.png'
CPFU = createPictureFromURL(url)

picture = CPFU
UDF1.CEImage1.SetPicture(picture)
end)
UDF1.show()


idk if thats what you wanted
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Sat Jul 06, 2019 11:42 pm    Post subject: Reply with quote

This is example as you want:

Code:
form = createForm()
form.setSize(700,700)

edit = createEdit(form)
edit.setPosition(10,10)
edit.width = 100
edit.CharCase = 'ecLowerCase'
edit.Text=''

image = createImage(form)
image.setSize(680,640)
image.setPosition(10,50)
image.Stretch = true

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

function getImageFromEditText()
 local txt,url,MateeJrPic
 txt = edit.Text
 if txt == nil then return nil end
 if txt == 'parkour' then
  url = 'http://www.growtopiagame.com/worlds/parkour.png'
 elseif txt == 'growtopia' then
  url = 'http://www.growtopiagame.com/worlds/growtopia.png'
 else
  return nil
 end
 MateeJrPic = createPictureFromURL(url)
 image.setPicture(MateeJrPic)
end

form.show()
edit.OnChange = getImageFromEditText


just type 'parkour' or 'growtopia' on Edit Box and press Enter.

If you want to call the image via a button click, then just change:


Code:
edit.OnChange = getImageFromEditText

-- change to:

[your button name].OnClick = getImageFromEditText

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
MateeJr GT
Advanced Cheater
Reputation: 0

Joined: 24 Dec 2017
Posts: 66

PostPosted: Sun Jul 07, 2019 12:21 am    Post subject: Reply with quote

Code:

form = createForm()
form.setSize(700,700)

edit = createEdit(form)
edit.setPosition(10,10)
edit.width = 100
edit.CharCase = 'ecLowerCase'
edit.Text=''

image = createImage(form)
image.setSize(680,640)
image.setPosition(10,50)
image.Stretch = true

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

function getImageFromEditText()
 local txt,url,MateeJrPic
 txt = edit.Text
 if txt == nil then return nil end
 if txt == 'parkour' then
  url = 'http://www.growtopiagame.com/worlds/parkour.png'
 elseif txt == 'growtopia' then
  url = 'http://www.growtopiagame.com/worlds/growtopia.png'
 else
  return nil
 end
 MateeJrPic = createPictureFromURL(url)
 image.setPicture(MateeJrPic)
end

form.show()
edit.OnChange = getImageFromEditText   


noooo

i dont want create new UDF_1 form
/fpp

i already have CEImage , CEEdit, button
if i click on button
so the button will check what text in ceedit
then it will be show up on The CE IMAGE
NOT SHOW UP IN NEW FORMMM[/quote]



why IM GET STREAM ERROR ? help pls

_________________
Hi Lynxz Gaming
Back to top
View user's profile Send private message
Lynxz Gaming
Expert Cheater
Reputation: 4

Joined: 01 Jul 2017
Posts: 208
Location: help

PostPosted: Sun Jul 07, 2019 12:37 am    Post subject: Re: i need help ., im on a big project Reply with quote

put this on top of your script

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


to change the image
Code:
UDF1.CEImage1.setPicture(createPictureFromURL("https://s3.amazonaws.com/world.growtopiagame.com/"..string.lower(UDF1.CEEdit1.text)..".png"))


u can stretch the image on properties

_________________
my english is bad
discord : rynx#9828
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
MateeJr GT
Advanced Cheater
Reputation: 0

Joined: 24 Dec 2017
Posts: 66

PostPosted: Sun Jul 07, 2019 1:42 am    Post subject: Reply with quote

omg lynxz you are back
Thanks! worked!
THAT WHAT I WANT! fp fp
bye lynxz

_________________
Hi Lynxz Gaming
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Sun Jul 07, 2019 3:31 am    Post subject: Reply with quote

MateeJr GT wrote:

noooo

i dont want create new UDF_1 form
/fpp

i already have CEImage , CEEdit, button
if i click on button
so the button will check what text in ceedit
then it will be show up on The CE IMAGE
NOT SHOW UP IN NEW FORMMM



Who ask you to make a new form/UDF1, etc?. Did you see I said 'THIS IS EXAMPLE...' ?.
The script has made which mean to show you how to do what you want.
But seem you are not want to learn. So, next, good luck to you.

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
exohaxor
Expert Cheater
Reputation: 1

Joined: 02 Sep 2018
Posts: 101

PostPosted: Sun Jul 07, 2019 1:09 pm    Post subject: Reply with quote

davinci69 literally gave what u needed...
_________________
hi
Back to top
View user's profile Send private message
Lynxz Gaming
Expert Cheater
Reputation: 4

Joined: 01 Jul 2017
Posts: 208
Location: help

PostPosted: Sun Jul 07, 2019 3:15 pm    Post subject: Reply with quote

exohaxor wrote:
davinci69 literally gave what u needed...

maybe my explanation is easy to understand for a newbie xD

_________________
my english is bad
discord : rynx#9828
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
MateeJr GT
Advanced Cheater
Reputation: 0

Joined: 24 Dec 2017
Posts: 66

PostPosted: Sun Jul 07, 2019 7:37 pm    Post subject: Reply with quote

i mean , Lynxz script is Working!
Your Corroder script is not working anything!!!!!
STREAM error!!
what it is? wkwkkwkkk
and im sorry davinci
your script get Stream error too

_________________
Hi Lynxz Gaming
Back to top
View user's profile Send private message
Lynxz Gaming
Expert Cheater
Reputation: 4

Joined: 01 Jul 2017
Posts: 208
Location: help

PostPosted: Sun Jul 07, 2019 8:41 pm    Post subject: Reply with quote

corroder script are working fine
and davinci69 working fine too
i tested it

_________________
my english is bad
discord : rynx#9828
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Sun Jul 07, 2019 9:40 pm    Post subject: Reply with quote

MateeJr GT wrote:
i mean , Lynxz script is Working!
Your Corroder script is not working anything!!!!!
STREAM error!!
what it is? wkwkkwkkk
and im sorry davinci
your script get Stream error too


Ahh, I see. Then sorry if my script is useless for you. Just like I said, next, good luck to you. Shocked

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
MateeJr GT
Advanced Cheater
Reputation: 0

Joined: 24 Dec 2017
Posts: 66

PostPosted: Mon Jul 08, 2019 8:16 pm    Post subject: Reply with quote

u guys 64bit , me 32bit , idk when i click on button (Stream read error)
_________________
Hi Lynxz Gaming
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Tue Jul 09, 2019 9:13 am    Post subject: Reply with quote

Begitu jadi kah?
_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Lynxz Gaming
Expert Cheater
Reputation: 4

Joined: 01 Jul 2017
Posts: 208
Location: help

PostPosted: Tue Jul 09, 2019 1:28 pm    Post subject: Reply with quote

Corroder wrote:
Begitu jadi kah?

lawl

_________________
my english is bad
discord : rynx#9828
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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