asym Posted September 1, 2010 Posted September 1, 2010 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
exodius Posted September 1, 2010 Posted September 1, 2010 You'll want to look into StringRegExp... I'd give an example, but I'm on my phone.
asym Posted September 1, 2010 Author Posted September 1, 2010 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
somdcomputerguy Posted September 1, 2010 Posted September 1, 2010 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.
AlmarM Posted September 1, 2010 Posted September 1, 2010 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.txtsadgfdgs 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.
asym Posted September 1, 2010 Author Posted September 1, 2010 Thanks... Your tips were great Didnt get COnsoleWrite to work tho, So I had to use SEND
AlmarM Posted September 2, 2010 Posted September 2, 2010 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now