cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ncaron
Level 3

VBScript custom condition

Ok I have recently been thrown into taking care of our FLEXnet connect stuff and I have to get a custom condition working in VBScript.

I feel like a complete idiot/noob but whenever I try to write my custom action, no matter how simple I try to make it, I get this error message
Please Provide at least one VBScript function(s).

What am I doing wrong?
0 Kudos
(3) Replies
KellyF
Level 9

Hi ncaron,

When you're posting your VBscript to the publisher website, you need to specify the main entry point to your custom VBScript. Otherwise, the agent won't know which of your methods to call to kick off your custom condition.

Regards,
Kelly
0 Kudos
ncaron
Level 3

Ok... I have to admit I'm a VBScript noob...
How do I do that?

Let's say for example I want to create a vbscript function that just pops a msgbox saying hello... how would I do that in the FLEXNet context?
0 Kudos
KellyF
Level 9

Just simply wrap your VBScript lines in a function or sub call and specify that method name when creating your condition.

For example,
Function myPopup()
MsgBox "Hello there!", 1, "Greeting Popup"
End Function

Then your method name to add to the publisher (when you're pasting your code) would be "myPopup".

More details can be found at:
http://helpnet.macrovision.com/robo/projects/updateservice60/Creating_a_Custom_Condition_Using_VBScript.htm

Regards,
Kelly
0 Kudos