StackOnly: How to start as standalone without card
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 130
- Joined: Fri Apr 13, 2018 1:53 pm
StackOnly: How to start as standalone without card
Dear all,
I have developed a StackOnly script to run some DB selects etc. in the background from the OS as "Service".
But... If I create a standalone application only from this stack it is not working, seems that the "on openstack" Handler is not starting. But why? I can see the process in the Windows Process List. My idea is to create a application without Card that only the process is running in background if I start the application. I have this problem only if I create the standalone application, in livecode the handler is starting etc.
Stef
I have developed a StackOnly script to run some DB selects etc. in the background from the OS as "Service".
But... If I create a standalone application only from this stack it is not working, seems that the "on openstack" Handler is not starting. But why? I can see the process in the Windows Process List. My idea is to create a application without Card that only the process is running in background if I start the application. I have this problem only if I create the standalone application, in livecode the handler is starting etc.
Stef
-
- VIP Livecode Opensource Backer
- Posts: 9840
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: StackOnly: How to start as standalone without card
What is a stack without a card?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Posts: 130
- Joined: Fri Apr 13, 2018 1:53 pm
Re: StackOnly: How to start as standalone without card
Its a script. But how can I start the script? in the openstack handler I have timer to run some actions every x minutes.
Or can I hide a complete card that it is not shown in the taskbar?
Or can I hide a complete card that it is not shown in the taskbar?
-
- VIP Livecode Opensource Backer
- Posts: 9840
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: StackOnly: How to start as standalone without card
If you're referring to a script-only stack, it may greatly simplify things to appreciate that there is only one difference between that and a normal stack: the storage format.
Once loaded, a stack is a stack. And every stack has at least one card.
Given that the only difference between a script-only stack and a normal stack is the storage format, and that openStack is indeed expected to be triggered when a stack opens, I don't have a quick answer. But I would like to find one. Do you have a simple example you can share where we can examine what's happening?But how can I start the script? in the openstack handler I have timer to run some actions every x minutes.
By default LC apps have a GUI, and GUI apps normally appear in the task bar. However, you can run an application made in LiveCode facelessly if you launch it from the command line with a -ui flag, e.g.:Or can I hide a complete card that it is not shown in the taskbar?
Code: Select all
./myapp -ui
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- VIP Livecode Opensource Backer
- Posts: 3581
- Joined: Mon Jan 22, 2007 7:36 am
- Location: Berkeley, CA, US
- Contact:
Re: StackOnly: How to start as standalone without card
If you load a .livecodescript file as an argument from the command line the openStack handler does indeed get called.
Code: Select all
~/<pathTo>LiveCode<version> xyzzy.livecodescript
PowerDebug http://powerdebug.ahsoftware.net
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
-
- VIP Livecode Opensource Backer
- Posts: 7237
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: StackOnly: How to start as standalone without card
Alternately, save the script as a normal stack and make the stack invisible. Or position the stack offscreen with its bottomRight at - 100,-100.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- Posts: 130
- Joined: Fri Apr 13, 2018 1:53 pm
Re: StackOnly: How to start as standalone without card
Thanks all. The -ui Option is enough for us.
Regs
Stef
Regs
Stef