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 


one button that changed them all

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
kentpachi2
How do I cheat?
Reputation: 0

Joined: 03 Feb 2020
Posts: 8

PostPosted: Wed Feb 26, 2020 9:33 am    Post subject: one button that changed them all Reply with quote

hello CE users
first this is a sample code

Code:

function M1()
   searchV = '22 FD 8A 3F '
   replaceV = '66 66 A6 3F '
   AOBRep(searchV,replaceV)
   showMessage(" M1 Active")
   end
   
   function KN()
   searchV = 'A2 45 8E 3F '
   replaceV = '7B 14 AE 3F '
   AOBRep(searchV,replaceV)
   showMessage(" KN Active")
   end
   
   
   MyForm = createForm(true)
   MyForm.Caption = 'test '
   MyForm.Width = 400
   MyForm.Height = 280
   
   btn2 = createButton(MyForm)
   btn2.Left = 10
   btn2.Top = 60
   btn2.Width = 120
   btn2.Height = 40
   btn2.onClick = M1
   btn2.Caption = 'M1 B'
   
   
   btn8 = createButton(MyForm)
   btn8.Left = 140
   btn8.Top = 160
   btn8.Width = 120
   btn8.Height = 40
   btn8.onClick = KN
   btn8.Caption = ' Kn B '


how to make a button script that activates both at once?
that is just a sample test. i want to activate 5 or more at one click
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Thu Feb 27, 2020 7:06 pm    Post subject: Reply with quote

Code:
function allActive()
  searchV = '22 FD 8A 3F '
  replaceV = '66 66 A6 3F '
  AOBRep(searchV,replaceV)
  showMessage(" M1 Active")
  sleep(1000)
  searchV = 'A2 45 8E 3F '
  replaceV = '7B 14 AE 3F '
  AOBRep(searchV,replaceV)
  showMessage(" KN Active")
  sleep(1000)
  --- continue
end

buttonAllActive.OnClick = allActive


But the functions above work IF you sure the AOB's you search exactly exists on the memory.
If not, you need generating statements to handle if the AOB's not found or not exists.

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
kentpachi2
How do I cheat?
Reputation: 0

Joined: 03 Feb 2020
Posts: 8

PostPosted: Fri Feb 28, 2020 10:55 pm    Post subject: Reply with quote

Corroder wrote:
Code:
function allActive()
  searchV = '22 FD 8A 3F '
  replaceV = '66 66 A6 3F '
  AOBRep(searchV,replaceV)
  showMessage(" M1 Active")
  sleep(1000)
  searchV = 'A2 45 8E 3F '
  replaceV = '7B 14 AE 3F '
  AOBRep(searchV,replaceV)
  showMessage(" KN Active")
  sleep(1000)
  --- continue
end

buttonAllActive.OnClick = allActive


But the functions above work IF you sure the AOB's you search exactly exists on the memory.
If not, you need generating statements to handle if the AOB's not found or not exists.

thank you it works!

dont worry its just a sample AoB.
I have like 5 lines of hacks
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 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