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
 Origin Forum
 Defining a macro
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Vincentrou

France
Posts

Posted - 07/26/2004 :  09:07:06 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
hello,
I have a problem to define a macro in the script window of Origin7.0.
In fact, when I type a macro, even the one of the tutorial :
1.From the Origin menu, select Window:Script Window.
2.Type the following:
def hello {
type -b "Hello World!!!";
}
3.Type the following into the Script window:
hello
Press ENTER


the answer is always : #Command Error!.

Could you tell me how I can define a macro and how I can use it?
Thank you.

Vincent

Mike Buess

USA
3037 Posts

Posted - 07/26/2004 :  10:03:48 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Vincent,

Select (hi-light) all of the macro lines and then press Enter...

<start selection>
def hello {
type -b "Hello World!!!";
}
<end selection>
Press ENTER

Mike Buess
Origin WebRing Member
Go to Top of Page

Vincentrou

France
Posts

Posted - 07/26/2004 :  10:23:09 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you very much !
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