Post Reply 
Check if an app is active, use AVar()
07-18-2015, 01:06 PM (This post was last modified: 07-18-2015 04:04 PM by salvomic.)
Post: #1
Check if an app is active, use AVar()
hi,
in Effemeridi (my program for Astronomy) I would get some controls about Astro Lab 4 (the app for Astronomy by Marcel) and use some of its variables (with the kind permission of Marcel).

Is it possible to get some of these things?

1. check if Astro Lab 4 is installed and it's the active app
2. call some functions by it (something like Astro_Lab_4.ListNow ...)
3. use its Avars *also* if it's not active app

The purpose is to share Avars with the app without duplicate them, also if Astro Lab is not the active app.

Thank you for advice and hints.

Salvo

for example:
Code:

IF // Astro Lab 4 is installed;
THEN
l:= Astro_Lab_4.PlanetCoordinates({"VEN", lista});
ELSE
  l:= atan2(y,x);
END;

or

Code:

// check for Astro Lab 4 and Avar("earb0")
bvar:= AVar("earb0");
// ...

∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Check if an app is active, use AVar() - salvomic - 07-18-2015 01:06 PM



User(s) browsing this thread: 1 Guest(s)