[jitsi-users] Problem with RegisterHotKey: 1409


#1

Hi!

We have problems at one Client PC with the global shortcuts. They just don't work anymore.

When running the client in debug mode and resetting the shortcuts to some value, the following error is displayed:

[LOOP] Problem with RegisterHotKey: 1409

As this message output is sourced in the CPP code, and I can't find the source of the invoked register method, I got no clue, why it is not working. Even stranger is, that it used to work (according to the user).

The source of the message seems to be
/jitsi/src/native/globalshortcut/net_java_sip_communicator_impl_globalshortcut_NativeKeyboardHook.cpp:862

Any help is highly appreciated!

And by the way: Some output/warning to the user would be great, in case the shortcuts don't work.

Kind regards,

Peter


#2

Ok, so the answer is always one more search query away...

RegisterHotKey is from Windows API:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms646309(v=vs.85).aspx

and 1409 means "Hot key is already registered"

Obviously I tried some hotkeys that were already registered to some other stuff, but still I don't get it, why they worked yesterday but fail today.
I will report back.

Still, I think it would be great to check report the error (including the message, not just the code) to the user when registering short cuts (possibly with FormatMessage function: https://msdn.microsoft.com/en-us/library/windows/desktop/ms679351(v=vs.85).aspx).

Kind regards,

Peter

···

On 2015-05-12 10:54, Peter Schmidt wrote:

Hi!

We have problems at one Client PC with the global shortcuts. They just
don't work anymore.

When running the client in debug mode and resetting the shortcuts to
some value, the following error is displayed:

[LOOP] Problem with RegisterHotKey: 1409

As this message output is sourced in the CPP code, and I can't find the
source of the invoked register method, I got no clue, why it is not
working. Even stranger is, that it used to work (according to the user).

The source of the message seems to be
/jitsi/src/native/globalshortcut/net_java_sip_communicator_impl_globalshortcut_NativeKeyboardHook.cpp:862

Any help is highly appreciated!

And by the way: Some output/warning to the user would be great, in case
the shortcuts don't work.

Kind regards,

Peter

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users


#3

Another strange thing: On another computer, it happens that every shortcut will report an error 1409 to the console, but some of them would work anyway (testing with show/hide contact list).

E.g. Shift+F12 fails, but Ctrl+F12 or Ctrl+Shift+F12 work.

Occasionally the whole GUI freezes when setting shortcuts.

All of this is rather annoying as it makes it hard to track down errors from the installed application.

···

On 2015-05-12 11:05, Peter Schmidt wrote:

Ok, so the answer is always one more search query away...

RegisterHotKey is from Windows API:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms646309(v=vs.85).aspx

and 1409 means "Hot key is already registered"

Obviously I tried some hotkeys that were already registered to some
other stuff, but still I don't get it, why they worked yesterday but
fail today.
I will report back.

Still, I think it would be great to check report the error (including
the message, not just the code) to the user when registering short cuts
(possibly with FormatMessage function:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms679351(v=vs.85).aspx).

Kind regards,

Peter

On 2015-05-12 10:54, Peter Schmidt wrote:

Hi!

We have problems at one Client PC with the global shortcuts. They just
don't work anymore.

When running the client in debug mode and resetting the shortcuts to
some value, the following error is displayed:

[LOOP] Problem with RegisterHotKey: 1409

As this message output is sourced in the CPP code, and I can't find the
source of the invoked register method, I got no clue, why it is not
working. Even stranger is, that it used to work (according to the user).

The source of the message seems to be
/jitsi/src/native/globalshortcut/net_java_sip_communicator_impl_globalshortcut_NativeKeyboardHook.cpp:862

Any help is highly appreciated!

And by the way: Some output/warning to the user would be great, in case
the shortcuts don't work.

Kind regards,

Peter

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users


#4

It turned out, that hotkeys failed to work.
They are registered in the system, as Windows denied assigning the same hotkey to some application (*.lnk -> Properties, ...)
But Jitsi did not react on it...

Deleting the AppData (either local and roaming) did not have any effect.

I finally uninstalled the x64 version and re-installed 32-bit version of Jitsi, now it works.

I can't say, if it was a bug with Jitsi or Windows, but the 32-bit Version now works.... for now.
(by the way, that version also complains about error 1409 when assigning shotcuts, but they are working...)

Kind regards,

Peter

···

On 2015-05-12 12:14, Peter Schmidt wrote:

Another strange thing: On another computer, it happens that every
shortcut will report an error 1409 to the console, but some of them
would work anyway (testing with show/hide contact list).

E.g. Shift+F12 fails, but Ctrl+F12 or Ctrl+Shift+F12 work.

Occasionally the whole GUI freezes when setting shortcuts.

All of this is rather annoying as it makes it hard to track down errors
from the installed application.

On 2015-05-12 11:05, Peter Schmidt wrote:

Ok, so the answer is always one more search query away...

RegisterHotKey is from Windows API:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms646309(v=vs.85).aspx

and 1409 means "Hot key is already registered"

Obviously I tried some hotkeys that were already registered to some
other stuff, but still I don't get it, why they worked yesterday but
fail today.
I will report back.

Still, I think it would be great to check report the error (including
the message, not just the code) to the user when registering short cuts
(possibly with FormatMessage function:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms679351(v=vs.85).aspx).

Kind regards,

Peter

On 2015-05-12 10:54, Peter Schmidt wrote:

Hi!

We have problems at one Client PC with the global shortcuts. They just
don't work anymore.

When running the client in debug mode and resetting the shortcuts to
some value, the following error is displayed:

[LOOP] Problem with RegisterHotKey: 1409

As this message output is sourced in the CPP code, and I can't find the
source of the invoked register method, I got no clue, why it is not
working. Even stranger is, that it used to work (according to the user).

The source of the message seems to be
/jitsi/src/native/globalshortcut/net_java_sip_communicator_impl_globalshortcut_NativeKeyboardHook.cpp:862

Any help is highly appreciated!

And by the way: Some output/warning to the user would be great, in case
the shortcuts don't work.

Kind regards,

Peter

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users