AutoHotkey Community

It is currently May 27th, 2012, 1:36 am

All times are UTC [ DST ]




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 237 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11, 12, 13 ... 16  Next
Author Message
 Post subject:
PostPosted: November 19th, 2009, 10:18 am 
Offline

Joined: November 30th, 2008, 1:51 pm
Posts: 73
rousni wrote:
When I have the Bulgarian keyboard layout activated and type a letter, e.g. u0430, the msgbox displays a latin letter, in this case u00E0.

Is this normal for a unicode program?

Did you mean when you type
http://www.fileformat.info/info/unicode ... /index.htm
it displays
http://www.fileformat.info/info/unicode ... /index.htm


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2009, 7:57 pm 
Offline

Joined: March 23rd, 2006, 2:20 pm
Posts: 128
Quote:


YES


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 20th, 2009, 1:11 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
I had a difficulty with Transform, FromCodePage. Basically seems to need to update the length of the content of the variable in byte with terminating single null. Possibly, VarSetCapacity(var,-2)?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 20th, 2009, 10:15 am 
Offline

Joined: March 23rd, 2006, 2:20 pm
Posts: 128
Quote:
Code:
Input, KEY, L1
MsgBox, %KEY%

When I have the Bulgarian keyboard layout activated and type a letter, e.g. u0430, the msgbox displays a latin letter, in this case u00E0.
Is this normal for a unicode program?

I tried to compare with AutoIt, which is a unicode program for a long time, and since I have the English as "system locale", this behaviour seems to be usual.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: but,the Hotstring?
PostPosted: November 20th, 2009, 10:35 am 
Offline

Joined: January 7th, 2007, 1:43 pm
Posts: 107
Thank you very much,but,how to operate the HotString by this version?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 20th, 2009, 11:03 am 
Offline

Joined: March 23rd, 2006, 2:20 pm
Posts: 128
Quote:
Thank you very much,but,how to operate the HotString by this version?

Almost the same question.
this works fine:
Code:
b::
   Send, ш
Return

but this doesn't work:
Code:
b::ш


sorry, my mistake
Code:
::b::ш

and this works fine :D


Last edited by rousni on November 20th, 2009, 2:55 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 20th, 2009, 2:02 pm 
Offline

Joined: November 30th, 2008, 1:51 pm
Posts: 73
@Sean
Could you provide an example to reproduce your problem? It's not so clear for me, sorry.

@poetbox
Tested with the example in the manual.
Code:
::btw::by the way

works fine here.

However,
Code:
::中文::Chinese

doesn't work. :(
Though the means to type these Chinese characters is very different from type English characters.

@rousni
The character code of ш (U+0448) is larger than 0xFF. Unfortunately, it's not the same with the virtual key code. However, I think this problem could be fixed.


Last edited by jackieku on November 20th, 2009, 3:09 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 20th, 2009, 2:44 pm 
Offline

Joined: March 23rd, 2006, 2:20 pm
Posts: 128
For a long time now, AutoIt is supplied as a Unicode program, but with some limitations:
Quote:
Current Limitations
There are a few parts of AutoIt that don't yet have full Unicode support. These are:

Send and ControlSend
...
These limits will be addressed in future versions if possible.
Amazingly, AutoHotkeyU already supports this:
Code:
Send, some unicode string


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 20th, 2009, 2:58 pm 
Offline

Joined: March 23rd, 2006, 2:20 pm
Posts: 128
Sorry, my mistake:
Quote:
Code:
b::ш

The following works fine :D
Code:
::b::ш

But not the opposite:
Code:
::ш::b


Last edited by rousni on November 20th, 2009, 3:56 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 20th, 2009, 3:31 pm 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
jackieku wrote:
Could you provide an example to reproduce your problem? It's not so clear for me, sorry.
Oh sorry, here is a simplified example.
Code:
VarSetCapacity(var,6)
NumPut(0x30303030,NumPut(0x434241,var))
; MsgBox % VarSetCapacity(var,-1) ; necessary to make it work!
Transform, Out, FromCodePage, 0, %var% ; Is this safe? Can it cause buffer overflow?
; Transform, Out, FromCodePage, 0, var ; This also seems to work. Is it officially supported?
MsgBox % Out


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 20th, 2009, 5:49 pm 
Offline

Joined: November 30th, 2008, 1:51 pm
Posts: 73
@Sean
I see the problems. VarSetCapacity(var, -2) seems to be a workaround.

The fourth argument of FromCodePage/ToCodePage can be an expression was a bug. However, I'd like to leave FromCodePage unchanged, because the argument can not be a literal string. ToCodePage will not able to use expressions in the next release.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 21st, 2009, 4:23 pm 
Offline

Joined: November 30th, 2008, 1:51 pm
Posts: 73
I uploaded a new version.
VarSetCapacity(var, -2) is added to update the length the variable.
Some locale related changes.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 22nd, 2009, 12:03 am 
Offline

Joined: March 23rd, 2006, 2:20 pm
Posts: 128
Quote:
1. This doesn't work (OutputVar is always ""):
ControlGet, OutputVar, Line, N, Control, WinTitle

Quote:
1. That is a bug, it will be fixed in the next release.

jackieku has kept his word... THANKS :D

I am eager now to definitely get rid of the official, ANSI version of AutoHotkey. We only need the AutoHotkeySC.bin file :?:


Report this post
Top
 Profile  
Reply with quote  
 Post subject: a bug and a workaround
PostPosted: November 22nd, 2009, 9:52 am 
Offline

Joined: March 23rd, 2006, 2:20 pm
Posts: 128
a bug and a workaround:

GuiSize:

If A_EventInfo = 2 ; THE WINDOW HAS BEEN MAXIMIZED
{
some calculations...
result in HEX ???
}

If (A_EventInfo = 2) ; THE WINDOW HAS BEEN MAXIMIZED
{
some calculations...
result in DEC !!!
}


Report this post
Top
 Profile  
Reply with quote  
PostPosted: November 22nd, 2009, 9:59 am 
Offline

Joined: November 30th, 2008, 1:51 pm
Posts: 73
@rousni
What's a stupid bug. :oops: This will be fixed in the next release.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 237 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11, 12, 13 ... 16  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 13 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