Author Topic: AutoIt help  (Read 1984 times)

0 Members and 1 Guest are viewing this topic.

Offline Live Wire

  • Knight
  • **
  • Posts: 189
  • Cookies: 4
  • Up on your Net
    • View Profile
AutoIt help
« on: February 01, 2012, 11:09:56 pm »
So I've been working with Autoit for about an hour now, and its really easy to use. Fr those who don't know, its like the bastard child of C and java. But is there any way to just write to a file? The things I find online are either for writing to a .log file, or overwriting a file. I just need a command that adds a new line of text to a .txt file. Any thoughts? ( besides telling me to google it?)
"There is no right or wrong, there is only fun and boring."

Offline xzid

  • Knight
  • **
  • Posts: 329
  • Cookies: 41
    • View Profile
Re: AutoIt help
« Reply #1 on: February 02, 2012, 01:35:18 am »
I have never used this lang, but from quick google can find:

FileOpen
FileWrite
FileClose

I figure that would probably work. FileOpen would be mode=1(append).

I also don't see any resemblence to c or java.

Offline Live Wire

  • Knight
  • **
  • Posts: 189
  • Cookies: 4
  • Up on your Net
    • View Profile
Re: AutoIt help
« Reply #2 on: February 02, 2012, 08:10:55 am »
What I meant was that it is more like an object oriented C. And I was looking more for something that would just put the text into the file, like the echo something > something.txt in bash, for quick word list generation or something like that.
"There is no right or wrong, there is only fun and boring."

Offline xzid

  • Knight
  • **
  • Posts: 329
  • Cookies: 41
    • View Profile
Re: AutoIt help
« Reply #3 on: February 02, 2012, 08:54:09 am »
looks more like VB to me.

can't one line everything bro, and even if you could doesn't mean it's the best way to do it. take a lesson from C or java, do it yourself. open/write/close is in most languages, just use it.

Offline Live Wire

  • Knight
  • **
  • Posts: 189
  • Cookies: 4
  • Up on your Net
    • View Profile
Re: AutoIt help
« Reply #4 on: February 02, 2012, 09:24:41 am »
Think I'm just going to write what I want in bash. But these commands have given me a new idea. Trojan for edit host files maybe. Send it to the dumb bitch on the friends list, and redirect her fb to pornhub. Lol
"There is no right or wrong, there is only fun and boring."

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: AutoIt help
« Reply #5 on: February 02, 2012, 11:44:29 am »
hosts file doesn't always work? at least for me it just doesn't. Just sniff the local traffic and change packet data on the fly :D

Offline Live Wire

  • Knight
  • **
  • Posts: 189
  • Cookies: 4
  • Up on your Net
    • View Profile
Re: AutoIt help
« Reply #6 on: February 02, 2012, 12:34:40 pm »
hosts file doesn't always work? at least for me it just doesn't. Just sniff the local traffic and change packet data on the fly :D

I could, but it's more fun to send exe, have it return a fake error, then redirect all Facebook to porn. And I've never had a problem with hosts file. We're talking about people who don't deserve more than 5 lines of code to fuck with ;)
"There is no right or wrong, there is only fun and boring."