Keyboard Input Relay sends wrong code to Translator in release 1.4.2.2627 (1 Viewer)

hirscho

Portal Pro
December 24, 2006
186
20
Home Country
Germany Germany
I use Translator as central instance to send commands to my system like
- Starting MP
- Killing MP if it hangs
- Change resolution
- Starting jobs at resume (e.g. restart input service as it freezes after resume)
- ...
and I have to stress that Translator (release 1.4.2.2627) works rock solid under vista. :)

In order to send keyboard commands to Translator you additional have to start the "Keyboard Input Relay" service. Now you can also learn keyboard commands in "Translator". With release 1.4.0.1 this works fine, whereas in release 1.4.2.2627 the "Keyboard Input Relay" service always sends the command 01000000 to Translator whatever key you press.

As a workaround I copied over the 1.4.0.1 release of "Keyboard Input Relay" to the installation of 1.4.2.2627. Would be nice, if you could fix it in one of the next versions.
 

vineyard

Portal Member
August 4, 2008
5
1
hi hirscho,

I got the same problem as you, but i cannot find the "Keyboard Input Replay" program in the 1.4.0.1 release. I can only find the keyboard input relay program in 1.4.2.2391 and 1.4.2.2627. Tried all ways to mix both version of translator and keyboard input relay but all fails and always receive command 00000000.

Well from both of your logs, seems like both translator and input relay is at 1.4.2.0? So what did you exactly do to workaround this problem? hope to get your help to make this keyboard relay working with irss.
 

hirscho

Portal Pro
December 24, 2006
186
20
Home Country
Germany Germany
hi vineyard

Regarding the logs you are right. Both show version 1.4.2.0. But I am almost sure that I installed version 1.4.0.1 and there was the keyboard input relay included. Anyway, I have zipped and attached my directory (C:\*\IR Server Suite\Keyboard Input Relay). So give it a try and just replace yours after the installation of version 1.4.2.2627.

hirscho
 

Attachments

  • Keyboard Input Relay.zip
    30.7 KB

vineyard

Portal Member
August 4, 2008
5
1
Big thanks hirscho!!

got it and the keyboard is relaying well now.. wonder what was change in 1.4.2.2627 that causes it to run wrongly..
 

hirscho

Portal Pro
December 24, 2006
186
20
Home Country
Germany Germany
I have tested the Version 1.4.2 Test Build 3086 and the bug is still in there. Luckily the workaround with version 1.4.0.1 still works.
 

chemelli

Retired Team Member
  • Premium Supporter
  • September 28, 2006
    6,159
    2,264
    50
    Milano, Italy
    Home Country
    Italy Italy
    Will try to dig into the code in the next days.

    A quick test showed:

    Code:
    2009-12-05 16:08:33.759198 - Debug:	Keyboard Input generated a remote event: 00000000

    Simone
     

    vineyard

    Portal Member
    August 4, 2008
    5
    1
    Do you remember by any chance which is the first version that brakes Keyboard Input ?

    Simone

    Hi chemelli,

    As hirscho mentioned before, it was not working since 1.4.2.xxxx. All received keycode will be recieved as 0x000000.

    After dwelling thru the release code awhile, i found the following problem in the code of KeyboardInputRelay.Program.KeyboardHookStruct as below:

    =========================
    private struct KeyboardHookStruct
    {
    //wrong!!
    //public readonly int dwExtraInfo;
    //public readonly int flags;
    //public readonly int scanCode;
    //public readonly int time;
    //public readonly int virtualKey;
    //correct!!
    public readonly int virtualKey;
    public readonly int scanCode;
    public readonly int flags;
    public readonly int time;
    public readonly int dwExtraInfo;
    =========================

    by using the "correct" order, in XP it will work. have not test this in vista thou, vista may have used another order?

    vineyard.
     

    chemelli

    Retired Team Member
  • Premium Supporter
  • September 28, 2006
    6,159
    2,264
    50
    Milano, Italy
    Home Country
    Italy Italy
    Your solution is not working here. I'm currently looking at the code to sort this out.

    Your solution works perfectly but you need to uncheck the "Keyboard input" plugin in IRSS configuration.

    :D

    Simone
     

    Users who are viewing this thread

    Top Bottom