This vbscript connects to the SwyxIt! and exports information on the current caller into a text file. If a call gets transferred and new information becomes available the text file will also be updated.
The script can be taken as an example for client event handling within a VBScript.
You might also want to take a look into Stefan's forum posting explaining event handling: