CitrixSetProperty Function

Action

Sets a property of a Citrix client. See Citrix client documentation for possible property/value pairs.

Include file

CitrixAPI.bdh

Syntax

CitrixSetProperty( in sProp  : string,
                   in sValue : string ) : boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
sProp Property name.
sValue Property value

Example:

  transaction TMain
  var
  begin
    CitrixInit(640, 480);
    CitrixSetApplication("Excel");
    CitrixSetProperty("Border", "20");
    CitrixConnect("myserver", "myusername", "mypass", "mydomain", COLOR_16bit);
    CitrixWaitForLogon();
    hWnd4 := CitrixWaitForWindowCreation("Microsoft Excel - Book*", MATCH_Wildcard, 0x15CF0000, -4, -4, 648, 488);
    CitrixKeyString("test");
    CitrixMouseClick(636, 14, hWnd4, MOUSE_ButtonLeft);
    ThinkTime(2.63);
    CitrixMouseClick(306, 289, hWnd4, MOUSE_ButtonLeft);
    CitrixWaitForWindow(hWnd4, EVENT_Destroy);
    ThinkTime(2.63);
    CitrixDisconnect();
  end TMain;