I am in need of a script that takes a line from a .txt file, pastes the line into a text field in a website AND presses CTRL+ENTER, and then does the same thing with the next line within the .txt file (the script can take the subsequent line in the .txt file or delete the line that was copied previously, the .txt file does not matter). It would be nice to have a 2s sleep between the CTRL+ENTER'ing and also if the script would ignore the lines starting with "[" or "♪".
Code: Select all
$^c::
Clip := []
clipboard =
sleep 200
SendInput, {ctrl down}c{ctrl up}
clipwait, 1
Text := Clipboard
loop, parse, text, `n, `r
{
if (A_LoopField = "") or RegExMatch(A_LoopField, "^@")
continue
thisline++
Clip[thisline] := A_LoopField
}
thisline := ""
return
^s::
line++
if !Clip[line]
line := 1
clipboard := Clip[line]
send ^v
sleep 200
return