Code: Select all
~::
Send ^a ;select all
Sleep, 50
Send ^x ;cut
Sleep 50
Clipboard:=StrReplace(Clipboard,"|","") ;replace line with space
Sleep, 100
;~ MsgBox % Clipboard
Send ^v ;send paste
;~ Sleep, 150
return
Code: Select all
~::
Send ^a ;select all
Sleep, 50
Send ^x ;cut
Sleep 50
Clipboard:=StrReplace(Clipboard,"|","") ;replace line with space
Sleep, 100
;~ MsgBox % Clipboard
Send ^v ;send paste
;~ Sleep, 150
return
Code: Select all
Clipboard:=StrReplace(Clipboard,"|"," ") ;replace line with space
Code: Select all
str =
(
IF THE STANDBY ENGINE INDICATOR MUST BE REMOVED FOR ANY REASON, | | |
| DO NOT TOUCH THE SEI BEFORE YOU DO THE PROCEDURE FOR DEVICES | | |
| THAT ARE SENSITIVE TO ELECTROSTATIC DISCHARGE (AMM 20-41-01). | | |
| ELECTROSTATIC DISCHARGE CAN DAMAGE THE SEI.
)
SendInput % new := RegExReplace(str, "m`a)(^[|\h]+|[|\h]+$)")
Code: Select all
~::
Clipboard =
Send ^a^x
ClipWait, 0
If ErrorLevel {
MsgBox, 48, Error, An error occurred while waiting for the clipboard. Aborting.
Return
} Else str := Clipboard, Clipboard := "", Clipboard := RegExReplace(str, "m`a)(^[|\h]+|[|\h]+$)")
ClipWait, 0
If ErrorLevel
MsgBox, 48, Error, An error occurred while waiting for the clipboard. Aborting.
Else Send ^v
Return
Code: Select all
RegExReplace(str, "\|\h*")
Code: Select all
RegExReplace(str, " ?\| ?")
Code: Select all
~::
Clipboard =
Send ^c
ClipWait, 0
If ErrorLevel
MsgBox, 48, Error, An error occurred while waiting for the clipboard. Aborting.
Else Clipboard := RegExReplace(Clipboard, "m`a)(^[|\h]+|[|\h]+$)")
Return
Code: Select all
str =
(
IF THE STANDBY ENGINE INDICATOR MUST BE REMOVED FOR ANY REASON, | | |
| DO NOT TOUCH THE SEI BEFORE YOU DO THE PROCEDURE FOR DEVICES | | |
| THAT ARE SENSITIVE TO ELECTROSTATIC DISCHARGE (AMM 20-41-01). | | |
| ELECTROSTATIC DISCHARGE CAN DAMAGE THE SEI.
)
SendInput % new := RegExReplace(str, "m`a)(^[|\h]+|(\| ?)+\n)")
Users browsing this forum: Chunjee, Google [Bot] and 116 guests