Jump to content

Damn easy question how i can add increament in specific line


Recommended Posts

Damn easy question how i can add increament in specific line but i am unable to find answer

i am using loop for creating url in this way

http://www.autoitscript.com/1

http://www.autoitscript.com/2

http://www.autoitscript.com/3

http://www.autoitscript.com/4

http://www.autoitscript.com/5

http://www.autoitscript.com/6

http://www.autoitscript.com/7

http://www.autoitscript.com/8

http://www.autoitscript.com/9

http://www.autoitscript.com/10

http://www.autoitscript.com/11

http://www.autoitscript.com/12

and text file

1.txt

2.txt

3.txt

4.txt

5.txt

6.txt

7.txt

8.txt

9.txt

10.txt

11.txt

12.txt

 

#include <IE.au3>
#include <FileConstants.au3>

Local $i = 0
Do
Local $oIE = _IECreate("http://www.autoitscript.com/"&$i, 0, 0, 1) //////////////////////////////////////////////////// 1
Local $sHTML = _IEDocReadHTML($oIE)
$file = FileOpen(".txt", 1) ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2
FileWrite($file, $sHTML)
FileClose($file)
_IEQuit($oIE)

Until $i = 12 ; Increase the value of $i until it equals the value of 10.

 

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