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 use Trackbar?

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

Joined: 22 Dec 2015
Posts: 214
Location: Jupiter

PostPosted: Sat Mar 12, 2016 7:04 am    Post subject: How to use Trackbar? Reply with quote

I was thinking of adding a amount changer to my trainer with the track bar but don't know how to use it sadly. Would this type of script be possible for the track bar or would it not work?

Code:

function CETrackBar1Change(sender)
 if (trackBar_getState(CETrainer.CETrackBar1) == 0) then
  autoAssemble([[
  //nothing happens
  ]])
 if (trackBar_getState(CETrainer.CETrackBar1) == 1) then
   autoAssemble([[
   //adds 1000
 ]])
 if (trackBar_getState(CETrainer.CETrackBar1) == 2) then
  autoAssemble([[
  //adds 2000
  ]])
if (trackBar_getState(CETrainer.CETrackBar1) == 3) then
  autoAssemble([[
  //adds 3000
  ]])
 end
end


would the above work for a track bar if not could you please help me or tell me if it can or can not be used in this way. Confused
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