You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Amarjeet Singh <am...@gmail.com> on 2018/02/08 10:49:06 UTC

Send PrintScreen key to the Remote Desktop

Hi Team,

I am unable to use PrintScreen key.

Guacamole is not sending the PrintScreen key to the RDP Desktop.

It is not captured by keydown event but is captured during onkeyup event
and released by the Guacamole.


Please help me to resolve the aboev to enable PrintScreen feature inside
the RDP .


Thanks and Regards,
Amarjeet Singh

Re: Send PrintScreen key to the Remote Desktop

Posted by Mike Jumper <mi...@guac-dev.org>.
On Sat, Mar 3, 2018 at 5:05 AM, Amarjeet Singh <am...@gmail.com> wrote:

> Hi Mike,
>
> Would that be fine if I create a JIRA ticket for a feature request for
> sending PrintScreen Key to Remote desktop ?
>
>
Yes. The scancode mapping for the Print Screen key is missing from the base
keymap used by Guacamole's RDP support, and this should be fixed. I would
consider this a bug, though it is unlikely to result in problems for most
users as the OS will almost always intercept handling of that key (thus
users will typically be unable to use the Print Screen key regardless of
whether it is defined).

This is probably also a good time to review the base keymap and see if any
other definitions may be missing.

- Mike

Re: Send PrintScreen key to the Remote Desktop

Posted by Amarjeet Singh <am...@gmail.com>.
Hi Mike,

Would that be fine if I create a JIRA ticket for a feature request for
sending PrintScreen Key to Remote desktop ?


Thanks and Regards,
Amarjeet Singh

On Thu, Feb 15, 2018 at 4:18 PM, Amarjeet Singh <am...@gmail.com>
wrote:

> Hi Mike,
>
> I found the scancode which is 37. below is the link :-
>
> Don't know about the flags !!
>
> http://www.ee.bgu.ac.il/~microlab/MicroLab/Labs/ScanCodes.htm
>
> Any suggestions ??
>
>
>
> On Sat, Feb 10, 2018 at 12:56 PM, Amarjeet Singh <am...@gmail.com>
> wrote:
>
>> @Mike I don't have the slightest idea how that works.
>>
>> what is scancode and flags which need to be sent.
>>
>> Is there any document which might help me out .
>>
>> How can I send this key on Keyup event as Guacamole  simply release the
>> PrintScreen key. Though I tried to send using  onkeyup and  onkeydown
>> which might not be the right way ?
>>
>> Need your help Mike.
>>
>> On Sat, Feb 10, 2018 at 12:14 AM, Mike Jumper <mi...@guac-dev.org>
>> wrote:
>>
>>> On Thu, Feb 8, 2018 at 11:25 PM, Amarjeet Singh <am...@gmail.com>
>>> wrote:
>>>
>>>> ...
>>>> I tried to send both keydown and keyup as well but didn't worked.
>>>>
>>>> Any suggestions.
>>>>
>>>> Can't we send keysym as we send for normal keys  ( a - z or A-Z or 0-9
>>>> ) ?
>>>>
>>>>
>>> If the "printscreen" key is not working for RDP specifically, and it is
>>> working with other RDP clients, that suggests that the key is simply not
>>> mapped to a scancode. Checking the base keymap, I don't see a mapping for
>>> this key:
>>>
>>> https://github.com/apache/guacamole-server/blob/3187a641cf91
>>> 5f5d8d0a0e1b8b481442fcfe26c5/src/protocols/rdp/keymaps/base.keymap
>>>
>>> If that is the reason this isn't working, you should see a message in
>>> your guacd logs regarding the lack of mapping for that key, and adding
>>> support for that key would be a matter of determining what scancode, flags,
>>> etc. needs to be sent.
>>>
>>> - Mike
>>>
>>>
>>
>

Re: Send PrintScreen key to the Remote Desktop

Posted by Amarjeet Singh <am...@gmail.com>.
Hi Mike,

I found the scancode which is 37. below is the link :-

Don't know about the flags !!

http://www.ee.bgu.ac.il/~microlab/MicroLab/Labs/ScanCodes.htm

Any suggestions ??



On Sat, Feb 10, 2018 at 12:56 PM, Amarjeet Singh <am...@gmail.com>
wrote:

> @Mike I don't have the slightest idea how that works.
>
> what is scancode and flags which need to be sent.
>
> Is there any document which might help me out .
>
> How can I send this key on Keyup event as Guacamole  simply release the
> PrintScreen key. Though I tried to send using  onkeyup and  onkeydown
> which might not be the right way ?
>
> Need your help Mike.
>
> On Sat, Feb 10, 2018 at 12:14 AM, Mike Jumper <mi...@guac-dev.org>
> wrote:
>
>> On Thu, Feb 8, 2018 at 11:25 PM, Amarjeet Singh <am...@gmail.com>
>> wrote:
>>
>>> ...
>>> I tried to send both keydown and keyup as well but didn't worked.
>>>
>>> Any suggestions.
>>>
>>> Can't we send keysym as we send for normal keys  ( a - z or A-Z or 0-9 )
>>> ?
>>>
>>>
>> If the "printscreen" key is not working for RDP specifically, and it is
>> working with other RDP clients, that suggests that the key is simply not
>> mapped to a scancode. Checking the base keymap, I don't see a mapping for
>> this key:
>>
>> https://github.com/apache/guacamole-server/blob/3187a641cf91
>> 5f5d8d0a0e1b8b481442fcfe26c5/src/protocols/rdp/keymaps/base.keymap
>>
>> If that is the reason this isn't working, you should see a message in
>> your guacd logs regarding the lack of mapping for that key, and adding
>> support for that key would be a matter of determining what scancode, flags,
>> etc. needs to be sent.
>>
>> - Mike
>>
>>
>

Re: Send PrintScreen key to the Remote Desktop

Posted by Amarjeet Singh <am...@gmail.com>.
@Mike I don't have the slightest idea how that works.

what is scancode and flags which need to be sent.

Is there any document which might help me out .

How can I send this key on Keyup event as Guacamole  simply release the
PrintScreen key. Though I tried to send using  onkeyup and  onkeydown
which might not be the right way ?

Need your help Mike.

On Sat, Feb 10, 2018 at 12:14 AM, Mike Jumper <mi...@guac-dev.org>
wrote:

> On Thu, Feb 8, 2018 at 11:25 PM, Amarjeet Singh <am...@gmail.com>
> wrote:
>
>> ...
>> I tried to send both keydown and keyup as well but didn't worked.
>>
>> Any suggestions.
>>
>> Can't we send keysym as we send for normal keys  ( a - z or A-Z or 0-9 ) ?
>>
>>
> If the "printscreen" key is not working for RDP specifically, and it is
> working with other RDP clients, that suggests that the key is simply not
> mapped to a scancode. Checking the base keymap, I don't see a mapping for
> this key:
>
> https://github.com/apache/guacamole-server/blob/
> 3187a641cf915f5d8d0a0e1b8b481442fcfe26c5/src/protocols/rdp/
> keymaps/base.keymap
>
> If that is the reason this isn't working, you should see a message in your
> guacd logs regarding the lack of mapping for that key, and adding support
> for that key would be a matter of determining what scancode, flags, etc.
> needs to be sent.
>
> - Mike
>
>

Re: Send PrintScreen key to the Remote Desktop

Posted by Mike Jumper <mi...@guac-dev.org>.
On Thu, Feb 8, 2018 at 11:25 PM, Amarjeet Singh <am...@gmail.com>
wrote:

> ...
> I tried to send both keydown and keyup as well but didn't worked.
>
> Any suggestions.
>
> Can't we send keysym as we send for normal keys  ( a - z or A-Z or 0-9 ) ?
>
>
If the "printscreen" key is not working for RDP specifically, and it is
working with other RDP clients, that suggests that the key is simply not
mapped to a scancode. Checking the base keymap, I don't see a mapping for
this key:

https://github.com/apache/guacamole-server/blob/3187a641cf915f5d8d0a0e1b8b481442fcfe26c5/src/protocols/rdp/keymaps/base.keymap

If that is the reason this isn't working, you should see a message in your
guacd logs regarding the lack of mapping for that key, and adding support
for that key would be a matter of determining what scancode, flags, etc.
needs to be sent.

- Mike

Re: Send PrintScreen key to the Remote Desktop

Posted by Amarjeet Singh <am...@gmail.com>.
PrintScreen can be  captured while Keyup and the keysym is already there in
guacamole.js which I tried to send it to the server but didn't worked.


Sending the keysym of Printscreen to the RDP server is not copying the
image to the remote clipboard.

I tried to send both keydown and keyup as well but didn't worked.

Any suggestions.

Can't we send keysym as we send for normal keys  ( a - z or A-Z or 0-9 ) ?

On Thu, Feb 8, 2018 at 10:17 PM, Nick Couchman <vn...@apache.org> wrote:

> On Thu, Feb 8, 2018 at 5:49 AM, Amarjeet Singh <am...@gmail.com>
> wrote:
>
>> Hi Team,
>>
>> I am unable to use PrintScreen key.
>>
>> Guacamole is not sending the PrintScreen key to the RDP Desktop.
>>
>> It is not captured by keydown event but is captured during onkeyup event
>> and released by the Guacamole.
>>
>>
> The most likely explanation for this is that the client system is
> capturing it before it even gets to the Web Browser.  Print Screen is
> fairly universally captured by desktop operating systems, and each of them
> behave slightly differently in what they do with that key combo.  Windows
> takes an image and copies it to the clipboard.  Many Linux Window Managers
> bring up a dialog with the image and ask you what you want to do.  Can't
> remember on Mac.  The point is, if you want the Print Screen event passed
> through to the browser, you need to configure the O/S not to intercept it
> (if possible).
>
> -Nick
>

Re: Send PrintScreen key to the Remote Desktop

Posted by Nick Couchman <vn...@apache.org>.
On Thu, Feb 8, 2018 at 5:49 AM, Amarjeet Singh <am...@gmail.com> wrote:

> Hi Team,
>
> I am unable to use PrintScreen key.
>
> Guacamole is not sending the PrintScreen key to the RDP Desktop.
>
> It is not captured by keydown event but is captured during onkeyup event
> and released by the Guacamole.
>
>
The most likely explanation for this is that the client system is capturing
it before it even gets to the Web Browser.  Print Screen is fairly
universally captured by desktop operating systems, and each of them behave
slightly differently in what they do with that key combo.  Windows takes an
image and copies it to the clipboard.  Many Linux Window Managers bring up
a dialog with the image and ask you what you want to do.  Can't remember on
Mac.  The point is, if you want the Print Screen event passed through to
the browser, you need to configure the O/S not to intercept it (if
possible).

-Nick