Sign in to follow this  
Followers 0
asym

varying URL code

7 posts in this topic

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

Share this post


Link to post
Share on other sites



You'll want to look into StringRegExp... I'd give an example, but I'm on my phone. ;)

Share this post


Link to post
Share on other sites

You'll want to look into StringRegExp... I'd give an example, but I'm on my phone. ;)

If you could give an example later I would appreciate it very much

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Thanks...

Your tips were great ;)

Didnt get COnsoleWrite to work tho, So I had to use SEND

Share this post


Link to post
Share on other sites
ShellExecute ? ;)

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.

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