I may just be missing something obvious, so please be kind. It may also not be possible.
If I need to set a variable like so
var := "randomcharacterswith%insidehereorthere%andsometimesasinglequote"too"
I hit an error. It reads to the character in the string with the " as the extent of the variable and leaves (too") at the end which causes syntax issues.
If I do it this way below, it of course messes up as it makes the % % a variable that means nothing which reduces my string incorrectly.
var = randomcharacterswith%insidehereorthere%andsometimesasinglequote"too
The string comes from an encryption script so I can't guarantee it won't have the " or % periodically in it. https://autohotkey.com/board/topic/4147-small-and-fast-text-file-encryptor/page-4#:~:text=17%20Jun%202008-,I%20get%20a%20curious,-behavior%20with%20the
Is there a way to allow a string to just read a variable as it is and ignore the % function (again, I know the escape character ` will do it, but this is a generated string that can't be changed due to encryption).
Or, is there a way that the variable will accept all of the quoted material (minus string replacing " to "" which does the trick, but again, auto generated string here.
You can see exactly what I am talking about by using the code I linked above.
Code: Select all
var1 = mydecryptingpasswordkey
Encryptedmess := "VPv405y86i&+s%Aj6j}KzLtI10MzDj:!whW'xP)i8Adu/\ t^<j]"e-Y6"
Decrypted := TEA_DecryptString( Encryptedmess, var1 )
Msgbox, % Decrypted
Thanks in advance for your brainpower (however little or large effort).