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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 execute script from menu bar

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
pbolo Posted - 12/27/2010 : 5:25:30 PM
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
1   L A T E S T    R E P L I E S    (Newest First)
Penn Posted - 12/28/2010 : 01:48:06 AM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000