I have written this code (day 2 of ahk)
my needs are that:
- it checks a file "log.txt" (top code block)
- if the file is not blank it will loop through each line
- paste each line in a website
- delete the contents at the end
Can anyone help?
Please ignore my click on screen coords I want to click a specific window but that is my next item to learn on my list
Code: Select all
test-data-6537
data-test-3676
3674-data-test
12234-test-data
Code: Select all
#persistent
blankFile := ""
setTimer, checkFile, 20
return
checkFile:
fileread modifiedFile, log.txt
if(modifiedFile != blankFile)
{
for data in %modifiedFile%
{
CoordMode, mouse, Screen
MouseClick, left, 1566, 512, 2
Send, %data%
MouseClick, left, 1586, 672
MouseClick, left, 1558, 839
}
FileCopy, blank.txt, log.txt, 1
}
return