Author |
Topic  |
|
Piasecki
Poland
Posts |
Posted - 07/30/2004 : 12:15:27 PM
|
The main gain is in time of entering the string (and now it is less error prone).
Thanks, grazie, dziekuje! Eryk
|
 |
|
Piasecki
Poland
Posts |
Posted - 04/17/2007 : 3:06:43 PM
|
Revisiting after 3 years: the trick worked some time but one day it stopped. Since then clicking the button "Custom" makes NOTHING. The proper custom.ogs is in the Origin directory, but somehow it doesn't work. Perhaps it should be recompiled but I am not sure whether I do it properly: I double click the custom.ogs, but what then?
|
 |
|
Mike Buess
USA
3037 Posts |
Posted - 04/17/2007 : 4:26:06 PM
|
LabTalk scripts do not need to be compiled. You must have overwritten your Find... script with something else. Open Custom.ogs in Notepad and enter the correct script again.
Mike Buess Origin WebRing Member |
 |
|
Piasecki
Poland
Posts |
Posted - 04/17/2007 : 4:39:06 PM
|
I started from this, of course. It looks exactly as it should be...
|
 |
|
Piasecki
Poland
Posts |
Posted - 04/17/2007 : 4:46:28 PM
|
I also reinstalled Origin, but this changed nothing...
|
 |
|
Mike Buess
USA
3037 Posts |
Posted - 04/17/2007 : 8:57:40 PM
|
Sorry, but I can think of no reason for the Custom Routine button to fail other than a syntax error or if custom.ogs is in the wrong place. Please hold down the Ctrl and Shift keys and click the Custom Routine button. This will open custom.ogs in LabTalk editor. If you're using the last script in this topic then the lines below the slashes "//" should look like this...
[Main] getstring (Enter time search string...) "00:00:00" (Find); if(%B=="") return; %W=""; doc -e P { if(timestamp.show!=0/0) { %T=timestamp.text$; if("%[%T,#2]"=="%B") {%W=%H; break}; }; }; if(%W!="") win -a %W;
If that is your script and clicking the Custom Routine button still does not open a Find dialog then I can't explain what's happening. In that case you can try assigning the script to a custom toolbar as explained here...
http://www.originlab.com/index.aspx?s=9&pid=366
...Or run it from the script window by entering the command run.section(Custom,Main)
Mike Buess Origin WebRing Member
Edited by - Mike Buess on 04/17/2007 9:03:51 PM |
 |
|
Piasecki
Poland
Posts |
Posted - 04/18/2007 : 07:08:01 AM
|
There is one positive result: I did according your advice run it from the script window by entering the command run.section(Custom,Main) and it worked! However: this works only once, after running this command (or if I do "cancel") I have to open again the script window and write again the command, or to open the saved script. Second, the toolbar/button Custom still doesn't work, even if I believe that I did all in agreement with instructions contained in: http://www.originlab.com/index.aspx?s=9&pid=366
...
|
 |
|
Topic  |
|
|