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 Progress Bar in Trainer?

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

Joined: 24 Dec 2017
Posts: 66

PostPosted: Sun Dec 24, 2017 7:26 pm    Post subject: How To Use Progress Bar in Trainer? Reply with quote

Ow use Progress bar?
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Mon Dec 25, 2017 10:58 pm    Post subject: This post has 1 review(s) Reply with quote

Code:
local pb = MainForm.ProgressBar -- some progress bar (this uses the main one)
pb.Position = pb.Min -- set current position to min

if t then t.destroy(); t = nil end -- destroy any old timer from demo
t = createTimer() -- create new timer
t.Interval = 100 -- run every 100 milliseconds or 1/10 of a second
t.OnTimer = function() -- code to run
  pb.stepIt() -- increase by pb.Step (1, can be changed)
  if pb.Position >= pb.Max then -- check if at max
    -- destroy timer if so
    t.destroy()
    t = nil
  end
end


check celua.txt in the install directory for a couple more options like stepBy.
Back to top
View user's profile Send private message
MateeJr GT
Advanced Cheater
Reputation: 0

Joined: 24 Dec 2017
Posts: 66

PostPosted: Sat Jan 27, 2018 6:09 pm    Post subject: Reply with quote

yeah FreeER Thanks for script but that just work on.CHEAT ENGINE EXE APP TRACK BAR But o want is The trackbar on my traimer move
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Sat Jan 27, 2018 6:47 pm    Post subject: Reply with quote

If you want to use your own progress bar then create one and change the settings to what you want (if the defaults aren't good enough) and set pb to it instead of the MainForm's, it's that simple

A trackbar is not the same thing as a progressbar despite both being bars... a trackbar is a type of input (where a user can select a value by sliding a marker along a track of values) while a progressbar is a type of output (typically it increases from 0% to 100% to indicate completion status).
Back to top
View user's profile Send private message
MateeJr GT
Advanced Cheater
Reputation: 0

Joined: 24 Dec 2017
Posts: 66

PostPosted: Sun Feb 11, 2018 4:48 am    Post subject: Reply with quote

Quote:
If you want to use your own progress bar then create one and change the settings to what you want (if the defaults aren't good enough) and set pb to it instead of the MainForm's, it's that simple 

A trackbar is not the same thing as a progressbar despite both being bars... a trackbar is a type of input (where a user can select a value by sliding a marker along a track of values) while a progressbar is a type of output (typically it increases from 0% to 100% to indicate completion status).

I not understand FreeER .
More helps ?
I already tryed but error . Idk he say pb error
please give a simple CT OR ANY SCRIPS FOR CEPROGRESSBAR RUN

_________________
Hi Lynxz Gaming
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Sun Feb 11, 2018 6:54 am    Post subject: Reply with quote

I already did. It doesn't get any simpler than that nor does changing it to use your own, change MainForm.ProgressBar to whateverYourFormNameIs.WhateverYourProgressBarNameIs.

Ok, technically I suppose the simplest would be MainForm.ProgressBar.stepIt() but that's probably an entirely worthless example...

Go learn lua and write some lua scripts that do stuff, then go read the CE documentation and write some actual scripts, then come back and you'll understand that what you were given is super trivial code.
Back to top
View user's profile Send private message
MateeJr GT
Advanced Cheater
Reputation: 0

Joined: 24 Dec 2017
Posts: 66

PostPosted: Sun Feb 11, 2018 7:28 am    Post subject: Reply with quote

FreeER wrote:
I already did. It doesn't get any simpler than that nor does changing it to use your own, change MainForm.ProgressBar to whateverYourFormNameIs.WhateverYourProgressBarNameIs.

Ok, technically I suppose the simplest would be MainForm.ProgressBar.stepIt() but that's probably an entirely worthless example...

Go learn lua and write some lua scripts that do stuff, then go read the CE documentation and write some actual scripts, then come back and you'll understand that what you were given is super trivial code.


Thanks FreeER You is the best helper. Its worked! ? Thanks thanks!
Bye

_________________
Hi Lynxz Gaming
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