I am trying to save a series of variables as raw text, and then trim them.
They are numbers like "+108", "+222", "+821". AHK reads them as "!08", "@22", "*21", and this also causes an error when I try to consolidate and trim them. How can I correct this?
My code below:
Code: Select all
^Numpad1::
Send, {CTRLDOWN}c{CTRLUP}{DOWN}
Sleep, 100
template1 := rTrim(Clipboard," `t`r`n")
Clipboard := ""
Send, {CTRLDOWN}c{CTRLUP}{DOWN}
sleep, 100
template2 := rTrim(Clipboard," `t`r`n")
Clipboard := ""
Send, {CTRLDOWN}c{CTRLUP}{DOWN}
sleep, 100
template3 := rTrim(Clipboard," `t`r`n")
Clipboard := ""
Return
^Numpad2::
templates := rTrim(%template1% %template2% %template3%," `t`r`n")
MsgBox, %templates%
Return