How to start Corona Simulator in iPad mode?

I would like to start the Corona Simulator in iPad mode by default. Up until now, I always have to start the simulator and select from the menu Window > View As. I looked in Preference in hopes there was some kind of “default device” or something like that. Any ideas?

I read in other posts that the Corona Project Manager may help, but I would like to set a default directly in the simulator if possible. I don’t use CPM. [import]uid: 79443 topic_id: 14717 reply_id: 314717[/import]

I am not sure about CPM but no, there’s no default option at this stage.

You can suggest it under “feature requests”, however :slight_smile: [import]uid: 52491 topic_id: 14717 reply_id: 54526[/import]

i thought ( not at computer right now ) that when you start the simulator theres an option at the bottom of the load screen to set default when loading [import]uid: 7911 topic_id: 14717 reply_id: 54548[/import]

I am trying to download Corona Simulator trial to my MacBook Pro and getting message “You cannot use this version of the application Corona Simulator with this version of the Mac OSX” Can anyone advise me please, is there a way of downloading to MacBook Pro or can’t the Pro handle the software [import]uid: 90475 topic_id: 14717 reply_id: 55560[/import]

Sorry, I don’t think this is supported yet. As a workaround, you can do what CPM is doing by using the URL scheme to launch Corona projects. See:
http://developer.anscamobile.com/forum/2011/02/09/new-command-line-parameter-not-really-working

You might create a simple html file with a hyperlink containing the URL scheme described above to the projects you want to load. Then keep the webpage loaded in the background and just click the link anytime you want to launch/relaunch the project.

[import]uid: 7563 topic_id: 14717 reply_id: 55563[/import]

(I need to caveat that the URL scheme is Mac-only.) [import]uid: 7563 topic_id: 14717 reply_id: 55566[/import]

Ah, just what I needed thanks! I happen to be a Mac user and old-school who prefers the command line. Reading the link you sent I realized that the simulator executable provides -project and -skin options to do exactly what I was after.

This may be useful for other people. In my project I have a Makefile that in its simplest for looks like this:
.PHONY: all run

SIMULATOR = /Applications/CoronaSDK/Corona\ Simulator.app/Contents/MacOS/Corona\ Simulator

all: run

run: DEVICE?=iPad
run:
@echo “Running in $(DEVICE) Simulator”
@$(SIMULATOR) -project $(PWD) -skin $(DEVICE)
(Just remember to insert and actual tab before the @ symbols, the forum is stripping spaces out)
Now, when you want to run it, just type:

make run

If you wanted a different device, you can then run:

make run DEVICE=iPhone

And, there you go. As a bonus, I just realized that this is what the “Corona Terminal” script is doing, so I can get debugging output right in the shell where I ran make. Just like what I’m used to when running other types of apps (c++, python, etc.)

Thanks! [import]uid: 79443 topic_id: 14717 reply_id: 55618[/import]

There is another thread where I introduced the URL scheme and warned people not to rely on the command line options. They broke before and may break again. The URL scheme is a little better. It supports talking to Corona when it is already open. You can use the ‘open’ command with the URL if you want to use it on the command line.

[import]uid: 7563 topic_id: 14717 reply_id: 55623[/import]

I would love to use the URL form, but it doesn’t work in my system:

[bash]open “corona://open?url=file:///Applications/CoronaSDK/SampleCode/GettingStarted/HelloWorld&skin=iPad”[/bash]

Simply opens the simulator but only shows the “Welcome to Corona” dialog.

But the command-line version does open my app in the simulator:

[bash]/Applications/CoronaSDK/Corona\ Simulator.app/Contents/MacOS/Corona\ Simulator -project /Applications/CoronaSDK/SampleCode/GettingStarted/HelloWorld -skin iPad[/bash]

Is my version of Corona outdated perhaps? In any event, I would use URL once it works in my system. Thanks for the advice though, it was very helpful.
[import]uid: 79443 topic_id: 14717 reply_id: 55629[/import]

Strange. That should work. (No spaces between “open?” and “url”). Are you in Trial mode? That trial box may interfere with the operation on first launch. (Shouldn’t interfere when the app is already launched though.) [import]uid: 7563 topic_id: 14717 reply_id: 55638[/import]

Yeap, that’s it. I’m using the Trial version. But, having it open beforehand does work. Cheers. [import]uid: 79443 topic_id: 14717 reply_id: 55829[/import]