Hello Guest it is April 19, 2024, 09:58:01 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - maaron

Pages: 1
1
General Mach Discussion / Custom hotkey disables 'esc' hotkey.
« on: October 10, 2019, 02:35:33 PM »
Hi all - I've been working on Mach for about a year now, and I consider myself somewhat fluent at this point. Fluent enough to at least hack my way through most issues, though this latest one has me stumped.

I've set up a CNC router for production parts, and I've gone as far as to create some custom buttons using machscreen, which are then used to call macros to zero the part using a custom touch probe, then run the associated G-code. That all works as great.

Recently I decided it would be GREAT if I could just mash some hotkeys/keyboard shortcuts instead of clicking the onscreen buttons i've created. I've assigned the hotkeys using Machscreen, and there aren't any conflicts I'm aware of (I'm using Shift-Alt-A and Shift-Alt-B as my shortcuts.) From first glance, this also appears to work fantastically, but this is where my issue starts.

If I decide for some reason to stop the macro using ESC, it does not respond after having called either of the macros using the hotkeys. If I boot up the machine, and run the routines via the buttons i've created, ESC works great until I've used either of the hotkeys, at which point it ceases to respond to ESC until the machine is rebooted, forcing the use of the mouse to terminate the script.

To summarize:
-Custom Macro Buttons to zero and run parts
-Buttons work as intended
-Hotkeys work (mostly) as intended
-terminating script using ESC works after machine startup but only until I've used a hotkey to call the custom macros, at which point it no longer works and manually clicking "stop" is required to terminate the script.


Any suggestions? What could I be doing incorrectly?

Pages: 1