I've mashed up some old scripts that seemed to work well with some other stuff I am trying to pull from various old forums etc and it just won't do what I want, the leading spaces are staying. Typically this is many lines of JSON - up to 100 or more at times.
Code: Select all
!+t::
SplashTextOn ,,,Working,
ClipWait, 1
Sleep, -1
if !ErrorLevel
{
original := Clipboard
stripped := StrReplace(original, """")
stripped2 := StrReplace(stripped, ",")
AutoTrim, On
stripped3 = %stripped2%
Clipboard := stripped3
}
SplashTextOff
Return