Results 1 to 5 of 5

Question about AHK?

This is a discussion on Question about AHK? within the AutoHotKey Help/Training forums, part of the General/Help category; All right so I'm working on a bot that would create Yahoo! E-mail accounts but I was wondering if this ...

  1. #1
    Lyov's Avatar
    Lyov is offline <3
    Join Date
    Aug 2009
    Posts
    624

    Default Question about AHK?

    All right so I'm working on a bot that would create Yahoo! E-mail accounts but I was wondering if this is possible in AHK:
    A) Get a name from http://www.fakenamegenerator.com/
    B) Input it into the name for someone into the form asking for first name last name etc,
    C) getting the first and last name to something like chuck.bryant@yahoo.com (do they allow periods?)
    anyways if anyone has anymore questions then just ask.

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


  3. #2
    Ian
    Ian is offline Junior Member
    Join Date
    Feb 2009
    Posts
    110

    Default

    Yes, this can be done in Autohotkey.

    To get the random name you will have to use UrlDownloadToFile to download http://www.fakenamegenerator.com/gen-random-us-us.php, read the file, and then parse out the information you need.

    To input the information you could use cURL, COM, etc.

  4. #3
    Lyov's Avatar
    Lyov is offline <3
    Join Date
    Aug 2009
    Posts
    624

    Default

    Quote Originally Posted by Ian View Post
    Yes, this can be done in Autohotkey.

    To get the random name you will have to use UrlDownloadToFile to download http://www.fakenamegenerator.com/gen-random-us-us.php, read the file, and then parse out the information you need.

    To input the information you could use cURL, COM, etc.
    I'd use COM but I was just wondering how it works, and thanks for answering .

  5. #4
    soccer18soccer18 is offline Subscriber
    Join Date
    Jul 2009
    Posts
    434

    Default

    if you cant do something as simple as getting a name from http://www.fakenamegenerator.com/, you probably shouldnt try making this bot, no offense.

    but yeah ians right that is how you would do it

  6. #5
    Ian
    Ian is offline Junior Member
    Join Date
    Feb 2009
    Posts
    110

    Default

    This will download the page and put the page's source into a variable:
    Code:
    UrlDownloadToFile, http://www.fakenamegenerator.com/gen-random-us-us.php, %A_ScriptDir%\source.html
    FileRead, Source, %A_ScriptDir%\source.html
    FileDelete, %A_ScriptDir%\source.html
    Now that the source is in a variable you can parse the variable to get the things you need inside it.

    Too lazy to actually do this because it takes a bit of trial and error but:
    http://www.autohotkey.com/docs/commands/LoopParse.htm
    http://www.autohotkey.com/docs/commands/RegExMatch.htm
    http://www.autohotkey.com/docs/misc/RegEx-QuickRef.htm

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