Welcome Guest, Not a member yet? Login with Steam   Create Account  




Please Help

#1
(This post was last modified: Sunday, 08-01-2017, 01:33 AM by Sam.)

Code:
f5::
Loop
{
bet:= 500
PixelSearch, X1, Y1, 0, 0, 1079, 1919, 0x123456, 1, Fast
    If ErrorLevel = 0
    {
     Send, bet
    }
    If ErrorLevel = 1
    {
     updatedbet:= (bet*2)
     Send, %updatedbet%
    }

}
Return

This is an autohotkey script I'm using to automate the use of the martingale in DarkRP Gambling. What I need help with is making it so the updated bet stays consistent, so everytime I lose it times by two. At the moment, it only multiplies by two once, and spits it out over and over again.
[Image: snLYABM.png]
Reply

#2
(This post was last modified: Thursday, 12-01-2017, 08:11 AM by Dingle.)

Sam, I don't know how to read it very well but you are constantly assigning the value of updatedbet to bet*2. You are not changing the value of bet so bet*2 is always 1000
If you are giving bet a new value using that send function, it seems to only be scoped within the pixel search.
Reply

#3

Yeah I fixed it by putting the variable outside the loop
[Image: snLYABM.png]
Reply





Users browsing this thread:
1 Guest(s)