I've never done any of this so I was lost but thankfully Jackie and Maestrith had experience in it. The other night I mentioned it to Maestrith and he generously offered to work through a couple of examples and explain the process to me.
Please keep in mind, this wasn't a planned tutorial. He did it on the fly and we just worked through things. For me it was very illuminating!
Encoding binary data to a string Tutorial
Code: Select all
Bits:="100011010010010101011001010"
Bits:="Hq"
/*
0123456789+/ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
0=0
1=1
2=10
3=11
4=100
5=101
6=110
7=111
*/
Gui,Add,Edit,gGo w500 Number
Gui,Add,UpDown,Range1-5000 +0x80,1
Gui,Add,Text,w500
Gui,Show
return
GuiEscape:
ExitApp
return
Go(){
ControlGetText,i,Edit1,A
ControlSetText,Static1,% ((i>>8&1)(i>>7&1)(i>>6&1)(i>>5&1)(i>>4&1)(i>>3&1)(i>>2&1)(i>>1&1)(i&1)),A
}