Hello Guest it is November 13, 2019, 06:24:21 PM

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

0 Members and 1 Guest are viewing this topic.

Offline DazTheGas

*
  •  750 750
  • DazTheGas
    • View Profile
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
Theres always time for a choccy biccy

Offline TDAY

*
  •  165 165
    • View Profile
    • 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...