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

rainlane

China
22 Posts

Posted - 03/22/2017 :  9:20:15 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): Origin 9
Operating System:Windows XP
How to get the Origin off operation?
When Origin is off, some OriginC programs are executed automatically. How to achieve?

forum

yuki_wu

896 Posts

Posted - 03/22/2017 :  11:00:01 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I am sorry that I cannot understand your question fully.

Do you mean you want to access your Origin C functions independently of Origin’s environment? Before access any function, you need to reload and link them. Since Origin C program must be developed in Origin’s Integrated Development Environment (Code Builder), you will need to compile and link by using Code Builder. Thus, you cannot access any Origin C functions without an Origin session.

If I misunderstand your question, please post more details.

Regards,
Yuki
OriginLab
Go to Top of Page

rainlane

China
22 Posts

Posted - 03/23/2017 :  11:38:23 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
When the user closes Origin, gives the message "Are you sure to turn off?"
How to achieve?

quote:
Originally posted by yuki_wu

Hi,

I am sorry that I cannot understand your question fully.

Do you mean you want to access your Origin C functions independently of Origin’s environment? Before access any function, you need to reload and link them. Since Origin C program must be developed in Origin’s Integrated Development Environment (Code Builder), you will need to compile and link by using Code Builder. Thus, you cannot access any Origin C functions without an Origin session.

If I misunderstand your question, please post more details.

Regards,
Yuki
OriginLab




forum
Go to Top of Page

yuki_wu

896 Posts

Posted - 03/24/2017 :  03:39:40 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Not sure if this is what you want:

There is a file name ProjectEvents.ogs attached to the Origin Project by default. You can execute a set of commands upon opening , closing or saveing your Origin project.

For example:
1. Open Code Builder in Origin
2. In the Workspace panel, expand the Project tree node and find ProjectEvents.ogs
3. Double click to open the file
4. Type “type –c “Close Origin;” in the section [BeforeCloseDoc]
5. Save the file


So you will see a pop-up dialog when you close this Origin project.

Some pages may help:
http://www.originlab.com/doc/LabTalk/guide/ProjectEvents-Script
http://www.originlab.com/doc/LabTalk/ref/Type-cmd

Regards,
Yuki
OriginLab
Go to Top of Page

aplotnikov

Germany
162 Posts

Posted - 03/24/2017 :  05:02:00 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Yuki,

is it possible to cancel closing procedure using LT commands in [BeforeCloseDoc] and to continue the session?

Best regards,

Alexei
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 03/26/2017 :  10:58:53 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
This is currently not supported, but since we are going to release 2017 SR1 very soon, we can add new system variable and you can control from your LT script.

@EC = 0, normal, as it is now
@EC = 1, do not close current project
@EC = 2, bit, can combine with 1, do not exit current instance

ORG-16188

CP
Go to Top of Page

aplotnikov

Germany
162 Posts

Posted - 03/27/2017 :  1:14:25 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi cpyang,

thanks for the information. One more reason to try SR1.

Regads,

Alexei
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 04/10/2017 :  6:50:02 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi aplotnikov,

SR1 has been released, so please try this new feature.


Details:
https://originlab.jira.com/wiki/pages/viewpage.action?pageId=131334161#Origin2017SR1Features/Improvements-Programming

CP
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