AutoHotkey Community

It is currently May 27th, 2012, 5:35 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: March 13th, 2010, 8:37 pm 
Offline

Joined: October 6th, 2006, 11:20 pm
Posts: 33
[...]
The following table gives the hexadecimal character codes used by ASCII to represent characters inside the computer:

00 = NUL
01 = SOH
02 = STX
03 = ETX
04 = EOT
05 = ENQ
06 = ACK
07 = BEL
08 = BS
09 = HT
0A = LF
0B = VT
0C = FF
0D = CR
0E = SO
0F = SI
10 = DLE
11 = DC1
12 = DC2
13 = DC3
14 = DC4
15 = NAK
16 = SYN
17 = ETB
18 = CAN
19 = EM
1A = SUB
1B = ESC
1C = FS
1D = GS
1E = RS
1F = US
20 = space
21 = ! 22 = " 23 = # 24 = $ 25 = % 26 = & 27 = '
28 = ( 29 = ) 2A = * 2B = + 2C = , 2D = - 2E = . 2F = /
30 = 0 31 = 1 32 = 2 33 = 3 34 = 4 35 = 5 36 = 6 37 = 7
38 = 8 39 = 9 3A = : 3B = ; 3C = < 3D = = 3E = > 3F = ?
40 = @ 41 = A 42 = B 43 = C 44 = D 45 = E 46 = F 47 = G
48 = H 49 = I 4A = J 4B = K 4C = L 4D = M 4E = N 4F = O
50 = P 51 = Q 52 = R 53 = S 54 = T 55 = U 56 = V 57 = W
58 = X 59 = Y 5A = Z 5B = [ 5C = \ 5D = ] 5E = ^ 5F = _
60 = ` 61 = a 62 = b 63 = c 64 = d 65 = e 66 = f 67 = g
68 = h 69 = i 6A = j 6B = k 6C = l 6D = m 6E = n 6F = o
70 = p 71 = q 72 = r 73 = s 74 = t 75 = u 76 = v 77 = w
78 = x 79 = y 7A = z 7B = { 7C = | 7D = } 7E = ~ 7F = DEL

Codes with a hexadecimal value less than 20 16 are called "control characters". These were used in the past for teletype and pre-LAN communications protocols, and only a few have much relevance today. Of these, the (carriage) return ("CR") and the line feed ("LF"), or new line, are of particular interest.

[...]


if i write de word "CIEL3" using autohotkey with this command:
RegWrite,REG_SZ,HKEY_CURRENT_USER,Software\Prog\etc...,MetaStockSourceInfo1,CIEL3

the binary value at windows registry will be 43 00 49 00 45 00 4C 00 33 00 00 00 like this:
Image

I have dificult to write this invisible char like 1C (FS) and my question is:
how to write the same word CIEL3 but adding this invisible char like this image:
Image

thank's


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 13th, 2010, 9:37 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
Tested:

Code:
RegWrite, REG_BINARY, HKCU, Software\AutoHotkey, Test, 4300490045004C0033001C00


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 14th, 2010, 7:11 am 
Offline

Joined: October 6th, 2006, 11:20 pm
Posts: 33
SKAN wrote:
Tested:

Code:
RegWrite, REG_BINARY, HKCU, Software\AutoHotkey, Test, 4300490045004C0033001C00


Thank's for try but i continues have the problem.
This answer works fine if i have only one variable that is CIEL3.


When i post this topic i resumed my question but the true is that i have a giant list of variables to write:
[...]
CIEL3
SANB11
MRVE3
PDGR3
OGXP3
PCAR5
PETR4
RDCD3
RSID3
SBSP3
CSNA3
CRUZ3
TAMM4
TNLP3
TNLP4
TMAR5
TLPP4
TCSL3
TCSL4
TRPL4
UGPA4
USIM3
USIM5
VALE5
VIVO4
[...]

i have to write each one of this list two times separated by this hexadeximal code 1C (FS) and after put some , and space like this image:
Image

HELP!
how to do this?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 14th, 2010, 7:24 am 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
rockit0 wrote:
but i continues have the problem.
This answer works fine if i have only one variable that is CIEL3.


I did not expect you to run the code as is.. :!:

Whatever string you need to write should be
1) Converted into Unicode String
2) ( and then ) Converted into Hex String

Ample examples for both are available in the forum.
Please do a forum search.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 14th, 2010, 3:02 pm 
Offline

Joined: October 6th, 2006, 11:20 pm
Posts: 33
oh my god


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: dra, Google [Bot], HotkeyStick, migz99, rbrtryn, XstatyK and 59 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group