Where is stack "revNewScriptEditor"?

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

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

Where is stack "revNewScriptEditor"?

Post by dunbarx » Thu May 02, 2024 3:05 pm

A current thread about finding a lost cursor made me offer the suggestion to:

Code: Select all

if the optionKey is down then set the screenMouseLoc to  the loc of  this stack
Works fine. But the OP mentioned that the issue was when he was editing scripts, so I thought I could be more helpful, and tested:

Code: Select all

if the optionKey is down then set the screenMouseLoc to  the loc of  stack "revNewScriptEditor"
I use two monitors, one exclusively for the SE, and one for everything else. But the above forced the cursor to the middle of my "regular" monitor, to a loc I cannot make sense of. I noticed that I should have written:

Code: Select all

  if the optionKey is down then set the screenMouseLoc to  the loc of  stack "revNewScriptEditor 1"
which does what I originally intended.

This stack "revNewScriptEditor" indeed exists, is hidden and seems to live in the background. If I make it visible it seems to be a tool of some sort. Anyone know what it is for?

Craig

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

Re: Where is stack "revNewScriptEditor"?

Post by richmond62 » Thu May 02, 2024 3:09 pm

This stack
Which stack?

stack "revNewScriptEditor" or

stack "revNewScriptEditor 1"

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

Re: Where is stack "revNewScriptEditor"?

Post by dunbarx » Thu May 02, 2024 3:18 pm

Richmond.
Which stack?
Whichever stack.

It turns out that in a new session, only the stack "revNewScriptEditor" is loaded, and it seems to be some sort of template builder for new instances of an SE as they are called. I just never knew that. But the "1" appended to the working, "real" SE should have tipped me off that this was not just a new version of the SE, but rather the first instance of what might be many such.

Craig

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

Re: Where is stack "revNewScriptEditor"?

Post by richmond62 » Thu May 02, 2024 3:34 pm

Anyone know what it is for?
I would suppose it is a template, and a clone of it is made for each script editor an end-user 'calls' to fill with code.

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4015
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Where is stack "revNewScriptEditor"?

Post by bn » Thu May 02, 2024 4:38 pm

Craig,

If an actual editor is created within "revNewScriptEditor" these functions are helpful.

The topMostEditor:

Code: Select all

put revTopMostScriptEditor()
All currently open Editors

Code: Select all

put revListScriptEditors()
Kind regards
Bernd

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

Re: Where is stack "revNewScriptEditor"?

Post by dunbarx » Thu May 02, 2024 5:05 pm

Bernd.

Do you have a secret list of undocumented native LC words? My favorite is "the messageMessages", but I know there are lots more. :wink:

Craig

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4015
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Where is stack "revNewScriptEditor"?

Post by bn » Thu May 02, 2024 6:22 pm

dunbarx wrote:
Thu May 02, 2024 5:05 pm
Do you have a secret list of undocumented native LC words? My favorite is "the messageMessages", but I know there are lots more. :wink:
Craig,

No but I made a stack that searches the .livecodescript files of the current installation of LC which comprises most of the the code for the IDE.
(the few non-scriptified stacks are not searched)

findTextInIDE_3 3.livecode.zip
(6.55 KiB) Downloaded 7 times

or to find handlers (same search as above but restricted to handlers:

findHandlersInIDE_3.livecode.zip
(5.82 KiB) Downloaded 8 times

Have a nice weekend... :)


Kind regards
Bernd

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

Re: Where is stack "revNewScriptEditor"?

Post by dunbarx » Thu May 02, 2024 6:52 pm

Bernd,

Fun stuff. Thank you.

That home stack is a doozy.

Glad to hear someone thinks the weekend starts today.

Craig

Post Reply

Return to “Talking LiveCode”