Jump to content
Sign in to follow this  
techguy86

Masterlock Program

Recommended Posts

techguy86

Okay I have a problem here. What AutoIt function do I use to eliminate the second number +2 and -2 from the third number? Here's all I have...

Func Find()
    GUICtrlSetData($digitgroup1, "")
    GUICtrlSetData($digitgroup2, "")
    GUICtrlSetData($combolist, "")
    For $x = 0 To 39
        If Mod($x, 4) <> Mod(GUICtrlRead($lastnumber), 4) Then ContinueLoop
        $digitgroup1current = GUICtrlRead($digitgroup1)
        GUICtrlSetData($digitgroup1, $digitgroup1current & $x & " ")
        Select
            Case Mod($x, 4) = 0 Or Mod($x, 4) = 1
                $y = $x + 2
            Case Mod($x, 4) = 2 Or Mod($x, 4) = 3
                $y = $x - 2
        EndSelect
;If $y = GUICtrlRead($lastnumber) + 2 Or $y = GUICtrlRead($lastnumber) - 2 Then ContinueLoop
        $digitgroup2current = GUICtrlRead($digitgroup2)
        GUICtrlSetData($digitgroup2, $digitgroup2current & $y & " ")
    Next
    $group1text = StringReplace(StringStripWS(GUICtrlRead($digitgroup1), 3), " ", ",")
    $group2text = StringReplace(StringStripWS(GUICtrlRead($digitgroup2), 3), " ", ",")
    $splittext1 = StringSplit($group1text, ",")
    $splittext2 = StringSplit($group2text, ",")
    For $x = 1 To $splittext1[0]
        For $y = 1 To $splittext2[0]
            GUICtrlSetData($combolist, $splittext1[$x] & " : " & $splittext2[$y] & " : " & GUICtrlRead($lastnumber))
        Next
    Next
EndFunc ;==>Find

The commented line(I commented it because it's not working yet) does not eliminate 38 when the last number is 0. Please someone shoot me some code. Thanks

Previous Location


My Programs:Dissolve (Updated 5-30-06)Credit Card Validator (Not created as of yet)Master Lock Combination Cracker (Updated 7-08-07)Go Siteseeing:My Website: - Click HereCyberZeroCool's Website - Click Here

Share this post


Link to post
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
Sign in to follow this  

×

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.