Hotkey to interrupt script

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
bybasic
Posts: 1
Joined: Wed Feb 03, 2016 12:09 am

Hotkey to interrupt script

Post by bybasic » Wed Feb 03, 2016 12:19 am

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.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Hotkey to interrupt script

Post by FourthWorld » Wed Feb 03, 2016 1:18 am

Control+period (Windows and Linux) or Command+period (Mac)
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Hotkey to interrupt script

Post by dunbarx » Wed Feb 03, 2016 2:44 am

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

Post Reply