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 


About ce functions ,Is this process possible?

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

Joined: 09 Feb 2021
Posts: 76

PostPosted: Sat Sep 03, 2022 12:35 am    Post subject: About ce functions ,Is this process possible? Reply with quote

When following the tutorial to find the pointer,Search for hex with multiple results.
About reducing the address on the MainForm Google search results in very few. It seems that the value on the window is
in getMainForm().Foundlist3.


Is this process possible?

1 do Check find out what accesses this address ,from the first address

2 if there is code to access it,Check next address.

3 If wait two seconds without code access, remove address and Check next address ,until the last address
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25791
Location: The netherlands

PostPosted: Sat Sep 03, 2022 4:03 am    Post subject: Reply with quote

It is possible yes

debug_setBreakpoint(address, 4, bptAccess, function() deal with the bp and/or set next bp end)

and createTimer

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
etioplmld
Advanced Cheater
Reputation: 0

Joined: 09 Feb 2021
Posts: 76

PostPosted: Sat Sep 03, 2022 7:51 am    Post subject: Reply with quote

in someone else's code , The MainForm‘s address in the code seems to be foundList.PopupMenu.Items[i]

local foundList = getMainForm().Foundlist3


how to remove such as foundList.PopupMenu.Items[0]?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25791
Location: The netherlands

PostPosted: Sat Sep 03, 2022 8:14 am    Post subject: Reply with quote

you can use the selected property and then delete the entries by invoking the delete menuitem

but why delete the entries? It's probably easier to keep your own list (especially if you intend to do a follow up next scan and then have to backtrace if it leads to nowhere)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
etioplmld
Advanced Cheater
Reputation: 0

Joined: 09 Feb 2021
Posts: 76

PostPosted: Sun Sep 04, 2022 7:06 am    Post subject: Reply with quote

A window showing the process but not sure why the countdown is wrong
Code:

f = createForm(true)
f.Position=poDesktopCenter
f.Width=500
f.Height=220
f.Caption = 'Process count'


local lb = createLabel(f)
lb.Left=44
lb.Top=30
lb.caption='total number:'..0
lb.Color = 16777215
local font=lb.Font
font.Size = 22
font.Color = 0xff0000

local lb2 = createLabel(f)
lb2.Left=44
lb2.Top=80
lb2.caption='Finish:'..0
lb2.Color = 16777215
local font=lb2.Font
font.Size = 22
font.Color = 0xff0000

local lb3 = createLabel(f)
lb3.Left=44
lb3.Top=120
lb3.caption='address:'..0
lb3.Color = 16777215
local font=lb3.Font
font.Size = 22
font.Color = 0xff0000





local fl = getMainForm().Foundlist3
lb.caption='total number:'..fl.Items.Count

debugProcess()
cdjs = createTimer()


local maincount = fl.Items.Count - 1




local jsct = 3
local i = 0
local ckAccess = false

function debugger_onBreakpoint()
    debug_continueFromBreakpoint(co_run)
    ckAccess=true
end

function countdown()
  lb3.caption=fl.Items[i].Caption

debug_setBreakpoint(fl.Items[i].Caption, 1,bptAccess,debugger_onBreakpoint)

  if ((not ckAccess) and (jsct > 0 and maincount>0 )) then
  lb3.caption = fl.Items[i].Caption..'__'..jsct
  jsct = jsct - 1


  elseif (ckAccess == true and maincount>0 ) then
    debug_removeBreakpoint(fl.Items[i].Caption)

    i = i + 1
    lb3.caption = fl.Items[i].Caption..'__'..jsct

debug_setBreakpoint(fl.Items[i].Caption, 1,bptAccess,debugger_onBreakpoint)

    jsct = 3
    maincount = maincount - 1

    lb2.caption='Finish:'..i

elseif (jsct == 0 and maincount>0) then
    fl.Items[i].Selected = true                --main work
    debug_removeBreakpoint(fl.Items[i].Caption)

    i = i + 1
    lb3.caption = fl.Items[i].Caption..'__'..jsct
debug_setBreakpoint(fl.Items[i].Caption, 1,bptAccess,debugger_onBreakpoint)
    jsct = 3
    maincount = maincount - 1

    lb2.caption='Finish:'..i

  else
   lb3.caption='end'
   cdjs.destroy()
  end
end
cdjs.interval = 1000
cdjs.OnTimer = countdown



Refer to this but the effect of waiting for timeout is not right,it selects all addresses。
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