However I have ran into errors with special characters and cannot figure out how to allow them to work. Id rather accept all characters into the clipboard rather than stripping them out if possible.
First I tried to replace them with RegExReplace but that has not worked and is giving me more errors. Please see the code below, I have put both the simple loop and the replace logic into it.
Code: Select all
#b::
index:=0
ClipSaved := ClipboardAll
Loop, parse, clipboard, `n, `r
{
;
;tmp :=RegExReplace(A_loopfield,[\\/:*?"<>|])
index+=1
;MsgBox,%A_Index% %tmp%,
NewClip[index] := %A_LoopField%,
}
Return