|
Answer» I'm making a program that would encrypt a paragraph. Im using the variable expansion thingy (%variable:~1%) to find each letter and echo it as a different letter. But I do not want a limit to the amount of LETTERS that you can type in and don't want to write a overly LARGE code. Does anybody know how to include another variable in a variable expansion thing? %var1:~%var2%% did not work.maybe you can find something here>http://www.robvanderwoude.com/index.htmlUse the following as a template. The key is to CALL the SET
Code: [Select] SET start=10 SET length=9 SET string=The quick BROWN fox jumps over the lazy dog CALL SET substring=%%string:~%start%,%length%%% ECHO (%substring%)
Hope this helps. Thanks. The call trick works perfectly! I finished my rough draft of my encoder. Basic code right now. See if you can BREAK it!
011100111111111111111001111111111111100 111111100111111111111111111001001111111 111111111111100111111111111111111111001 111111111110010011111111111111111111001 111111110011111111111111100111111111111 110011111111111111111110001111111111111 110011111111111111000110011111111111111 111100111110010011111111111001111111110 011111111111111001111111000111111111111 100111111111111111111111111100011100111 111111111111001111001111100011111111100 111111000111111111111111111111111100111 111111111111001111111111111111111110001 111111111111111111111100100111111111111 110011111111111111111111000111111111111 111111110011111111111111100011111100111 111111001111111111111100111100011111111 111111100111111111111111111111001111111 111111111111100011111111001111111111111 110011111111111111111111111000111111111 000111100111111111001111000111111111001 111111111111111111100011111001111111111 111001001111111110011111111111100011111 1111111100111110
Ive also made a decoder. If you want to find out how I made it email me, or if you want a copy. I'll also check the forum.*censored*! I left my magic decoder RING in my other suit. But in the neverending quest for knowledge, why don't you post your solution so everyone see your handiwork.
|