Page 1 of 1
Where is stack "revNewScriptEditor"?
Posted: Thu May 02, 2024 3:05 pm
by dunbarx
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
Re: Where is stack "revNewScriptEditor"?
Posted: Thu May 02, 2024 3:09 pm
by richmond62
This stack
Which stack?
stack "revNewScriptEditor" or
stack "revNewScriptEditor 1"
Re: Where is stack "revNewScriptEditor"?
Posted: Thu May 02, 2024 3:18 pm
by dunbarx
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
Re: Where is stack "revNewScriptEditor"?
Posted: Thu May 02, 2024 3:34 pm
by richmond62
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.
Re: Where is stack "revNewScriptEditor"?
Posted: Thu May 02, 2024 4:38 pm
by bn
Craig,
If an actual editor is created within "revNewScriptEditor" these functions are helpful.
The topMostEditor:
All currently open Editors
Kind regards
Bernd
Re: Where is stack "revNewScriptEditor"?
Posted: Thu May 02, 2024 5:05 pm
by dunbarx
Bernd.
Do you have a
secret list of
undocumented native LC words? My favorite is "the messageMessages", but I know there are lots more.
Craig
Re: Where is stack "revNewScriptEditor"?
Posted: Thu May 02, 2024 6:22 pm
by bn
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.
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)
or to find handlers (same search as above but restricted to handlers:
Have a nice weekend...
Kind regards
Bernd
Re: Where is stack "revNewScriptEditor"?
Posted: Thu May 02, 2024 6:52 pm
by dunbarx
Bernd,
Fun stuff. Thank you.
That home stack is a doozy.
Glad to hear someone thinks the weekend starts today.
Craig