Genesys CTI User Forum
		Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: JSB on June 09, 2008, 08:06:22 PM
		
			
			- 
				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")
- 
				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"
- 
				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...