Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: TommyG on August 09, 2016, 09:44:30 AM

Title: Disable keyboard control on startup?
Post by: TommyG on August 09, 2016, 09:44:30 AM
Hi

Can anyone advise if there's a script option to disable the keyboard plug-in on start-up? It's rather confusing to word, I'm not looking to actually disable the plug-in itself, just to have the equivalent option of clicking on the keyboard icon in the taskbar so that keyboard jogging, etc. are disabled?

For example, I have "mc.mcSoftLimitSetState(inst, 0, 1)", etc.  in my screen load script to automatically enable soft limits, is there an equivalent for the keyboard icon.

On a related note, is there a comprehensive list of the Mach4 scripting commands available?

thanks
Title: Re: Disable keyboard control on startup?
Post by: DazTheGas on August 09, 2016, 12:52:16 PM
Have a look in the Screen Load Script, there is a function called "Keyboard Inputs Toggle()" this should be what you are looking.

DazTheGas

Title: Re: Disable keyboard control on startup?
Post by: Chaoticone on August 09, 2016, 01:25:14 PM
Also, the KeyboardInputsToggle function was updated on 5-16-16. So..... if your not running one of the latest test version you might want to update.

ftp://anonymous:guest@machsupport.com/Mach4/DevlopmentVersions/Mach4Hobby%20Installer-4.2.0.3130.exe (ftp://anonymous:guest@machsupport.com/Mach4/DevlopmentVersions/Mach4Hobby%20Installer-4.2.0.3130.exe)

If you do update I would begin with one of the default profiles.
Title: Re: Disable keyboard control on startup?
Post by: TommyG on August 13, 2016, 07:16:34 AM
Thanks folks