Page 1 of 1
relaunching a stack that is open
Posted: Wed Jun 15, 2022 10:55 am
by marksmithhfx
Lets say you are modifying some code in a preOpenStack handler and just want to quickly test it, or perhaps just setup the environment with a new setting. Is there a keyboard shortcut to just relaunch/reopen the stack? Generally I resort to closing / saving the app, then reopening using the Open Recent File option, but I was wondering if there is something simpler.
Thanks
Re: relaunching a stack that is open
Posted: Wed Jun 15, 2022 2:31 pm
by dunbarx
Hi.
Why not just:
Code: Select all
send "preOpenCard" to stack "yourStack"
Craig
Re: relaunching a stack that is open
Posted: Wed Jun 15, 2022 5:26 pm
by jacque
I usually use the message box as Craig said, but you can also use the contextual menu. On Mac, hold down cmd-shift-comtrol and click, and then choose Send Message from either the stack or card menus. On Windows, control+shift+right click.
Here's a handy reference:
https://livecode.byu.edu/helps/shortcuts.php
Re: relaunching a stack that is open
Posted: Wed Jun 15, 2022 5:29 pm
by dunbarx
It occurs to me that I am not certain where your "preOPenCard" handler is, so you may have to, for example;
Code: Select all
send "preOpenCard" to card 1 of stack "yourStack"
Craig
Re: relaunching a stack that is open
Posted: Wed Jun 15, 2022 5:34 pm
by stam
i frequently use the messabox for this
make sure you stack is in the foreground (so its name or one of it's controls are named in the message box (just to the right of the small buttons)) and just type
or whatever other handler you want to run. Always works as expected...
Re: relaunching a stack that is open
Posted: Wed Jun 15, 2022 7:13 pm
by jmburnod
As said above you may test handlers from message box.
But relaunch/reopen can send several messages.
We may use a handler that simulate it and send this handler from the messagebox
Best
Jean-Marc
Re: relaunching a stack that is open
Posted: Sat Jun 18, 2022 8:14 pm
by marksmithhfx
stam wrote: ↑Wed Jun 15, 2022 5:34 pm
i frequently use the messabox for this
make sure you stack is in the foreground (so its name or one of it's controls are named in the message box (just to the right of the small buttons)) and just type
or whatever other handler you want to run. Always works as expected...
Thanks, I'll have to give it a try.