The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 execute script from menu bar
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

pbolo

1 Posts

Posted - 12/27/2010 :  5:25:30 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Windows 7 - Origin 7.5 SR7

Hi,
I would like to execute a LabTalk script form the menu bar. Following the example in the manual, I have the following MyConf.cnf file (just as a test):

menu -wg; // available for worksheet or graph
menu 3; // activate View menu
// define menu command text and script
menu (TEST)
{
type 'It works';
};

and I have modified the origin.ini, adding MyConf to the list.
However, after closing and re-opening origin, I don't see the new prog appearing in the menu bar.
Could you please help me ? Many thaks
Paola

Penn

China
644 Posts

Posted - 12/28/2010 :  01:48:06 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Paola,

You can refer to this example and have a try again. When you follows the example, please change the script in step 1 to yours (see below), and ignore step 5.

[DefFuncs]
menu -wg; // available for worksheet or graph
menu 3; // activate View menu
// define menu command text and script
menu (TEST)
{
type 'It works';
};

Also, please note that if your script is in a cnf file, you cannot ignore the extension (cnf here) in step 3, such as:

run.section(MyLTFuncs.cnf, DefFuncs);

Penn

Edited by - Penn on 12/28/2010 02:55:24 AM
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000