Jump to content
  • 0

Add a decimal value to a dword N times


Tristan1972
 Share

Question

1 answer to this question

Recommended Posts

  • 0
On 4/4/2024 at 6:42 AM, Tristan1972 said:

Hi guys,

 

Could any anyone tell me how would go about adding N times a decimal value to a Dword?

N should be determined by me 

Do you just mean multiplication? Or do you want to add the value N separate times, with a pause in between? For the latter, you could write a simple script, like this:

 

N = 10 -- how many times
add = 100 -- value to add on every time
timebetween = 1000 -- how long to wait between times (milliseconds)
values = gg.getResults(gg.getResultsCount())
for _ in N do
	for i in values do
    	values[i].value = values[i].value + add
    end
	gg.sleep(timebetween)
end

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.