I have this script, which I use to remove line breaks from continuous text in Notepad (and when it encounters a ".", "!", etc., it does not remove the end, but continues on).
It works, but I would like to know if I can make it do it faster using Regular Expressions or another method.
Code: Select all
Loop
{
Send {End}
Send {Shift Down}{Left}{Shift Up}
sleep 45
Send ^c^c
Send {Right}
If (Clipboard = a_space)
{
sleep 345
Send {End}{Del}
Return
}
If (Clipboard = "-")
{
Send {Del}{BS}
Return
}
If (Clipboard = "¬")
{
Send {Del}{BS}
Return
}
If (Clipboard = ":")
{
Send {Down}
Return
}
If (Clipboard = ".")
{
Send {Enter}{Down}
Return
}
If (Clipboard = "?")
{
Send {Enter}{Down}
Return
}
If (Clipboard = "!")
{
Send {Enter}{Down}
Return
}
Else
{
sleep 345
Send {End}{Space}{Del}
}
If GetKeyState("Esc", "P")
Break
}
Return