| View previous topic :: View next topic |
| Author |
Message |
fincs
Joined: 05 May 2007 Posts: 1163 Location: Seville, Spain
|
|
| Back to top |
|
 |
gongchao6330
Joined: 25 Mar 2009 Posts: 24
|
Posted: Thu Dec 17, 2009 1:41 pm Post subject: |
|
|
| 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 |
|
 |
peterm
Joined: 25 Jul 2006 Posts: 51
|
Posted: Thu Dec 17, 2009 2:27 pm Post subject: |
|
|
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 |
|
 |
fincs-nli Guest
|
Posted: Thu Dec 17, 2009 2:37 pm Post subject: |
|
|
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
|
Posted: Fri Dec 18, 2009 3:19 am Post subject: |
|
|
| what is "XDebugClient for AutoHotkeyU" used for ? |
|
| Back to top |
|
 |
fincs
Joined: 05 May 2007 Posts: 1163 Location: Seville, Spain
|
|
| Back to top |
|
 |
fincs
Joined: 05 May 2007 Posts: 1163 Location: Seville, Spain
|
Posted: Fri Dec 18, 2009 9:30 pm Post subject: |
|
|
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 |
|
 |
jackieku
Joined: 30 Nov 2008 Posts: 73
|
Posted: Sat Dec 19, 2009 5:34 am Post subject: |
|
|
| 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 |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 7299 Location: Australia
|
Posted: Sat Dec 19, 2009 5:53 am Post subject: |
|
|
| 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 |
|
 |
fincs
Joined: 05 May 2007 Posts: 1163 Location: Seville, Spain
|
Posted: Sat Dec 19, 2009 10:08 am Post subject: |
|
|
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 |
|
 |
jackieku
Joined: 30 Nov 2008 Posts: 73
|
Posted: Sat Dec 19, 2009 11:26 am Post subject: |
|
|
| 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.  |
|
| Back to top |
|
 |
jackieku
Joined: 30 Nov 2008 Posts: 73
|
Posted: Sun Dec 20, 2009 3:32 pm Post subject: |
|
|
| I uploaded a new copy of AutoHotkeyU. (based on L41) |
|
| Back to top |
|
 |
peterm
Joined: 25 Jul 2006 Posts: 51
|
Posted: Sun Dec 20, 2009 6:16 pm Post subject: |
|
|
| 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 |
|
 |
rousni
Joined: 23 Mar 2006 Posts: 126
|
Posted: Sun Dec 20, 2009 8:03 pm Post subject: |
|
|
| Quote: | Download:
AutoHotkeyU (AutoHotkeySC.bin included) |
AutoHotkeySC.bin is not included  |
|
| Back to top |
|
 |
jackieku
Joined: 30 Nov 2008 Posts: 73
|
Posted: Mon Dec 21, 2009 12:43 am Post subject: |
|
|
| rousni wrote: | AutoHotkeySC.bin is not included  |
Sorry, I forgot to modify the batch file. Please download it again. |
|
| Back to top |
|
 |
|