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 


Cheat Engine Forum Index
PostGo back to topic
Dark Byte
Site Admin
Reputation: 458
Joined: 09 May 2003
Posts: 25296
Location: The netherlands

PostPosted: Tue Mar 23, 2021 2:33 am    Post subject:

Perhaps you can do what you need to do without AA scripts in 7.2

example:
Code:

function forEachAndFutureForm(classname, func)
  local i
  for i=0,getFormCount()-1 do
    local f
    f=getForm(i)
    if f.ClassName==classname then
      func(f)
    end
  end

  registerFormAddNotification(function(f)
    if classname==f.ClassName then
      f.registerFirstShowCallback(function()
        func(f)
      end)
    end
  end)
end

forEachAndFutureForm('THotKeyForm',function(f)
  printf('Hotkey form created. Name='..f.name)
  --check which memoryrecords are currently selected and store it or something...
  local oldOK=f.BitBtn1.OnClick
  f.BitBtn1.OnClick=function(s)
    print("Do stuff before ok click")
    oldOK(s)
    print("Do stuff after ok click")
  end

  --f.btnApply.OnClick is also a thing
end)

_________________
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


Last edited by Dark Byte on Wed Mar 24, 2021 2:01 am; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
Post reviews:   Approve 1
Author Review
ByTransient
Review: Approve
Post reference:
ReviewPosted: Tue Mar 23, 2021 5:52 am

Thanks
Back to top
View user's profile Send private message
Display:  
Cheat Engine Forum Index


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites