AutoIt + Citrix Simulation API - error 63

240

You need to set

$citrix_object.Launch = true;

If you use C++ it is trickier, then you have to do:

VARIANT_BOOL variantBoolTrue = -1;
pica->put_Launch(variantBoolTrue);
Share:
240

Related videos on Youtube

DarthVader
Author by

DarthVader

Updated on December 01, 2022

Comments

  • DarthVader
    DarthVader over 1 year

    I am currently trying to integrate the Citrix Simulation API into an AutoIt script.

    I am able to open a working connection and I can also successful do a logoff. But while the session is open, I am not able to use important functions. For example I need to set the session to fullscreen using the FullScreenWindow() function. The errorcode I get delivered is 63 - ICO_ERROR_NO_WINDOW (no window found)

    This is the code I am using to build the connection (shortened)

    Local $citrix_object = ObjCreate("Citrix.ICAClient")
    $citrix_object.Address = "hostname"
    $citrix_object.Username = "user"
    $citrix_object.SetProp("Password", "pass")
    $citrix_object.Domain = "domain"
    
    $citrix_object.Connect()
    

    By executing this code I will logon to the citrix desktop and can use It. But I cant use functions like FullScreenWindow()

    I read that a registry key needs to be set, so I have done that. But the problem still persists. Key:

    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Citrix\ICA Client\CCM] "AllowSimulationAPI"=dword:00000001
    

    What am I missing? Thanks in advance

    • Pablo A
      Pablo A over 5 years
      Sometimes my Ubuntu doesn't detect HDMI presence. Shutting down (not just a reboot) always fixed the issue. Try this or this. Add the output of sudo lshw -C display and xrandr -q.
    • Vlastimil Burián
      Vlastimil Burián about 4 years
      My Mint 19.3 does not detect HDMI only if I log off and log in again.
  • Kusalananda
    Kusalananda almost 3 years
    You seem to have taken screenshots from an external blog and posted them as your own here (and here). You have also posted this exact answer on two separate question. Here, you could have posted the first paragraph as a question in a comment, because the rest depends on the user's answer to that inquiry.
  • Kusalananda
    Kusalananda almost 3 years
    Do you know what license those screenshots are under and how you now have relicensed them? Do not post contents here that you don't have permission to share.
  • Joshua Salazar
    Joshua Salazar almost 3 years
    CC BY-SA sharealike
  • Kusalananda
    Kusalananda almost 3 years
    That's what it is now, yes.