AutoHotkey Community

It is currently May 27th, 2012, 12:42 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 ... 10, 11, 12, 13, 14, 15, 16  Next
Author Message
 Post subject:
PostPosted: December 13th, 2009, 4:09 pm 
Offline
User avatar

Joined: May 5th, 2007, 7:24 pm
Posts: 1240
Location: Seville, Spain
Here's my current version with debugger-related changes (see my previous posts):
http://www.autohotkey.net/~fincs/AutoHotkeyU091213.7z

_________________
fincs
Highly recommended: AutoHotkey_L (see why) (all my code snippets require it)
Formal request to polyethene - I support the unity of the AutoHotkey community
Get SciTE4AutoHotkey v3.0.00 (Release Candidate)
[My project list]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 17th, 2009, 2:41 pm 
Offline

Joined: March 25th, 2009, 2:04 pm
Posts: 24
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!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 17th, 2009, 3:27 pm 
Offline

Joined: July 25th, 2006, 9:06 am
Posts: 51
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 17th, 2009, 3:37 pm 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 18th, 2009, 4:19 am 
what is "XDebugClient for AutoHotkeyU" used for ?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 18th, 2009, 9:25 pm 
Offline
User avatar

Joined: May 5th, 2007, 7:24 pm
Posts: 1240
Location: Seville, Spain
It's a special version of XDebugClient (a debugger UI) that supports AutoHotkeyU.

_________________
fincs
Highly recommended: AutoHotkey_L (see why) (all my code snippets require it)
Formal request to polyethene - I support the unity of the AutoHotkey community
Get SciTE4AutoHotkey v3.0.00 (Release Candidate)
[My project list]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 18th, 2009, 10:30 pm 
Offline
User avatar

Joined: May 5th, 2007, 7:24 pm
Posts: 1240
Location: Seville, Spain
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
Highly recommended: AutoHotkey_L (see why) (all my code snippets require it)
Formal request to polyethene - I support the unity of the AutoHotkey community
Get SciTE4AutoHotkey v3.0.00 (Release Candidate)
[My project list]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 19th, 2009, 6:34 am 
Offline

Joined: November 30th, 2008, 1:51 pm
Posts: 73
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 19th, 2009, 6:53 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7502
Location: Australia
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 19th, 2009, 11:08 am 
Offline
User avatar

Joined: May 5th, 2007, 7:24 pm
Posts: 1240
Location: Seville, Spain
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
Highly recommended: AutoHotkey_L (see why) (all my code snippets require it)
Formal request to polyethene - I support the unity of the AutoHotkey community
Get SciTE4AutoHotkey v3.0.00 (Release Candidate)
[My project list]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 19th, 2009, 12:26 pm 
Offline

Joined: November 30th, 2008, 1:51 pm
Posts: 73
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. :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 20th, 2009, 4:32 pm 
Offline

Joined: November 30th, 2008, 1:51 pm
Posts: 73
I uploaded a new copy of AutoHotkeyU. (based on L41)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 20th, 2009, 7:16 pm 
Offline

Joined: July 25th, 2006, 9:06 am
Posts: 51
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 20th, 2009, 9:03 pm 
Offline

Joined: March 23rd, 2006, 2:20 pm
Posts: 128
Quote:
Download:
AutoHotkeyU (AutoHotkeySC.bin included)


AutoHotkeySC.bin is not included :?:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 21st, 2009, 1:43 am 
Offline

Joined: November 30th, 2008, 1:51 pm
Posts: 73
rousni wrote:
AutoHotkeySC.bin is not included :?:

Sorry, I forgot to modify the batch file. Please download it again.


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 ... 10, 11, 12, 13, 14, 15, 16  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Cristi®, Google Feedfetcher, Stigg and 27 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