XTYPE {KEY_ENTER} is not working on CITRIX

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.


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?