- Code: Select all
sPath = sdb.ApplicationPath & "Scripts\Case.vbs"
I'm still looking into ways to avoid the need for this workaround -so if anyone has any suggestions, please let me know.

sPath = sdb.ApplicationPath & "Scripts\Case.vbs"trixmoto wrote:Haha!I've fixed mine now to avoid confusion!
trixmoto wrote:No, I just mean I fixed the snippet of code which I posted above.


trixmoto wrote:Well if someone wants to send me a PM telling me what scripts don't work I'll try to take a look and see what I can do.


If SDB.Objects("Menu_TbStandard_Scripts") is Nothing Then
Set objTBStandard_Scripts = sdb.UI.AddMenuItemSub(sdb.UI.Menu_TbStandard, -1, -1)
Set SDB.Objects("Menu_TbStandard_Scripts") = objTBStandard_Scripts
Else
Set objTBStandard_Scripts = SDB.Objects("Menu_TbStandard_Scripts")
End If
Set objMenuItm = sdb.UI.AddMenuItem(objTBStandard_Scripts, -1, -1)
objMenuItm.Caption = "Your Caption"
objMenuItm.Hint = "This is the hint for your menu."
Script.RegisterEvent objMenuItm, "OnClick", "YourProcedure" 
Users browsing this forum: No registered users and 8 guests