XTYPE {KEY_ENTER} is not working on CITRIX

Hi,
I am trying to open a URL in chrome browser under CITRIX environment. though I am able to identify URL area and also able to enter URL in the specified area using XTYPE command but when I am using
XTYPE ${KEY_ENTER} - it is not working.

any pointers will be much appreciated.

thanks,
Ashiskh

Xtype require focus on screen, have you setted the focus before run xtype command ?

When you use Xclick and Xtype you must not use mouse and not override screen with other windows.

It sounds like the focus is ok, since other keys are working? Is the host system a Mac, Linux or Windows?

I see two workarounds:

hi Ulrich,
host system is Windows.
but this is also not working.
Set WshShell = WScript.CreateObject(“WScript.Shell”)
WshShell.SendKeys “{ENTER}”

@ashiskh Not even Windows Visual Basic sendkeys works? That is surprising. Do all the other keys like “ABC” or “Backspace” work with VBS sendkeys?

I have the same issue with a CITRIX application running on Windows 10. I can use XType or VBS sendkeys to enter basic alphabet, but cannot send any special keys such as ENTER, CTRL, etc.
Same commands work well with Notepad so I believe it is CITRIX specific.
Any possible solution?