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
 Script buttons not working
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Clairekun

Germany
175 Posts

Posted - 02/12/2014 :  03:24:20 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 9
Operating System: Windows 7

Hello,

Following this tutorial, I created toolbar buttons to run several scripts, but they don't seem to do anything when I click on them. When using script window to open the scripts, everything works smoothly.

I checked and double-checked that the scripts are correctly attached to the buttons. What am I doing wrong?

Thank you.

Echo_Chu

China
Posts

Posted - 02/12/2014 :  05:02:45 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi, Claire,

Could you export your button as an OPX and sent it to us so that we can see what went wrong.

You could follow the instructions below to send your file.
http://www.originlab.com/index.aspx?go=Support&pid=752

Echo
OriginLab Corp
Go to Top of Page

Clairekun

Germany
175 Posts

Posted - 02/12/2014 :  05:15:52 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Done. You can find it under the name scriptsclaire.opx.

Thank you.

By the way, the link you provided was not the right one (it is linked to FFT support page), please modify it so that other users don't get confused :) .
Go to Top of Page

Clairekun

Germany
175 Posts

Posted - 02/17/2014 :  02:30:32 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Echo_Chu, could you find anything to explain this behavior?
Go to Top of Page

Echo_Chu

China
Posts

Posted - 02/26/2014 :  9:51:23 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi, Claire,

I apologized that I did not realize that you have uploaded the OPX to our FTP.

I checked your codes. The problem should be because you did not have section in your OGS file but specify section name when you set the buttons.

Please remove the section name for each button setting and see whether it works for you.



Echo
Go to Top of Page

Clairekun

Germany
175 Posts

Posted - 02/27/2014 :  01:52:56 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Echo,

Thank you, I mistakenly understood section as the button section, not as the script section. I tried again and everything works great :)
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