Author |
Topic |
|
rainlane
China
22 Posts |
Posted - 03/22/2017 : 9:20:15 PM
|
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
|
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
|
|
|
rainlane
China
22 Posts |
Posted - 03/23/2017 : 11:38:23 PM
|
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 |
|
|
yuki_wu
896 Posts |
Posted - 03/24/2017 : 03:39:40 AM
|
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
|
|
|
aplotnikov
Germany
162 Posts |
Posted - 03/24/2017 : 05:02:00 AM
|
Hi Yuki,
is it possible to cancel closing procedure using LT commands in [BeforeCloseDoc] and to continue the session?
Best regards,
Alexei |
|
|
cpyang
USA
1406 Posts |
Posted - 03/26/2017 : 10:58:53 AM
|
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
|
|
|
aplotnikov
Germany
162 Posts |
Posted - 03/27/2017 : 1:14:25 PM
|
Hi cpyang,
thanks for the information. One more reason to try SR1.
Regads,
Alexei |
|
|
cpyang
USA
1406 Posts |
|
|
Topic |
|
|
|