Results 1 to 11 of 11

Thread: Help me

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2001
    Location
    United States
    Posts
    420

    Exclamation

    I need to figure out how to make a text and number scroller like so it scrolls thourght numbers and letters like this:
    1aaaa
    1aaab
    1aaac
    1aaad
    1aaae
    1aaaf
    1aaag
    1aaah
    1aaai
    1aaaj
    1aaak
    1aaal
    1aaam
    1aaan
    1aaao
    1aaap
    1aaaq
    1aaar
    1aaas
    1aaat
    1aaau
    1aaav
    1aaaw
    1aaax
    1aaay
    1aaaz
    1aaa1
    1aaa2
    1aaa3
    1aaa4
    1aaa5
    1aaa6
    1aaa7
    1aaa8
    1aaa9
    1aaa0
    1aaa!
    1aaa@
    1aaa#
    1aaa$
    please any body help me

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Code:
    For x = 1 to 255
      Print "1aaa" & Chr(x)
    Next
    it won't come out in the order you want, but play around with it...
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2001
    Location
    United States
    Posts
    420

    Exclamation But

    But i want it to go throught the 0-9 system then to a-z then go to the next line like a password decoder

  4. #4
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    okay, in rows like that, or in one place? Like one changing string, or how you listed them up top...?
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2001
    Location
    United States
    Posts
    420

    Exclamation In one place

    like text1.text = Then the code i need
    i dont want to print it i want to run one posibility the chech to see if it is correct then run the possibilty rite after it to see if it correct and so on and so on .....

  6. #6
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Code:
      For a = 48 To 122
        For b = 48 To 122
          For c = 48 To 122
            For d = 48 To 122
              For e = 48 To 122
                If Text1.Text = Chr(a) & Chr(b) & Chr(c) & Chr(d) & Chr(e) Then
                  MsgBox "Found - " & Chr(a) & Chr(b) & Chr(c) & Chr(d) & Chr(e)
                  Exit Sub
                End If
              Next e
            Next d
          Next c
        Next b
      Next a
    This could take a long time though...and this code works on 5 characters, only
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2001
    Location
    United States
    Posts
    420

    Exclamation But how do you include text like a-z

    Can you help me

  8. #8
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    the Chr() function converts the numbers into ascii characters(0-9,a-z, and many others) that is what those loops are doing...but I am trying to figure out a faster way right now...
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  9. #9
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Code:
    Text2.Text = ""
    
    For x = 1 To Len(Text1.Text) 'replace this with a variable or whatever
      For y = 48 To 122
        If Mid(Text1.Text.x,1) = Chr(y) Then
           Text2.Text = Text2.Text & Chr(y)
        End If
      Next y
    Next x
    this runs a lot faster...
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  10. #10

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2001
    Location
    United States
    Posts
    420

    Exclamation if i wanted how wold i break it in the middle to make it stop

    ¿

  11. #11
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    you mean the first code? Its really running long, isn't it...? Hit CTRL + Pause/Break and it will pause the execution...
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width