ive got your prog
Quick & dirty in AutoIt. MSN me for the executable.Code:#include <File.au3> Local $sDialog Local $sDir Local $sLine Local $sEmail Local $sBuff $sDialog = FileOpenDialog("File Parser v0.1 | Select File Containing Data (.txt)", _ @ScriptDir & "\", "Text Files (*.txt)", 5) $sDir = StringReplace($sDialog, "|", @CRLF) For $i = 0 To _FileCountLines($sDir) $sLine = FileReadLine($sDir, $i) If StringInStr($sLine, "Email =") Then $sEmail = StringStripWS(StringReplace($sLine, "Email =", ""), 8) & @CRLF $sBuff &= $sEmail EndIf Next FileWrite(@ScriptDir & "\Emails.txt", $sBuff & "----------------------------------------------") MsgBox(64, "Completed!", "Process successfully completed!")
Results 1 to 20 of 20
Thread: @Zanabar
- 06 Jul. 2012 11:27pm #1
@Zanabar
Last edited by The Unintelligible; 06 Jul. 2012 at 11:35pm.
- 06 Jul. 2012 11:42pm #2
- 06 Jul. 2012 11:45pm #3
Not unless you're compiling it from source, no. I could deploy a scanned executable if you want.
Also, brief overview of what it does: Select a text file from the dialog prompt, it then evaluates that text file and extracts all e-mails from it with the "Email =" clause (that means the text file has to be in a fairly holistic format). It then in turn outputs a text file containing the e-mails. It should be self-explanatory, though. The source is pretty self-documented.
- 06 Jul. 2012 11:48pm #4
Yes i know that, even if I can't write the code I can understand everything it's doing. What i said was that there is an additional feature I asked for which you forgot to add
I want it to filter the new e-mail list for only e-mails which are @hotmail.com/hotmail.co.uk/yahoo.com/yahoo.co.uk
Basically any e-mails with yahoo or hotmail domains. Additionally, does it make sure to paste only the e-mail address and not e-mail = xxxx@hotmail.com?
The output should be ONLY xxxx@hotmail.com not E-mail = xxxx@hotmail.com
- 06 Jul. 2012 11:53pm #5
Alright, hotmail/yahoo e-mails only? That should be simple to throw in. Also here's a sample output using the sample data you gave me:
michael_ang@hotmail.com
jacey@hotmail.com
o_dogan@hotmail.com
reisradio@hotmail.com
----------------------------------------------
I've already implemented that specification.
- 07 Jul. 2012 12:05am #6
- 07 Jul. 2012 12:21am #7
Done and done. Be sure to message me later. Debt repaid. Enjoy.
- 07 Jul. 2012 12:45am #8
Will do. Get off work in roughly 4 and a half hours Will message ya then.
- 07 Jul. 2012 02:04am #9
- Join Date
- Apr. 2010
- Location
- When freedom is outlawed only outlaws will be free
- Posts
- 5,113
- Reputation
- 195
- LCash
- 471.00
Just a question, sorry if I'm intruding, but...
Why would you need to parse a file for its emails? What file could you possibly have that has that many emails that aren't plainly labled? Is it outputs from iStealer or something?
- 07 Jul. 2012 02:42am #10
There's a sqillion use cases. The most obvious being importing in to some sort of email software.
- 07 Jul. 2012 03:19am #11
@Flareboy what Artificial said basically
- 07 Jul. 2012 04:46am #12
So unintelligible, can you tell me what are some advantages to using AutoIt over other scripting languages, because right now the only one I know (extremely vaguely) is AppleScript, and it seems trk well for what it does. (I don't script at all, so forgive my newfriend shit)
- 07 Jul. 2012 04:58am #13
AutoIt is terrible.
- 07 Jul. 2012 04:59am #14
- 07 Jul. 2012 05:02am #15
- 07 Jul. 2012 05:10am #16
- 07 Jul. 2012 05:16am #17
While I agree with this, I generally use it for basic Windows scripting. I much prefer using it over VB. And it does in fact have advantages over other scripting languages. Note: scripting. The scope of his question is in this category.
And PrincessFluttershy, for my sanity and yours I hope by "real programming language" you aren't referring to Visual Basic.
Sinza_: I'm going to try to keep my answer as brief and not too overly technical as possible, so I'm going to paraphrase. This is my answer in regard to a similar question I've answered a while back:
Glad to know that you're learning AutoIt. It's one of my favorite Windows scripting languages due to the fact that programs are written relatively quick in it and its structure and linguistics are pretty easy to catch on to. It's also standalone so requires no dependencies and generally runs completely independently. Furthermore it also has very comprehensive documentation and a vast amount of resources available- moreover an extensive standard library accompanied by an archive of UDFs (User-Defined Functions).
However, AutoIt has subtle differences and little significant advantages in contrast to something like .NET. (However it does have some benefits.)
1. There is no standard wrapper for HTTP/HTTPS, similarly to a lot of other languages. But they can be made in several different ways. Initializing COM objects in AutoIt is fairly easy, as such writing a wrapper for WinHTTP shouldn't be too difficult. Actually, if you're really interested in AutoIt perhaps I could possibly make one and give you a few pointers. (Possibly occasional help.)
2. AutoIt by default is not multi-threaded. Though there are means of "emulating" it via the usage of third-party libraries. Timers are available. But keep in mind that mostly everything in AutoIt is dynamic so it won't be anything like VB/C# whereas you simply drag-and-drop a control or component on a form.
3. AutoIt comes with a standard form distribution known as Koda. When you create a project in AutoIt and edit it, it should be located somewhere in the Tools menu options. However it could take some time for you to get accustomed to the language before you're able to use it efficiently.
-Applescript is a programming language restricted to the Mac/OS X platform. AutoIt by default is Windows. Although AutoIt could be emulated across different platforms using compatibility layers like Darwine, which is a Mac port of the popular software Wine.
-AutoIt was originally designed for the automation of repetitive tasks. Meaning it's ideal for a wide range of tasks that have to do with the management of tedious tasks. Of course it isn't limited to that particular purpose.
As such, AutoIt is a good language to learn for the scripting of the Microsoft Windows operating system. That's pretty much what I mainly use it for. Otherwise, I use programming languages more apt for the task at hand. (This includes but isn't limited to: Delphi/Object Pascal, Lua, AHK, and Python.)Last edited by The Unintelligible; 07 Jul. 2012 at 05:18am.
- 07 Jul. 2012 05:19am #18
What I get out of that is it's basically a Windows version of AppleScript, and it's about as useful. So thanks for the response and time you took writing that. Also, as far as programming goes, I'm fairly technical, so you don't have to dumb it down for me.
- 07 Jul. 2012 05:23am #19
AppleScript and AutoIt are not interchangeable languages. Quite different actually. Used for similar purposes (since they're both scripting languages), but definitely something that shouldn't be often compared in the same context.
As for keeping the nitty gritty minimal: That wasn't really the point. I tend to get carried away when it comes to things like this. If I made it any more technical than that, it would probably obscure the main point. It wasn't exactly "dumbed down." It was as said: summarized.
Actually try reading the entire post.
- 07 Jul. 2012 05:26am #20
I realize they are not interchangeable, but mostly that they only serve the same functionality. Also, I see what you mean by getting too technical, I do that sometimes too. Although for me, it's mostly because the people I converse with on a daily basis are incredibly stupid. (no I don't mean you, Flareboy323)