|
Post by cruisin1953 on Jan 27, 2020 6:50:16 GMT -5
How to stop process with Logitech Keyboard? I recently got a new keyboard without a break key. when building code, sometimes error with a endless loop which i got to stop... Love the LB , I have created a puzzle solver and other algorithms with it.
|
|
|
Post by mknarr on Jan 27, 2020 9:32:15 GMT -5
Look under the RUN menue and you should find Kill Basic Programs. Sometime that works and some time not. Then I right click on the ribbon at the bottom of your desktop and select Start Task Manager. Then on the Processes tab right click the liberty.exe and and Kill the Process.
|
|
|
Post by tsh73 on Jan 27, 2020 9:34:35 GMT -5
I pretty sure there is more then one different Logitech Keyboard around. Does it have "Fn" key? So if you post model or good photo, someone may as well suggest something.
|
|
cundo
Full Member
Muchas Gracias!!
Posts: 146
|
Post by cundo on Jan 27, 2020 11:03:21 GMT -5
No break/pause key? Interesting problem, I would like to know the model.
|
|
|
Post by sarossell on Jan 27, 2020 11:26:08 GMT -5
I have the same problem running LB in Parallels on a Mac - no Break key. You can create a desktop shortcut with the following command
tskill /a liberty This is a simple command line directive to kill all instances of liberty basic.
Since I use the Sublime code editor instead of the built in editor, my solution was to create a shortcut on the Sublime menu bar by adding the following code to the Main.sublime-menu configuration file.
{ "caption": "CLEAN UP", "command": "exec", "args": {"cmd": "tskill /a liberty"} }, :@)
|
|
|
Post by cruisin1953 on Jan 27, 2020 15:33:12 GMT -5
I pretty sure there is more then one different Logitech Keyboard around. Does it have "Fn" key? So if you post model or good photo, someone may as well suggest something.
LOgitech K400 PLUS, has a FN key.
|
|
|
Post by tsh73 on Jan 27, 2020 15:59:21 GMT -5
found elsewere, you can try
Also
|
|
|
Post by cruisin1953 on Jan 27, 2020 18:17:52 GMT -5
Update: the Kill Basic Programs under Run Menu doesnt work, the Combination Keys as noted above, dont work. The Task Manager does work, but I have to close Liberty Basic itself . Thanks for any assistance,
|
|
|
Post by tsh73 on Jan 28, 2020 2:58:13 GMT -5
|
|
|
Post by Rod on Jan 28, 2020 3:25:35 GMT -5
For the k400 You have to useFn + P for Pause / Break. If this does not work try adding the Ctrl alt press as well. Liberty should stop and show you a keyboard interrupt message. Remember that Liberty auto saves a .bak file every time you click the run button. So even if you do have to use. CtrlAltDel you can still recover the latest code even if you did not save a copy first. Look at preferences to see where the .bak file is saved.
|
|
|
Post by alincon on Jan 28, 2020 13:28:25 GMT -5
Thanks for the reminder about the autosave feature in LB. It could spare us a lot of grief when we are forced to abort a hung-up program.
r.m.
|
|
|
Post by irvbingham on Jan 28, 2020 19:04:33 GMT -5
|
|
|
Post by cruisin1953 on Jan 28, 2020 20:47:00 GMT -5
How about using INKEY$ with a Stop in the program when certain key pressed? Wiki was good info, although did not find a key combo.
|
|
|
Post by Rod on Jan 29, 2020 3:30:55 GMT -5
I can’t access a pc right now. Build a simple program that has a single loop that increases a counter and displays the total in a textbox. Be sure to put a scan statement inside the loop. Now run the loop and try your key press combinations. There will be one that works.
The scan ensures Liberty checks for outstanding events like keypresses. I ask you to write a new simple program because it is possible to code very tight loops that run so fast and build event queues that make it appear that the keypresses are being ignored. Scan should sort that. Once we have the correct key press combination it should be able to break into loops even without scan but it might take a while to respond.
CtrlAltDel may still be required but as I showed earlier you can still recover code.
Liberty offers more tools to debug. Click on either the ide left margin or better still the ladybug debugging window left margin. Liberty will insert a breakpoint. Now you can run full speed till you hit test breakpoint. Then single step forwards and look st the variable contents as you go.
But first let’s find the break key combination for your keyboard.
|
|
|
Post by Carl Gundel on Jan 29, 2020 8:59:42 GMT -5
How about using INKEY$ with a Stop in the program when certain key pressed? Wiki was good info, although did not find a key combo. The problem of the runaway program is pretty much universal to different programming languages. If I were to make it possible to break into any program there would need to be a check inside of every loop which would slow things down noticeably. Perhaps I could add a user controllable switch to add a check for keyboard interrupt inside of every loop.
|
|