relaunching a stack that is open
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
relaunching a stack that is open
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
Thanks
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
Re: relaunching a stack that is open
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
Here's a handy reference:
https://livecode.byu.edu/helps/shortcuts.php
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: relaunching a stack that is open
It occurs to me that I am not certain where your "preOPenCard" handler is, so you may have to, for example;
Craig
Code: Select all
send "preOpenCard" to card 1 of stack "yourStack"
Re: relaunching a stack that is open
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...
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
Code: Select all
preOpenCard
Re: relaunching a stack that is open
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
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
https://alternatic.ch
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Re: relaunching a stack that is open
Thanks, I'll have to give it a try.stam wrote: ↑Wed Jun 15, 2022 5:34 pmi 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 typeor whatever other handler you want to run. Always works as expected...Code: Select all
preOpenCard
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS