Highlighted
Super Contributor.. Super Contributor..
Super Contributor..
853 views

How to end a citrix session using keyboard shortcuts

Hi,

I want to end a citrix session through keyboard shortcut. On client side when i use ctrl -F4 its working fine, but on server side , i am unable to end my session.

Could someone help me out here

Best Regards,

KHB

 

 

0 Likes
2 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

Hi,

Why do you want to end the citrix session with keyboard shorcuts ?

As you know the session is ended with ctrx_logoff api.

In order to send ctrl+f4 you can use ctrx_key("F4_KEY", MODIF_CONTROL, "", CTRX_LAST);

However you must check first by running Citrix Receiver if you can use ctrl+f4 shortcut.

You also need to check ica file if the hotkey is disabled, for more information look at https://support.citrix.com/article/CTX140219

Best regards,

Marcel

 

0 Likes
Highlighted
Super Contributor.. Super Contributor..
Super Contributor..

Hi,

i tried using ctrx_key("F4_KEY", MODIF_CONTROL, "", CTRX_LAST);

only first run was successful and later on sessions are not getting closed on server.

ctrx_logoff(CTRX_FORCED_LOGOFF, CTRX_LAST);

is this one correct?

Best Regards,

KHB

 

 

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.