Sign in to follow this  
Followers 0
Ch1ldProd1gy

Can you make autoit read a .txt file from a website?

8 posts in this topic

is it possible to make your autoit script read a .txt file from a website? I tried, but I was unsuccessful lol, just checking up on it

Share this post


Link to post
Share on other sites



Download it with InetGet(), then read it.

:shocked:

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

THis may help: http://www.autoitscript.com/autoit3/docs/f...ns/FileRead.htm

But you will want to use an IE function, use the serch for that...

EDIT: MHz That would be wiser yes, i was gona say use both functions together... but that woud be harder

Edited by XxXGoD

Share this post


Link to post
Share on other sites

nice, ty, but, when I downloaded "http://www.tacticsx.com/robots.txt" it squished the info inside,

Share this post


Link to post
Share on other sites

What:

# Robot.txt generated by SiteStudio

#

User-agent: *

Disallow:

???

Share this post


Link to post
Share on other sites

What:

# Robot.txt generated by SiteStudio

#

User-agent: *

Disallow:

???

just a tester, it keeps bots off the site lol

when I open it, it has boxes, would autoit be able to know the boxes are {ENTER}'s?

Share this post


Link to post
Share on other sites

just a tester, it keeps bots off the site lol

when I open it, it has boxes, would autoit be able to know the boxes are {ENTER}'s?

The file may only have line endings of LF's or CR's that may explain the boxes, but Windows uses CRLF's so try a stringReplace() on the contents of the read file into a variable.

$variable = StringReplace($variable, @LF, @CRLF)

:shocked:

Share this post


Link to post
Share on other sites

The file may only have line endings of LF's or CR's that may explain the boxes, but Windows uses CRLF's so try a stringReplace() on the contents of the read file into a variable.

$variable = StringReplace($variable, @LF, @CRLF)

:shocked:

Thanks guys :( this part works muchly appreciated, ty for fast replies,

Share this post


Link to post
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
Sign in to follow this  
Followers 0