asym 0 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 Share this post Link to post Share on other sites
exodius 1 Posted September 1, 2010 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
asym 0 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 Share this post Link to post Share on other sites
somdcomputerguy 103 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. Share this post Link to post Share on other sites
AlmarM 21 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 MinesweeperA minesweeper game created in autoit, source available._Mouse_UDFAn UDF for registering functions to mouse events, made in pure autoit.2D Hitbox EditorA 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Share this post Link to post Share on other sites
asym 0 Posted September 1, 2010 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
AlmarM 21 Posted September 2, 2010 ShellExecute ? MinesweeperA minesweeper game created in autoit, source available._Mouse_UDFAn UDF for registering functions to mouse events, made in pure autoit.2D Hitbox EditorA 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Share this post Link to post Share on other sites