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 


site viewing in form??

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

Joined: 11 Apr 2020
Posts: 24
Location: my house

PostPosted: Tue Apr 21, 2020 9:11 pm    Post subject: site viewing in form?? Reply with quote

I Want My Trainer To Display A certain website using CEImage
example:
--------------------------------------------------------------------------------
z = CreateForm()
z.width = 500
z.height = 500

image = CreateImage(z)
image.width = 300
image.height = 300
image.left = 100
image.top = 100
image.picture = hanime.tv???
--------------------------------------------------------------------------------

not sure how to do this if you have answers please tell me would really appreciate it Very Happy

_________________
help pls im noob Sad
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: Wed Apr 22, 2020 5:57 am    Post subject: Reply with quote

Not sure what is you want, in case:

1. Image size 300 x 300 is too small for a webpage as an image.
2. To get specific image (with url image link) is easy
3. But if you plan to view webpage(s) as an image then you need HTML renderer app.

For example : http://iecapt.sourceforge.net/

Just bind the IECapt.exe to your trainer and call it via an event handler

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Akiros
Newbie cheater
Reputation: 0

Joined: 11 Apr 2020
Posts: 24
Location: my house

PostPosted: Sat Apr 25, 2020 11:48 pm    Post subject: Sorry Not sure Reply with quote

How exactly do I Bind it to ce??
_________________
help pls im noob Sad
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 Apr 26, 2020 1:43 am    Post subject: Reply with quote

Download IECapt and read usage note from :
http://iecapt.sourceforge.net/

Then add IECapt.exe as a table file on your CT file. And then below is an example call IECapt.exe which has bound on your CT file.

Code:
if form then form.destroy() end

form = createForm()
form.setSize(600,500)
form.Position = 'poScreenCenter'
form.BorderStyle = 'bsSizeable'
form.Caption = 'CE Webpage Viewer - By Corroder'

txtURL = createEdit(form)
txtURL.setPosition(10,10)
txtURL.setSize(500,28)
txtURL.Anchors = 'akLeft,akTop,akRight'

btnURL = createButton(form)
btnURL.setPosition(520,8)
btnURL.setSize(70,25)
btnURL.Caption = 'View'
btnURL.Anchors = 'akTop,akRight'
btnURL.Cursor = -21

webImage = createImage(form)
webImage.setSize(580,450)
webImage.setPosition(10,40)
webImage.Anchors = 'akLeft,akTop,akRight,akBottom'
--webImage.Picture.loadFromFile('E:\\218607.jpg')
webImage.AntialiasingMode = 'amOn'
webImage.Stretch = true

--------------------------------------------------------------------------------
DefaultIECapt = [[
 --IECapt --url=http://www.example.org/ --out=localfile.png
 --help                      Print this help page and exit
 --url=<url>                 The URL to capture (http:...|file:...|...)
 --out=<path>                The target file (.png|bmp|jpeg|emf|...)
 --min-width=<int>           Minimal width for the image (default: 800)
 --max-wait=<ms>             Don't wait more than (default: 90000, inf: 0)
 --delay=<ms>                Wait after loading (e.g. for Flash; default: 0)
 --silent                    Whether to surpress some dialogs
 ]]
--------------------------------------------------------------------------------

local p_path = TrainerOrigin or getMainForm()
os.remove(p_path.."\\IECapt.exe")
os.remove(p_path.."\\content.jpg")


function getHTML()
 local textURL = txtURL.Text

 if textURL == "" or string.sub(textURL,1,4) ~= "http" then
  showMessage("Invalid URL. Please typing a proper URL")
  return
 end

 p_cpick = findTableFile('IECapt.exe').Stream
 p4 = p_path..'\\IECapt.exe'
 p_cpick.saveToFile(p4)
 os.execute(p_path.."\\IECapt --url="..textURL.."/ --out="..p_path.."\\content.jpg")
 webImage.Picture.loadFromFile(p_path.."\\content.jpg")
end


function clearance()
 p_path = TrainerOrigin or getMainForm()
 os.remove(p_path.."\\IECapt.exe")
 os.remove(p_path.."\\content.jpg")
 closeCE()
 return caFree
end

form.Show()
form.OnClose = clearance
btnURL.OnClick = getHTML


Note :
- Result as shown on attached image
- Read how to set image resolution from link provided above



218607.jpg
 Description:
IECapt Result
 Filesize:  66.01 KB
 Viewed:  1593 Time(s)

218607.jpg



_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
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