Auto-open Inspector, Code, Message

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Xacto
Posts: 26
Joined: Thu Dec 15, 2016 1:34 am

Auto-open Inspector, Code, Message

Post by Xacto » Sat Jan 21, 2017 7:49 pm

Is there a way to have Inspector, code and message windows open on launch?
I looked in preference and could not find anything.

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Auto-open Inspector, Code, Message

Post by jmburnod » Sat Jan 21, 2017 8:06 pm

Hi,
When you say "launch" you mean a standalone or a stack ?
If it is a stack you can use "messages watcher" of menu development.
Best regards
Jean-Marc
https://alternatic.ch

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9287
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Auto-open Inspector, Code, Message

Post by richmond62 » Sat Jan 21, 2017 8:43 pm

What do you mean by a "code" window?

This makes me think of Visual BASIC 6 (which I have just
discovered they are teaching at the Technical High School here in Plovdiv)
where all the code/script is in one place.

With LiveCode each object has its own code/script,
so you open a scriptEditor for that object.

Personally I think this is a tremendous advantage over a single script window.

When I had to do some stuff with VB6 (University of Abertay) I found it rather difficult
in the single script windows to work out which bit of code worked for which object
(but, hey, I had already been using LiveCode for 2 years before that).

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9580
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Auto-open Inspector, Code, Message

Post by dunbarx » Sat Jan 21, 2017 8:50 pm

I think the OP simply wants the usual handful of palettes and stacks open, and likely in the IDE. These can all be brought forth on opening a new session. After all, the tools palette pops up of its own free will.

But Richmond makes a point. What object would make sense in which to open the script editor? At launch, there may not even be a stack open. But even if there is, what, the stack script?

Craig.

Xacto
Posts: 26
Joined: Thu Dec 15, 2016 1:34 am

Re: Auto-open Inspector, Code, Message

Post by Xacto » Sat Jan 21, 2017 10:04 pm

Sorry, I was not clear... :D

What I was looking for was the ability to open the Project Browser, Inspector Window, Message box, script editor ect. automatically when I create or edit a stack. Instead of clicking through 5 menu item to get all the windows in place. The best way to describe this is how Adobe Photoshop has the ability to save and import "Workspaces"

I was not sure if there was some plug-in that could do this task.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9287
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Auto-open Inspector, Code, Message

Post by richmond62 » Sun Jan 22, 2017 12:33 pm

Well, here's something pretty goofy that should get you going in the right direction:
Screen Shot 2017-01-22 at 1.29.22 pm.png
Screen Shot 2017-01-22 at 1.29.22 pm.png (13.66 KiB) Viewed 4431 times
AutoStart.livecode.zip
Here's the stack
(1.18 KiB) Downloaded 145 times
Although I notice you are still banging on about the scriptEditor
and an "InspectorWindow" (possibly I'm stupid, but I don't know
what you mean by that).

Xacto
Posts: 26
Joined: Thu Dec 15, 2016 1:34 am

Re: Auto-open Inspector, Code, Message

Post by Xacto » Sun Jan 22, 2017 11:57 pm

Thank you! Yes, that may do the trick while I am editing. I can then delete this before I save as a standalone.

As for:
Although I notice you are still banging on about the scriptEditor
and an "InspectorWindow" (possibly I'm stupid, but I don't know
what you mean by that).
When you first start LiveCode, there is a bar with icons in the top left corner of the computer screen. The first icon that has a window+magnifying glass is the "Inspector" window and the next icon to the right is the "Code" button that opens the Code Editor (script). Sorry I am still trying to figure things out, so I may have called this the Script Editor instead of Code Editor. My bad.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9287
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Auto-open Inspector, Code, Message

Post by richmond62 » Mon Jan 23, 2017 7:22 am

I can then delete this before I save as a standalone.
You don't need to have that code in a stack you are working on: just download my stack
and open it before any other stacks . . .

. . . and, of course, add any other stacks you want opened initially.

Xacto
Posts: 26
Joined: Thu Dec 15, 2016 1:34 am

Re: Auto-open Inspector, Code, Message

Post by Xacto » Tue Jan 24, 2017 2:37 am

Thanks again, this is exactly what I was looking for.

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”