|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
zer0official How do I cheat? Reputation: 0
Joined: 12 Apr 2021 Posts: 1
|
Posted: Mon Apr 12, 2021 4:34 pm Post subject: How can i transfer the result of print to listbox |
|
|
function reopenProcessThreadFunc(thread, processName)
thread.name = '"reopenProcessThread"'
while true do
if readInteger(processName)== nil then
if openProcess(processName) then
synchronize(function () wego.banbypass.Caption ='Growtopia : Running' end)
else
synchronize(function () wego.banbypass.Caption ='Growtopia : Not Running' end)
end
end
end
end
createNativeThread(reopenProcessThreadFunc,"Growtopia.exe")
function scanClick(sender)
function tohex(str)
return (str:gsub('.', function (c)
return string.format('%02X', string.byte(c))
end))
end
baseAddr=0
offset=0
reasults=AOBScan(tohex("Blank")..'00')
reasults2=AOBScan(tohex("Blank Seed")..'00')
if(reasults==nil or reasults2==nil)then
wego.itemlist.setItems('error')
return
end
for i=1,reasults.getCount()-1 do
for j=1,reasults2.getCount()-1 do
if(tonumber(reasults[i],16) < tonumber(reasults2[j],16))then
baseAddr=tonumber(reasults[i],16)
offset=tonumber(reasults2[j],16)-tonumber(reasults[i],16)
end
end
end
for i=0,99999 do
isValid=true
mystr=readString(baseAddr+offset*(i))
if(mystr==nil)then
break
end
abc=0
for c in mystr:gmatch"." do
if(string.byte(c) < 32 or string.byte(c) > 127 or (abc==0 and string.byte(c)==32))then
isValid=false
end
abc=abc+1
end
if(isValid==true and mystr~="") then
wego.itemlist.Items(i..": "..mystr)
else
mystr=readString(readPointer(baseAddr+offset*(i)))
isValid=true
if(mystr==nil)then
break
end
for c in mystr:gmatch"." do
if(string.byte(c)<30 or string.byte(c)>127)then
isValid=false
end
end
if(isValid==true)then
wego.itemlist.setItems(i..": "..mystr)
else
break
end
end
end
end
function mainpanelMouseDown(sender, button, x, y)
wego.DragNow()
end
function banbypassMouseDown(sender, button, x, y)
wego.DragNow()
end
function TitleMouseDown(sender, button, x, y)
wego.DragNow()
end
function logoMouseDown(sender, button, x, y)
wego.DragNow()
end
function maincolorpanelMouseDown(sender, button, x, y)
wego.DragNow()
end
function closeClick(sender)
CloseCE()
end
function minimizeClick(sender)
wego.height = 30
end
function maximizeClick(sender)
wego.height = 330
end
|
|
Back to top |
|
|
ByTransient Expert Cheater Reputation: 5
Joined: 05 Sep 2020 Posts: 240
|
Posted: Mon Apr 12, 2021 5:25 pm Post subject: |
|
|
CE (CEF) does not support hacking multiplayer games.
If you want to get help again in the future, please delete the game titles in your script.
The example below has been shared to refer to CE Lua.
Code: | local Items = listbox_getItems(wego.itemlist)
local list=[[item1
item2
item3
]]
local SL = createStringlist()
SL.Text=list
for i=0, strings_getCount(SL)-1 do
strings_add(Items, SL[i])
end
SL=nil |
or
Code: | local Items = listbox_getItems(wego.itemlist)
--wego.itemlist.Items(i..": "..mystr)
list=(i..": "..mystr)
strings_add(Items, list) |
|
|
Back to top |
|
|
|
|
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
|
|