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 


View images in the selected process.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions
View previous topic :: View next topic  
Author Message
AylinCE
Grandmaster Cheater Supreme
Reputation: 31

Joined: 16 Feb 2017
Posts: 1234

PostPosted: Sun Feb 20, 2022 4:54 am    Post subject: View images in the selected process. Reply with quote

Based on the idea formed after seeing this article;
Code:
readString(a,200,ms.Unicode)

( https://forum.cheatengine.org/viewtopic.php?t=619071 )
Thanks @Dark Byte ..

It is a subject that some users rarely wonder about.
View the images stored in the selected process.

That's why I'm archiving a plugin for it here.
+Option: When the displayed image is clicked, I will add the option to save the image to the folder, if there is a request, to the existing code.

The code below; Create a ".lua" file, put it in, save it and drop it in CE>>autorun folder.

Or edit the code according to your choice and use it as you wish.

Code:
------------------------ GUI
function loadImgWiew()
if f then f.destroy() f=nil end
f = createForm() f.setSize(600,430) f.Caption = "By AylinCE - Image Viewer" setProperty(f , "BiDiMode", "bdLeftToRight")
f.Color=0xFF0000 f.Position=poDesktopCenter f.Popupmode=0;

list = createListBox(f) list.Height=310 list.Width=150 list.setPosition(5,85) list.color=0x00FFFF
list.Font.Style="fsBold"

local lx1 = createLabel(f)
lx1.AutoSize=false lx1.Height=80 lx1.Left=5 lx1.Top=1 lx1.Width=150
lx1.Font.Size=10 lx1.Font.Color=0xFFFFFF lx1.OptimalFill=true lx1.Font.Style="fsBold"
lx1.Alignment= "taCenter"
lx1.caption = 'Double-click the\nselection to view it.\nGörmek için,\nseçimi çift tıklayın.'

local bx1=createButton(f)
bx1.Left=5 bx1.Top=400 bx1.Width=150
bx1.Font.Size=12 bx1.Font.Style="fsBold" bx1.caption="Load List"

local pnl1 = createPanel(f)
pnl1.Left=160 pnl1.Height=390 pnl1.Top=5 pnl1.Width=435 pnl1.Color=0xFFFFFF

local Img1 = createImage(pnl1)
Img1.Left=5 Img1.Height=380 Img1.Top=5 Img1.Width=425

local lx2 = createLabel(f)
lx2.AutoSize=false lx2.Height=29 lx2.Left=160 lx2.Top=395 lx2.Width=435
lx2.Font.Size=10 lx2.Font.Color=0xFFFFFF lx2.OptimalFill=true lx2.Font.Style="fsBold"
lx2.Alignment= "taCenter"
lx2.caption = 'Picture Original Size, Height: 0 / Width: 0 '
------------------------ Func
aa3={"https://cheatengine.org/celogo.png",
"https://i.hizliresim.com/m1s3f90.png",
"https://yt1s.com/statics/image/favicon-32x32.png",
"https://ssl.gstatic.com/docs/doclist/images/empty_state_hidden_shared_drives_index.png",
"https://ssl.gstatic.com/ui/v1/menu/checkmark-partial_2x.png",
"https://www.gstatic.com/images/icons/material/system/1x/broken_image_grey600_18dp.png",
"https://www.google.com/images/emails/addon/calendar_welcome_card.png",
"https://www.youtube.com/s/desktop/76df868b/img/favicon_32x32.png",
"https://i.ibb.co/7KtCWPH/donate-button11.png",
"https://ssl.gstatic.com/ui/v1/star/star-lit-hover4_2x.png",
"https://ssl.gstatic.com/ui/v1/star/star-lit-active4.png",
"https://de26-engine.flamingtext.com/netfu/tmp28009/coollogo_com-181241012.png"
}

local items = list.Items
for i,k in pairs(aa3) do
strings_add(items,k)
end

function loadUrl(link)
  local int=getInternet()
  s=int.getURL(link)
  int.destroy()
  return s
end

function crtPictures11(link)
aLnk=loadUrl(link)
local ss222=createStringStream(aLnk)
p1=createPicture()
p1.loadFromStream(ss222)
ss222.destroy()
return p1
end

function selectLinks()
local a1 = list.ItemIndex
local pro1 = list.Items
 local Links = pro1[a1]
 --print(Links)
  if Links then
   newLink=crtPictures11(Links)
    if newLink then
       Img1.AutoSize=true
       Img1.Stretch=false
       Img1.Picture=newLink
       lx2.caption = "Picture Original Size, Height: " .. Img1.Height .. " / Width: " .. Img1.Width
       --print(Img1.Height,Img1.Width)
      if Img1.Width<pnl1.Width or Img1.Height<pnl1.Height then
       Img1.AutoSize=true
       Img1.Left=pnl1.Width / 2 - Img1.Width / 2
       Img1.Top=pnl1.Height / 2 - Img1.Height / 2
       --print(Img1.Left,Img1.Top)
      else
       Img1.AutoSize=false
       Img1.Width=pnl1.Width - 10
       Img1.Height=pnl1.Height - 10
       Img1.setPosition(5,5)
        Img1.Stretch=true
      end
    end
  end
end

function loadPngList()
bx1.caption="Please Wait . . "
local items = list.Items
items.clear()
aob=AOBScan("68 74 74 70 73 3A 2F 2F") --String(https://)

if aob~=nil then
 for i=1, aob.Count -1 do
  ms=getCurrentMemscan()
  a=tonumber(aob[i],16)
  item=readString(a,200,ms.Unicode)
   if item~=nil then
    item1=(item):match("(.-).png")
    item11=(item):match("(.-).jpg")
     if item1~=nil then
      item2=(item):match("https://(.-).png")
      item3="https://" .. item2 .. ".png"
      strings_add(items,item3)
      --print(item3)
     end
     if item4~=nil then
      item5=(item):match("https://(.-).jpg")
      item6="https://" .. item5 .. ".jpg"
      strings_add(items,item6)
      --print(item3)
     end
   end
 end
end
aob=nil
bx1.caption="Load List"
end

bx1.OnClick=loadPngList
list.onDblClick=selectLinks
end
--------------------- CE Menu
mf = getMainForm()
mainMenu = mf.Menu.Items
local IWiew = createMenuItem(mf.MainMenu)
IWiew.Name = 'IWiew'
   IWiew.Caption = 'ImgWiewer'
   mainMenu.insert(mainMenu.Count-1,IWiew)
   IWiew.onClick = loadImgWiew



Link


I will add the option to save if requested.



imgWiew1.PNG
 Description:
 Filesize:  42.83 KB
 Viewed:  14725 Time(s)

imgWiew1.PNG



_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Mon Feb 21, 2022 2:06 am    Post subject: Reply with quote

Good job !
Event, why am I familiar with some of the scripts here? Very Happy

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 31

Joined: 16 Feb 2017
Posts: 1234

PostPosted: Mon Feb 21, 2022 3:43 am    Post subject: Reply with quote

Corroder wrote:
Good job !
Event, why am I familiar with some of the scripts here? Very Happy


The codes are always the same. Just the ideas are different. Smile

You also took a long break. We missed your crazy and unique code and projects.
If the square is left to me, this is what will happen. Wink

I hope you are well beautiful person.

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions 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