Type command for punctuation Doesn't Work

Aug 14, 2009 at 5:10 PM

Hi, Trying out the "type" commands.

I noticed that keys that are Shifted, like ! @ # $ % ^ & * ( ) _ +, etc.. do not work.

Using "type @" sends out a 2. The unshifted key.

Any ideas on how to do a @? or if there's a quick fix possibly?

Sep 2, 2009 at 10:21 PM

*BUMP*

Coordinator
Sep 2, 2009 at 10:59 PM

I have this on my list of things to do, but it's way down on the list and I don't have much free time to test. If someone else wants to test this I think all that's needed is to add a line to check if the vk should be shifted.

In "SendStringCmd.cs" lines 68 thru 72 (in the "Execute" function) look like:

...
      foreach (char c in param.ToCharArray(0, param.Length))
      {
          key = (ushort)NativeMethods.VkKeyScan(c);

          SendKeyCmd skc = new SendKeyCmd(key, false, false, false);
...

Changing this to something like should do the trick:

 

...
      foreach (char c in param.ToCharArray(0, param.Length))
      {
          key = (ushort)NativeMethods.VkKeyScan(c);
          bool shift = ((NativeMethods.VkKeyScan(c) & 0x0100) > 0);

          SendKeyCmd skc = new SendKeyCmd(key, shift, false, false);
...

I've got a fairly major checkin coming that will result in a new release - commands to search the photo library and probably some big changes (or additions) to the audio library commands. I'll include this, but it could be a few more weeks if someone wants to do this first