04-04-2007 02:23 PM
04-05-2007 08:20 AM
Hi Julia,
Yes, that sounds familiar. I believe that running a VBScript as a User Command is different from running it from the SCRIPT panel, and this difference renders AutoActPath unusable, sadly.
What I have done is to declare the User Command VBScript dynamically with a ScriptCmdAdd() call during DIAdem's startup cycle. Within the VBScript which declares the User Command, AutoActPath still works, and this information can be assigned to a GlobalDim variable so that the UserCommand has access to it. If you look at the ResultsList_Menus_Add example in DIAdem 10.x, this is exactly how that works.
Brad Turpin
DIAdem Product Support Engineer
National Instruments