Page 1 of 3 123 LastLast
Results 1 to 10 of 21

AHK Num Generator

This is a discussion on AHK Num Generator within the AutoHotKey Help/Training forums, part of the General/Help category; Of course this is mad easy to make, I just want to give an example of a script to new ...

  1. #1
    7usabball is offline Secret Undercover *****
    Join Date
    Jan 2009
    Posts
    1,462

    Default AHK Num Generator

    Of course this is mad easy to make, I just want to give an example of a script to new people

    What this does: Generates a list called Number List.txt and you choose the number you start with, and how many you want.

    So if you put 1 and 500, you'll get a list 1- 500

    if you put 5 and 500, you'll get 5-504 because that's a total of 500 numbers starting at 5

    Note: This is pretty slow in AHK, so keep the program open while it makes the list, or else if you exit, it will just create the list as far as it got up to.

    Code:
    Gui, Add, Edit, x25 y25 h25 w200 vSN, Starting Number
    Gui, Add, Edit, x25 y55 h25 w200 vHM, How many
    Gui, Add, Button, x25 y90 h25 w200, Start
    Gui, Show, x375 y250 h150 w250, Number Generator
    return
    
    ButtonStart:
    Gui, Submit, NoHide
    Loop, %HM%
    {
    FileAppend, %SN% `n, Number List.txt
    SN ++
    }
    return
    
    
    guiclose:
    exitapp
    Download link compressed: http://rapidshare.com/files/28752350..._Generator.exe

    BTW, list comes out entered like:

    1
    2
    3
    4
    5

    not 12345 or 1 2 3 4 5
    ▀█ █▄█ ▄█▀ ▐▀▌


  2.   Alt These ads help cover server costs and such.


  3. #2
    nick761 is offline 3.14159265358979323846264
    Join Date
    May 2008
    Location
    United States
    Posts
    1,056

    Default

    What the heck? This is just like the auth you made. Ridiculously pointless and any AHK coder could make it in a few seconds as long as they know how to use the help file. What's the point of releasing low-quality stuff like this that just uses a built in AHK function? Fail. Again.

    Edit: rofl. This isn't even the random function. It's just making a list of sequential numbers. You do know there's such a variable called A_Index that is the current number of times it's looped?
    Last edited by nick761; 10-01-2009 at 06:28 PM.
    Test out an early version of my SonyRewards bot! Check it out
    GSN Oodles Answer Database - The original GSN answer database, now with over ten thousand answers.
    gPrize - A fast, lightweight, and customizable Oodles prize checker.

  4. #3
    Toeman's Avatar
    Toeman is offline I dont cheat
    Join Date
    May 2008
    Posts
    2,892

    Default

    Ummm

    http://mytexttools.com/Generate-List-of-Numbers.html

    Where is the no thanks button?

  5. #4
    joser831 is offline Noob :)
    Join Date
    Aug 2009
    Posts
    460

    Default

    sooo is there a way of doing this w/out a file? Something built in?

  6. #5
    nick761 is offline 3.14159265358979323846264
    Join Date
    May 2008
    Location
    United States
    Posts
    1,056

    Default

    Quote Originally Posted by joser831 View Post
    sooo is there a way of doing this w/out a file? Something built in?
    Of course. You can easily do this in probably a better way without his [insert adjective here] code.
    Test out an early version of my SonyRewards bot! Check it out
    GSN Oodles Answer Database - The original GSN answer database, now with over ten thousand answers.
    gPrize - A fast, lightweight, and customizable Oodles prize checker.

  7. #6
    joser831 is offline Noob :)
    Join Date
    Aug 2009
    Posts
    460

    Default

    i need to make a bot that does the apt trick but dont know how to
    can someone please help?

  8. #7
    nick761 is offline 3.14159265358979323846264
    Join Date
    May 2008
    Location
    United States
    Posts
    1,056

    Default

    Quote Originally Posted by joser831 View Post
    i need to make a bot that does the apt trick but dont know how to
    can someone please help?
    Sequential number.

    Code:
    Loop  ; The main loop of your program
    {
    AptNumber := A_Index
    Address2 = Apt %AptNumber% 
    }
    Random number.

    Code:
    Loop  ; The main loop of your program
    {
    Random, AptNumber, 100, 9000  ; Generate a random number from 100 to 9000
    Address2 = Apt %AptNumber% 
    }
    Read up on the AHK help file, as that will be very useful to you. Refer to it whenever trying to find a command. Almost every single time I've needed a command I used it and found my answer. It's awesome that they give you a great documentation.
    Test out an early version of my SonyRewards bot! Check it out
    GSN Oodles Answer Database - The original GSN answer database, now with over ten thousand answers.
    gPrize - A fast, lightweight, and customizable Oodles prize checker.

  9. #8
    joser831 is offline Noob :)
    Join Date
    Aug 2009
    Posts
    460

    Default

    ahk help file, wow my dumb ass has looked in so many different sites for help and it has been here all along.
    Thank you

  10. #9
    joser831 is offline Noob :)
    Join Date
    Aug 2009
    Posts
    460

    Default

    One last question how do i make it only 1 number?

  11. #10
    7usabball is offline Secret Undercover *****
    Join Date
    Jan 2009
    Posts
    1,462

    Default

    nicholas, u need to l2r

    this isn't suppose to use a damn random function moron, and i said this is easy as hell, but i'm not releasing, notice how this is in the ahk help/ training section...

    if u read, i said

    1. "Of course this is mad easy to make, I just want to give an example of a script to new people"

    2. "What this does: Generates a list called Number List.txt and you choose the number you start with, and how many you want."

    Notice I said it generates a list, not uses a damn random function to get random numbers for god knows what reason you would...

    3. LEARN TO FUCKING READ

    This isn't a release, it's a fucking little program that may help people understand shit, this isn't suppose to be some bad ass fucking amazingly kick ass program that does god knows what you wanted it to do...

    And lol at this... "What's the point of releasing low-quality stuff like this that just uses a built in AHK function? Fail. Again."

    THIS ISN'T A FUCKING RELEASE, why the FUCK are you calling it a release?!?!

    Moron, go back to school or something, not everyone knows as much ahk as you, so I'm trying to help new people understand it

    LOL, ANOTHER thing to lol at- "Edit: rofl. This isn't even the random function. It's just making a list of sequential numbers. You do know there's such a variable called A_Index that is the current number of times it's looped? "

    Using A_Index here would make no sense, unless you want to be a dumb ass script kiddy and only allow them to start at 1...


    edit: joser- what do you mean by 1 number? if u want it to be 1, then just put it as 1 without any variables
    Last edited by 7usabball; 10-01-2009 at 07:45 PM.
    ▀█ █▄█ ▄█▀ ▐▀▌


Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Facebook Bots | Admin Forum