Hello Guest it is October 09, 2024, 03:54:33 PM

Author Topic: Mach4 Quicky #6 - Disable Keyboard Plugin  (Read 5966 times)

0 Members and 1 Guest are viewing this topic.

Offline DazTheGas

*
  •  778 778
  • DazTheGas
Mach4 Quicky #6 - Disable Keyboard Plugin
« on: September 13, 2016, 01:38:54 PM »
Another Quicky  ;)

https://youtu.be/8KgZ1SYxEdg

0 = Disable
1 = Enable

Code: [Select]
local Handle = mc.mcIoGetHandle (inst, "Keyboard/Enable")

if Handle ~= nil then
    mc.mcIoSetState(Handle,0)
end
New For 2022 - Instagram: dazthegas

Offline TDAY

*
  •  165 165
    • Home CNC Stuff
Re: Mach4 Quicky #6 - Disable Keyboard Plugin
« Reply #1 on: September 13, 2016, 07:36:01 PM »
Awesome. :) Thanks again for your work.
Troy
"I try to put forth the effort,before asking a dum question"
http://homecncstuff.elementfx.com
Re: Mach4 Quicky #6 - Disable Keyboard Plugin
« Reply #2 on: May 20, 2017, 08:14:58 AM »
Did you find a way to deactivate keyboard when Mach4 lost focus to?
Keyboard jogging outside Mach4 program is a bit scary  :o

Could mcGuiSetFocus be used? in that case, how?   I looked around for something like WindowLostFocus() but didnt find anything.
I am a bit supprised that Mach didnt fix this as it can be a bit dangerous...