Starting Another program

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
chriswood
Posts: 23
Joined: Mon Feb 23, 2009 2:27 am

Starting Another program

Post by chriswood » Fri Mar 06, 2009 5:16 am

I am trying to start a windows MS Access mde file on the press of a button, which I can do but it always launches as a restored window, ideally it should be maximized.

I have tried Launch, Launch document, open process (this opens MS Access maximized but not the mde file).

Any suggestions?

Best Regards

Chris

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Post by SparkOut » Fri Mar 06, 2009 9:12 am

Does it work if you do something like starting by getting the Windows shell to issue the command line "start" instruction with the /MAX switch?

Code: Select all

put "<<your path/your file.mde>>" into tApp
set the hideConsoleWindows to true
get shell ("start /MAX" && quote & quote && quote & tApp & quote)
--the "extra" quotes are because the first quoted parameter passed to "start"
--are used as the console window title - so there's an empty "title" parameter here

chriswood
Posts: 23
Joined: Mon Feb 23, 2009 2:27 am

Post by chriswood » Sat Mar 07, 2009 2:08 pm

That worked a treat, many thanks

Chris

Post Reply