Jump to content

Masterlock Program


Recommended Posts

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 Site-Seeing:My Website: - Click Here

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...