" /> CC Pulse Action - open txt file - Genesys CTI User Forum

Author Topic: CC Pulse Action - open txt file  (Read 3876 times)

JSB

  • Guest
CC Pulse Action - open txt file
« on: June 09, 2008, 08:06:22 PM »
Advertisement
Hi, I need to have an action (CCPULSE) which will open a txt file stored on my PC when treshold gets set value.

Scripts are something new for me so I try do it by trial and error. I have created below code and of course it doesnt work. Have you any idea why and what's more important - is such action (open file) possible in cc pulse at all ?

Dim fsObject, textfile
Set fsObject = CreateObject("GsSampleTEObjects.GsActionFSObject")
Set textfile = fsObject.OpenTextFile("c:\somefile.txt")

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: CC Pulse Action - open txt file
« Reply #1 on: June 09, 2008, 08:38:51 PM »
  • Best Answer
  • These scripts are Visual Basic syntaxis.
    You can try this:
    http://en.allexperts.com/q/Visual-Basic-1048/VB6-Writing-info-text.htm

    Or google for "write on text file vb6"

    Offline S

    • Full Member
    • ***
    • Posts: 135
    • Karma: 1
    Re: CC Pulse Action - open txt file
    « Reply #2 on: June 12, 2008, 03:10:23 PM »
  • Best Answer
  • Dim objFSO, objTextFile, sLogName
    sLogName="C:\TestCCPulse.txt"
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objTextFile = objFSO.OpenTextFile(sLogName,2,True)
    objTextFile.Write (" Writing now.....")

    I think this should do it...