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 


How to Progressbar in lua ?

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

Joined: 27 Jul 2016
Posts: 124

PostPosted: Mon Oct 09, 2017 6:33 am    Post subject: How to Progressbar in lua ? Reply with quote

Hello member CE Very Happy
I have problems need help to complete this script Confused
I am applying a example of Dark Byte, the code above i am using auto AOB
Code:

al=? ? ? ?()
starthack=al.getMemoryRecordByDescription('starthack')
function starthackclick(sender)
  starthack.Value= ? ? ? ?
end
function onOpenProcess(processid)
  --called whenever cheatengine opens a process

  --Update the status label
  CETrainer.CELabel1.Caption="Attached to process"

  --update the progressbar
  --Right now, the progress is configures to range from 0 to 100
  --Having opened the process probably means fully done, so:
  CETrainer.CEProgressbar1.Position=100 --100% done
end

CETrainer.show();
CETrainer.CELabel1.Caption="Waiting for the process to be opened"
CETrainer.CEProgressbar1.Position=50

getAutoAttachList().add('game.exe') --adds the process to the auto attach list

Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Mon Oct 09, 2017 10:16 am    Post subject: Reply with quote

Code:
al = getAddressList()
starthack = al.getMemoryRecordByDescription('starthack')
starthack.Active = true
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