Difference between revisions of "WorkMan Client Script"

From WorkManSoft Wiki
Jump to navigationJump to search
(Created page with "== About == Products supported: * WorkMan Agent 3 Scripttypes supported as of 6th of july 2012: * Pascal Script == Usage == === ScriptDataDM === This object holds propert...")
 
 
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
Scripttypes supported as of 6th of july 2012:
 
Scripttypes supported as of 6th of july 2012:
  
* Pascal Script
+
* Pascal Script (for introduction to Pascal download the book on this page http://www.marcocantu.com/epascal/)
  
 
== Usage ==
 
== Usage ==
Line 21: Line 21:
 
* TEST - Test by application
 
* TEST - Test by application
 
* INCOMINGRING
 
* INCOMINGRING
* INCOMINGCONNECTED
+
* INCOMINGANSWERED
 
* INCOMINGIDLE
 
* INCOMINGIDLE
 
* OUTGOINGRING
 
* OUTGOINGRING
Line 27: Line 27:
 
* OUTGOINGBUSY
 
* OUTGOINGBUSY
 
* OUTGOINGIDLE
 
* OUTGOINGIDLE
 +
* APPSTART - On startup of application (future release)
 +
* APPCLOSE - On close of application (future release)
 +
 +
== Constants ==
 +
 +
=== Windowstate ===
 +
 +
  SW_HIDE = 0;
 +
  SW_SHOWNORMAL = 1;
 +
  SW_NORMAL = 1;
 +
  SW_SHOWMINIMIZED = 2;
 +
  SW_SHOWMAXIMIZED = 3;
 +
  SW_MAXIMIZE = 3;
 +
  SW_SHOWNOACTIVATE = 4;
 +
  SW_SHOW = 5;
 +
  SW_MINIMIZE = 6;
 +
  SW_SHOWMINNOACTIVE = 7;
 +
  SW_SHOWNA = 8;
 +
  SW_RESTORE = 9;
 +
  SW_SHOWDEFAULT = 10;
 +
  SW_MAX = 10;

Latest revision as of 13:02, 13 October 2012

About

Products supported:

  • WorkMan Agent 3

Scripttypes supported as of 6th of july 2012:

Usage

ScriptDataDM

This object holds properties that can be used by the clientscript.

ScriptDataDM.ScriptEvent

This shows what event triggered the script. It can be one of these:

  • TEST - Test by application
  • INCOMINGRING
  • INCOMINGANSWERED
  • INCOMINGIDLE
  • OUTGOINGRING
  • OUTGOINGANSWERED
  • OUTGOINGBUSY
  • OUTGOINGIDLE
  • APPSTART - On startup of application (future release)
  • APPCLOSE - On close of application (future release)

Constants

Windowstate

 SW_HIDE = 0;
 SW_SHOWNORMAL = 1;
 SW_NORMAL = 1;
 SW_SHOWMINIMIZED = 2;
 SW_SHOWMAXIMIZED = 3;
 SW_MAXIMIZE = 3;
 SW_SHOWNOACTIVATE = 4;
 SW_SHOW = 5;
 SW_MINIMIZE = 6;
 SW_SHOWMINNOACTIVE = 7;
 SW_SHOWNA = 8;
 SW_RESTORE = 9;
 SW_SHOWDEFAULT = 10;
 SW_MAX = 10;