AutoHotkey Community

It is currently May 27th, 2012, 6:38 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: May 2nd, 2011, 2:48 am 
Offline

Joined: October 18th, 2006, 3:58 am
Posts: 14
I updated to AHK_L yesterday, and have reworked my main script as UTF-8 (I use BabelPad for editing). The install is fresh, following a manual wiping of all AHK-related registry keys, folders and files, and the system has been rebooted several times since.

One very strange side-effect of the change, at least on my system (XP), is that hotkey combos that include CTRL no longer work in some but not in all applications. Affected applications include BabelPad, OpenOffice and Firefox 4. Unaffected applications include NoteTab Pro, Atlantis (word processor), Archivarius, even Netscape 4.8!

This has been tested with the simplest of scripts, containing nothing more than this:

Code:
^+b::•


Which should give you a bullet when you type CTRL+SHIFT+B. In BabelPad, OpenOffice and Firefox 4 however, it either does nothing, or does whatever CTRL+SHIFT+B has been defined to do by the program itself (i.e. set the input language to Tibetan in BabelPad, or trigger subscript in OpenOffice)...

It looks like the affected programs are overriding AHK. Any ideas?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 2nd, 2011, 3:22 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
That's a bug. AutoHotkey_L sends any characters which have no corresponding keystrokes using SendInput() instead of the old Alt+Numpad method, which was slower and didn't properly support Unicode. Normally when you send a keystroke, the modifier key-states are adjusted automatically (by sending key-up/down events) to put them in the desired state. However, it looks like this isn't being done for special characters, so the Ctrl and Shift keys are left in the "pressed" state when • is sent. Some applications ignore the modifier keys and just output the character as intended.

There are two possible workarounds:
Code:
^+b::Send {Ctrl Up}•{Ctrl Down}
Code:
$^+b::
    KeyWait Ctrl
    Send •
return

Shift is left in the pressed state since it doesn't appear to cause any problems (in Firefox 4).


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 2nd, 2011, 11:26 am 
Offline

Joined: October 18th, 2006, 3:58 am
Posts: 14
Thanks for the confirmation, Lexikos, and especially the workarounds.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 17th, 2011, 2:01 pm 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
Thanks for the bug report. v1.1.00.01 should solve the problem.


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

All times are UTC [ DST ]


Who is online

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