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 


Help Track bar and progress bar

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Filipe_Br
Master Cheater
Reputation: 3

Joined: 07 Jan 2016
Posts: 272
Location: My house

PostPosted: Fri Aug 05, 2016 10:12 pm    Post subject: Help Track bar and progress bar Reply with quote

I have the following script below, and want to improve it, the first thing you want to do is put a Progress bar indicating progress to the hack to be active, and I also want the value in "writeDouble (a, 200)" can be chosen by the User by means of a track bar, which can vary from 0 to 4000.
Someone can make a script for me?

Code:

function CECheckbox1Change(sender)
   if (CETrainer.CECheckBox1.State==cbChecked) then
      function jumphack()
         if address1==nil then
            result1 = AOBScan("F3 0F 7E 51 20 F2 0F 59 D0")

            if result1==nil then
               checkbox_setState(CETrainer.CECheckbox1, 0)
               showMessage("Entre na batalha e tente novamente")
            else
               address1=getAddress(stringlist_getString(result1,0))
               jumphack()
            end
         else
            debug_setBreakpoint(address1)
            function debugger_onBreakpoint()
               local a=ECX + 0x20
               if (isKeyPressed(VK_V)) or (isKeyPressed(VK_J)) then
                  writeDouble(a,2000)
               end
            return 1
            end
         end
      end
      jumphack()
   else
       debug_removeBreakpoint(address1)
   end
end
Back to top
View user's profile Send private message
Supernick
Newbie cheater
Reputation: 0

Joined: 04 Jul 2016
Posts: 15

PostPosted: Mon Aug 08, 2016 11:43 am    Post subject: Reply with quote

change writeDouble(a,2000) to
writeDouble(a,UDF1.CETrackBar1.Position)



TrackBar.CT
 Description:

Download
 Filename:  TrackBar.CT
 Filesize:  740 Bytes
 Downloaded:  444 Time(s)

Back to top
View user's profile Send private message
Filipe_Br
Master Cheater
Reputation: 3

Joined: 07 Jan 2016
Posts: 272
Location: My house

PostPosted: Mon Aug 08, 2016 8:42 pm    Post subject: Reply with quote

Supernick wrote:
change writeDouble(a,2000) to
writeDouble(a,UDF1.CETrackBar1.Position)

This one I could learn myself, but the Progress Bar does not know
Back to top
View user's profile Send private message
Supernick
Newbie cheater
Reputation: 0

Joined: 04 Jul 2016
Posts: 15

PostPosted: Mon Aug 08, 2016 8:47 pm    Post subject: Reply with quote

u can either put it in a timer so u control how fast it increase or just change the Position of it
UDF1.CEProgressBar1.Position = 100
Back to top
View user's profile Send private message
Filipe_Br
Master Cheater
Reputation: 3

Joined: 07 Jan 2016
Posts: 272
Location: My house

PostPosted: Tue Aug 09, 2016 6:39 am    Post subject: Reply with quote

more expensive than good is that?
it to and will change the position of 100, sometimes a hack takes longer to activate sometimes less, as has the cheat engine has a Progress Bar that indicates when the scan is over, I want it on my hack.
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