Running Stand-alone as a service or hidden

Mark Wieder mwieder at ahsoftware.net
Thu Aug 25 21:40:14 EDT 2005


Todd-

Thursday, August 25, 2005, 5:28:49 PM, you wrote:

> I thought I remember hearing that you can run a Rev app in the background or
> as a service  or "hidden".  I just don't want the users to see anything when
> it is running.

> Isn't this possible?  How does one go about it?

Since you're saying "service", I assume you mean Windows.
Here's what I do:

on preOpenStack
  local tCommandLine

  -- we're being called from a commandline in a batch file.
  -- the -s commandline option here means "silent"
  -- myApp -s
  put lower($1) into tCommandLine
  switch char 2 of theCommandLine
    case "s"
      -- if you just want to stay resident, then the next line
      -- may be all you need. Untested, though...
      hide this stack
      -- do something and exit
      -- my initialization stuff is in openStack
      openStack
      doSomething
      quit
      break
    default
  end switch
end preOpenStack

-- 
-Mark Wieder
 mwieder at ahsoftware.net




More information about the use-livecode mailing list