AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

UNICODE version of AutoHotkey
Goto page Previous  1, 2, 3 ... 12, 13, 14, 15, 16  Next
 
This topic is locked: you cannot edit posts or make replies.    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
fincs



Joined: 05 May 2007
Posts: 1163
Location: Seville, Spain

PostPosted: Sun Dec 13, 2009 3:09 pm    Post subject: Reply with quote

Here's my current version with debugger-related changes (see my previous posts):
http://www.autohotkey.net/~fincs/AutoHotkeyU091213.7z
_________________
fincs
Get SciTE4AutoHotkey v3.0.00 (Release Candidate)
[My project list]
Back to top
View user's profile Send private message
gongchao6330



Joined: 25 Mar 2009
Posts: 24

PostPosted: Thu Dec 17, 2009 1:41 pm    Post subject: Reply with quote

Will it someday support Unicode character in hotstring functions? Just like the Autocorrect function in microsoft word. If anybody can do it, it will be fantastic!
Back to top
View user's profile Send private message
peterm



Joined: 25 Jul 2006
Posts: 51

PostPosted: Thu Dec 17, 2009 2:27 pm    Post subject: Reply with quote

Fincs
You obviously understand some of this Unicde stuff.

I have been researching how Unicode works as I have recently been trying to copy and paste folder links from my company's Czech Rep website. Lots of strange characters in the folder and filenames all get simplyfied and then don't work as a link. Very frustrating.

I have read and tried Transform but if ones does a string replace e.g spaces to %20 then it all reverts to std non-Unicode.

So my question is does your wonderful version of AutoHotKeyU solve this.

Peterm
Back to top
View user's profile Send private message
fincs-nli
Guest





PostPosted: Thu Dec 17, 2009 2:37 pm    Post subject: Reply with quote

First of all jackieku is the author of AutoHotkeyU. I'm just helping here.
Second, yes: AHKU can handle Unicode characters directly. As a side-note: you should save your scripts as UTF-8 in order for AHKU to recognize correctly non-ASCII characters.
Back to top
uorme
Guest





PostPosted: Fri Dec 18, 2009 3:19 am    Post subject: Reply with quote

what is "XDebugClient for AutoHotkeyU" used for ?
Back to top
fincs



Joined: 05 May 2007
Posts: 1163
Location: Seville, Spain

PostPosted: Fri Dec 18, 2009 8:25 pm    Post subject: Reply with quote

It's a special version of XDebugClient (a debugger UI) that supports AutoHotkeyU.
_________________
fincs
Get SciTE4AutoHotkey v3.0.00 (Release Candidate)
[My project list]
Back to top
View user's profile Send private message
fincs



Joined: 05 May 2007
Posts: 1163
Location: Seville, Spain

PostPosted: Fri Dec 18, 2009 9:30 pm    Post subject: Reply with quote

Sorry for the double post but some problems appeared when you merged with me:
  • Invalid UTF-8 characters don't yield '�' (U+FFFD) as I intended.
  • #MenuMaskKey support was removed in the process (just look at the diffs).
  • What happened to the debugging stuff that I added for easy tracking of bugs in AutoHotkeyU?

_________________
fincs
Get SciTE4AutoHotkey v3.0.00 (Release Candidate)
[My project list]
Back to top
View user's profile Send private message
jackieku



Joined: 30 Nov 2008
Posts: 73

PostPosted: Sat Dec 19, 2009 5:34 am    Post subject: Reply with quote

fincs wrote:
Sorry for the double post but some problems appeared when you merged with me:
  • Invalid UTF-8 characters don't yield '�' (U+FFFD) as I intended.
  • #MenuMaskKey support was removed in the process (just look at the diffs).
  • What happened to the debugging stuff that I added for easy tracking of bugs in AutoHotkeyU?

I intended to merge the invalid Unicode character in, but I forgot that isn't a ASCII character. It should use numeric representation (0xFFFD) instead.

About MenuMaskKey, do you mean something like this?
Code:
-         KeyEvent(KEYDOWNANDUP, g_MenuMaskKey);
+         KeyEvent(KEYDOWNANDUP, VK_CONTROL);

That was the change bring from your codes (AutoHotkeyU091213.7z) ... I have no idea why doing this, though. ???

Finally, the debug stuff log the message to files, but I'd like a real-time solution. (ATLTRACE write the messages to the "Output" panel of VS2008) Also, I found a change about the VERIFY macro. VERIFY is not the same with ASSERT, the expression is intended to be evaluated in release build and checking the successfulness in debug build. Perhaps you could use HAVE_ATL macro to preserve both solutions?
Back to top
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 7299
Location: Australia

PostPosted: Sat Dec 19, 2009 5:53 am    Post subject: Reply with quote

jackieku wrote:
(ATLTRACE write the messages to the "Output" panel of VS2008)
I suppose it uses OutputDebugString, which is also used by AHK's OutputDebug. Does ATLTRACE require ATL? If so, better use OutputDebugString directly as VC++ Express Edition doesn't include ATL or MFC.
Back to top
View user's profile Send private message Visit poster's website
fincs



Joined: 05 May 2007
Posts: 1163
Location: Seville, Spain

PostPosted: Sat Dec 19, 2009 10:08 am    Post subject: Reply with quote

The MenuMaskKey was indeed a mistake in my version.

About the debugging log, there's a macro (DBGMSG(1)) which enables MessageBoxes.

Also: (script_object.cpp, line 791)
Code:
tmemcpy(marker, str, len + 1); // +1 for null-terminator.

_________________
fincs
Get SciTE4AutoHotkey v3.0.00 (Release Candidate)
[My project list]
Back to top
View user's profile Send private message
jackieku



Joined: 30 Nov 2008
Posts: 73

PostPosted: Sat Dec 19, 2009 11:26 am    Post subject: Reply with quote

fincs wrote:
The MenuMaskKey was indeed a mistake in my version.

About the debugging log, there's a macro (DBGMSG(1)) which enables MessageBoxes.

Also: (script_object.cpp, line 791)
Code:
tmemcpy(marker, str, len + 1); // +1 for null-terminator.

Well, I'll change TRACE() to use OutputDebugString(), so VC++ Express users can use it. (Thanks for Lexikos). I personally don't like to use message boxes, that was a hell when I use alert() to debug the codes written in JavaScript. Because it is blocked and need the user click "OK" to continue.

I found the bug in script_object.cpp, too. My script did not work after I merged L40. Smile
Back to top
View user's profile Send private message
jackieku



Joined: 30 Nov 2008
Posts: 73

PostPosted: Sun Dec 20, 2009 3:32 pm    Post subject: Reply with quote

I uploaded a new copy of AutoHotkeyU. (based on L41)
Back to top
View user's profile Send private message
peterm



Joined: 25 Jul 2006
Posts: 51

PostPosted: Sun Dec 20, 2009 6:16 pm    Post subject: Reply with quote

peterm wrote:
Fincs
You obviously understand some of this Unicde stuff.

I have been researching how Unicode works as I have recently been trying to copy and paste folder links from my company's Czech Rep website. Lots of strange characters in the folder and filenames all get simplyfied and then don't work as a link. Very frustrating.

I have read and tried Transform but if ones does a string replace e.g spaces to %20 then it all reverts to std non-Unicode.

So my question is does your wonderful version of AutoHotKeyU solve this.

Peterm


The answer is - yes. It worked exactly as I needed. Thanks
Back to top
View user's profile Send private message
rousni



Joined: 23 Mar 2006
Posts: 126

PostPosted: Sun Dec 20, 2009 8:03 pm    Post subject: Reply with quote

Quote:
Download:
AutoHotkeyU (AutoHotkeySC.bin included)


AutoHotkeySC.bin is not included Question
Back to top
View user's profile Send private message
jackieku



Joined: 30 Nov 2008
Posts: 73

PostPosted: Mon Dec 21, 2009 12:43 am    Post subject: Reply with quote

rousni wrote:
AutoHotkeySC.bin is not included Question

Sorry, I forgot to modify the batch file. Please download it again.
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3 ... 12, 13, 14, 15, 16  Next
Page 13 of 16

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group