How to invoke OCEAN script by SKILL?

D

Dmitriy Shurin

Guest
Hi!
I have an OCEAN script which i have to automate by adding a menu that
i've written in SKILL. The problem is that i don't know whether there is
a possibility of invoking OCEAN script by SKILL and if i load SKILL from
OCEAN by writing:
..
..
..
load "skill.il"
..
..
..
OCEAN gets only initial values that it gets from the menu and therefore
the values remain unchanged.
So i wonder whether there is any way to overcome the problem.
Any help will be appreciated.


--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
 
Hi fogh!
Thank you for your advice. Right now im not at work, but i've tried in
the form to do the following:
?callback "load("oceanscript.ocn")"
but i get an error message. Will load through a procedure work?




--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
 
I think your error message is because you have to escape the quotes with
backslashes in a string : "load(\"oceanscript.ocn\")". Otherwise, think
it should work.
stéphane

Dmitriy Shurin wrote:

Hi fogh!
Thank you for your advice. Right now im not at work, but i've tried in
the form to do the following:
?callback "load("oceanscript.ocn")"
but i get an error message. Will load through a procedure work?
 
Dmitriy,

Sorry if the previous answer was shortish. Here is a little more.

Suppose your ocean script is "/home/joe/oceanscript.ocn"
You can define a callback function
procedure( MyOceanLoadingCallback()
load("/home/joe/oceanscript.ocn")
)

and then create a menu entry using stg like:
hiCreateMenuItem( ?name 'MyOceanLoadingMenuItem ?itemText "My first sony" ?callback "MyOceanLoadingCallback()" )

Dmitriy Shurin wrote:
Hi!
I have an OCEAN script which i have to automate by adding a menu that
i've written in SKILL. The problem is that i don't know whether there is
a possibility of invoking OCEAN script by SKILL and if i load SKILL from
OCEAN by writing:
.
.
.
load "skill.il"
.
.
.
OCEAN gets only initial values that it gets from the menu and therefore
the values remain unchanged.
So i wonder whether there is any way to overcome the problem.
Any help will be appreciated.
 
Your question is rather murky to me.
Just see ocean as being a superset of SKILL.

Dmitriy Shurin wrote:
Hi!
I have an OCEAN script which i have to automate by adding a menu that
i've written in SKILL. The problem is that i don't know whether there is
a possibility of invoking OCEAN script by SKILL and if i load SKILL from
OCEAN by writing:
.
.
.
load "skill.il"
.
.
.
OCEAN gets only initial values that it gets from the menu and therefore
the values remain unchanged.
So i wonder whether there is any way to overcome the problem.
Any help will be appreciated.
 

Welcome to EDABoard.com

Sponsor

Back
Top