Jump to content

varying URL code


asym
 Share

Recommended Posts

So What I want to do is...

Having a txt file with a bunch of lines like

asjfhaoi

fsafasf

gdsgsd

and having a variable URL like www.mydomain.com/?(THE TXT FILE LINES HERE)

And I wanted the program to write in my address bar (I know how to code this one ;)) each URL and type enter

Example

Write www.mydomain.com/?asjfhaoi in addres bar and enter

Write www.mydomain.com/?fsafasf

and so on... Until the txt file was over...

I hope you can help me

Link to comment
Share on other sites

See if this gets you anywhere..

$file = FileOpen("test.txt", 0)
While 1
    $line = FileReadLine($file)
    If @error = -1 Then ExitLoop
    ConsoleWrite("www.mydomain.com/?" & $line & @LF)
Wend
FileClose($file)

test.txt

asjfhaoi
fsafasf
gdsgsd

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Link to comment
Share on other sites

Global $URL = "http:///www.mydomain.com/?"
Global $FilePath = @ScriptDir & "\links.txt"

$hOpen = FileOpen($FilePath, 0)
$hRead = FileRead($hOpen)

$aSplit = StringSplit($hRead, Chr(10))

For $i = 1 To $aSplit[0]
    $Line = FileReadLine($hOpen, $i)
    
    ConsoleWrite($URL & $Line & @CRLF)
Next

FileClose($hOpen)

links.txt

sadgfdgs
dsfsdfdfher
fedfsdf
wefsedf

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

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