Machsupport Forum

Mach Discussion => Mach4 General Discussion => Mach4 Videos => Topic started by: DazTheGas on September 13, 2016, 01:38:54 PM

Title: Mach4 Quicky #6 - Disable Keyboard Plugin
Post by: DazTheGas 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
Title: Re: Mach4 Quicky #6 - Disable Keyboard Plugin
Post by: TDAY on September 13, 2016, 07:36:01 PM
Awesome. :) Thanks again for your work.
Troy
Title: Re: Mach4 Quicky #6 - Disable Keyboard Plugin
Post by: soruud 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...