Page 1 of 1

Hotkey to interrupt script

Posted: Wed Feb 03, 2016 12:19 am
by bybasic
Hello
I am looking for an hotkey, that interrupts a script. For example, when I try out a script, I make mistakes, so I have programmed an endless loop. When this happened, LiveCode is hanging. When I programmed formerly in QuickBasic, there was Shift F5 or F5 to stop the code. But here I do not find anything. I must kill LiveCode with Taskmanager and the code is lost.

Re: Hotkey to interrupt script

Posted: Wed Feb 03, 2016 1:18 am
by FourthWorld
Control+period (Windows and Linux) or Command+period (Mac)

Re: Hotkey to interrupt script

Posted: Wed Feb 03, 2016 2:44 am
by dunbarx
Sometimes you can get yourself in so deeply that even Cmd-period does not work. I always try to put an escape into the mix, something like(pseudo/comico):

Code: Select all

repeat until the sun burns out
  if the optionKey is down then exit to top
  loop everywhere
  keep looping
  loop back to the beginning
end repeat
I must admit that, more than once, I have had to quit LC to remember to add such a thing.

Craig Newman