Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Screen pop vbs file

Status
Not open for further replies.

as1981

IS-IT--Management
Joined
Sep 28, 2006
Messages
394
Location
GB
All,

PM Pro 4.2.23

I'm trying to execute a .vbs file using screen pop. I've tried the following in the 'external' path setting:

c:\call.vbs
c:\windows\system32\cscript.exe c:\call.vbs
c:\windows\system32\cscript.exe "c:\call.vbs"
c:\windows\system32\cscript.exe 'c:\call.vbs'

I've also tried the same with wscript.exe instead of cscript as I would like to use this eventually so nothing shows on the screen.

None of them run the file.

If I just do c:\windows\system32\cscript.exe then I can see the command line window show for a second so the screen pop is definetly activating.

I can call a .bat file from PM Pro and get this to run the vbs files but that means that a command box flashes on the screen when the call is answered which is distracting for the operator. One reason for using a vbs file is that it doesn't appear on the screen and therefore doesn't disturb the operator.

Thanks

Andrew
 
That is long ago but if you double click the .vbs file in explorer does it automatically start the scripting host?
if so then only put the .vbs file in PMPro and see what happens. I dont think PMPro pass the parameters to the scripting host so only te scripting host is started.

___________________________
My achievements until now:
One wife
Four sons
Four cats
One bird ( loved by the cats )
Two rabbits
No mistress :(
No boat
No second home
no life...?
 
Thanks for your help.

Yes if I run it from explorer it runs the script.

Your right that it's not passing the parameters, I hadn't realised what is happening.

Thanks

 
The problem may be that Phone Manager itself is attempting to pass parameters to the application you specify for the screen pop. So either its ignoring the parameter you specify and replacing with its own or its adding its own to yours VBS throws a wobbly.

Look inside the samples in the IP Office 4.2 Phone Manager Installation. You'll see that Phone Manager tries to pass across data about calling number, called number, tag and account code.
 
You could try to add -debug in the PMP shortcut just behind

"C:\Program Files\Avaya\IP Office\Phone Manager\PhoneManager.exe" -debug

It will add a Debug button once PM is opened, you might see what is happening.

Avaya_Red.gif

___________________________________________
It works! Now if only I could remember what I did...

Dain Bramaged
___________________________________________
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top