kegiaumat055 Posted April 5, 2013 Share Posted April 5, 2013 (edited) expandcollapse popupLocal $file = FileOpen("kw.txt", 0) ; Check if file opened for reading OK If $file = -1 Then MsgBox(0, "Error", "Unable to open file.") Exit EndIf ; Read in lines of text until the EOF is reached While 1 Local $line = FileReadLine($file) If @error = -1 Then ExitLoop MouseClick("left", 353, 162, 1); di chuyen tro chuot vao url bar Send($line) ; dien url MouseClick("left", 996, 173, 1) ; nhan grab MouseClick("left", 686, 443, 1) ; nhan yes - max While 1 If WinExists("Grabber") Then WinActivate("Grabber") WinWaitActive("Grabber") Send("{ENTER}") ; xong grab ExitLoop Else Sleep(10000) EndIF WEnd Sleep(2000) MouseClick("left", 890, 665, 1) ; click "chon het" sleep(5000) MouseClick("left", 997, 665, 1) ; Click Grab detail While 1 If WinExists("ASIN Grabber") Then WinActivate("ASIN Grabber") WinWaitActive("ASIN Grabber") Send("{ENTER}") ; xong grab detail ExitLoop Else Sleep(10000) EndIf WEnd Sleep(2000) MouseClick("left", 366, 66, 1) ; Click Save ; [b][color=#ff0000]line 46[/color][/b] sleep(2000) Local $x = Random (1,100,1) Send ($x) ; dien ten file va save sleep(2000) MouseClick("left", 760, 612, 1) ; Click Save sleep(2000) MouseClick("left", 764, 440, 1) ; Click OK MouseClick("left", 656 60, 1) ; Clear sleep(2000) Send("{ENTER}") WEnd FileClose($file)When I run .exe file, it said that "error in expression" line 46.Please help me ! I don't understand why ! Thank you very much !Sorry for my bad english ! Edited April 5, 2013 by kegiaumat055 Link to comment Share on other sites More sharing options...
jchd Posted April 5, 2013 Share Posted April 5, 2013 You're not using Scite4AutoIt3, are you?Anyway, given that line 46 isMouseClick("left", 656 60, 1) ; Clearit shouldn't surprise you that the white space in 656 60 is where the error lies. This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) Link to comment Share on other sites More sharing options...
kegiaumat055 Posted April 5, 2013 Author Share Posted April 5, 2013 Thank you very much ! It worked Link to comment Share on other sites More sharing options...
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