A>>    Scan     VK
A>>    2A(42)  10(16)   LeftShift
A>>    36(54)  10(16)   RightShift
A>>    1D(29)  11(17)   LeftCtrl
A>> E0 1D(29)  11(17)   RightCtrl
A>>    38(56)  12(18)   LeftAlt
A>> E0 38(56)  12(18)   RightAlt

S> You may differentiate those without using scancodes. At least,
S> I can do it with the KeyTrap in WXP here, using vkcodes:

S> A0/A1(160/161), A2/A3(162/163), A4/A5(164/165)
S> for Left/Right Shift, Ctrl, Alt.

None of those VKs quoted by Sean work here (also running WinXP).

It seems there are two alternative ways for a keyboard to be
set up regarding the Shift, Ctrl and Alt keys
(I think it depends on the keyboard language setting)

Our systems all return the same Scan Codes for those keys
(for example your RightCtrl has the same SC as my RightCtrl)

but they differ at the next stage when the SC is looked up
in a table to choose a VK to send.
In my case both Left and Right return the same VK as in my list
above (which is the older VK from the days when Left and Right
Ctrl were identical); in Sean's case they return unique VKs
(both are the newer vk codes after they decided to separate
Left and Right).

According to MS:
http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/wceshellui5/html/wce50conVirtualKeyCodes.asp
[one long url, split by Yahoo]
vk 11(17) means any Ctrl key (not specific about Left or Right)
vk A2(162) means Left Ctrl
vk A3(163) means Right Ctrl
In pproconf, vks 162 and 163 don't work for me and do work for Sean.

The story gets more complicated every day.

I can set the scan code for Right Ctrl E0 1D(29) as a hotkey
in AutoHotkey and it works. If I set that SC in pproconf, it
doesn't work (RightCtrl keeps its normal function).

In pproconf setting vk 11(17) [without setting an SC] is the only
thing which works for Ctrl, but unfortunately that affects both Ctrl keys.

One difference is that AHK allows me to specify only the SC.
If I try that in pproconf, the OK button is gray until I also
enter a VK number. I tried both vk A3(163) and vk 11(17)
in turn, with the RightCtrl scan code, but neither worked.

My guess is that PowerPro's keyboard hook is different from
AHK's keyboard hook, which interrupts the process earlier.
That probably is the reason why setting a PP hotkey for the Media
key does not disable the usual reaction (my media player is shown
as well as the PP hotkey command happening).
But with an AHK hotkey for Media, that double effect does not
happen - only the hotkey's command happens.

AHK is open source by the way. I don't whether it would be
easy to see how their keyboard hook is implemented...



Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to