Jump to content

ini or txt?


Recommended Posts

So, I'm working on something that will help me find usernames available for a website.

You can usually search in the chats by typing :devUSERNAME: and if it's used it will have a link, if not it wont.

I'm wondering how I would be able start from the top of a list in a file and go down the list, so it will type that? o_o

Here's an example of the list it will be calling names from:

username1
username2
username3

Then, I'd like it to stop when it reaches the end of the file.

How would it do that? Here's a piece of the code for a DIFFERENT username finder, but It has similar properties.

HotKeySet("{ESC}", "Close")

$x = 1
Sleep(3000)
Do
    Send(":dev"& $x& ":")
    Send("{ENTER}")
    $x = $x + 1
Until $x = 50

Func Close()
    Exit
EndFunc

What that does is it displays number based usernames, then sends them to the chat, so I can see which are available and which aren't.

:dev1:

:dev2:

:dev3:

Etc.

I'm sorry if this is kind of confusing, I'm confused myself.

I want it to type in the usernames from a ini or txt file until it reaches the end. :\

Help?

Link to comment
Share on other sites

Make at least an attempt.

Thanks for your post.

Anyways, all I need it to do is pull usernames from a file. I know how to create the file, but I don't need one section specified.

I just need it to go down the list.

Link to comment
Share on other sites

I often wonder how many people make a new account for each topic, its seems to be loads.

Are such people not regarded as trolls here ?

So as for the code.

Make your ini.

Read it with inireadsection.

Loop through the resulting array sending your names.

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

I often wonder how many people make a new account for each topic, its seems to be loads.

Are such people not regarded as trolls here ?

So as for the code.

Make your ini.

Read it with inireadsection.

Loop through the resulting array sending your names.

On the contrary, I've misplaces my password and email for my previous account.

If you're assuming I'm a troll, then you're assumption is making you look like an ass.

I'm sorry for the inconvenience of adding a new account to this forum, my apologies.

Moving on - thank you. :)

Link to comment
Share on other sites

  • Developers

On the contrary, I've misplaces my password and email for my previous account.

If you're assuming I'm a troll, then you're assumption is making you look like an ass.

I'm sorry for the inconvenience of adding a new account to this forum, my apologies.

Moving on - thank you. :)

So your Penisxxxx account can be locked and you are "moving on" with the pussies from now on?

Great :(

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Anyways, all I need it to do is pull usernames from a file. I know how to create the file, but I don't need one section specified.

I just need it to go down the list.

JonhOne is dead on the money. Putting forth some effort and showing what code you have, what isn't working, and where you need help is a much better method of asking for help. Here are some suggestions for you to study in the Help File. It (Help file) is usually easier to navigate than the forum that's filled with similiar questions asked thousands of times.

Lookup FileReadToArray(), FileRead(), FileReadLine(), IniRead(), etc ... and cycle through the array until then using a For..Next loop

Cheers!

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...