Hello Guest it is May 13, 2021, 03:05:39 AM

Author Topic: Execute function with key press  (Read 816 times)

0 Members and 1 Guest are viewing this topic.

Execute function with key press
« on: June 01, 2017, 10:45:08 PM »
Here's what I've tried without much luck.  In the keyboard Inputs plugin, I created a new row as follows...

InputName: CycleStart
Key: Numpad 7[103]
Shift: X
Alt: X
Cntl: X
Lock Key: None
Function: None

Then in Mach4 setup, Input Signals, I enabled Input1, set the device to Keyboard and Input Name to CycleStart, which appears on the drop down list of input names.

When I press the assigned key, nothing happens.  I'm looking at the inputs in diagnostics to confirm.  I'm thinking I need to select a real function in keyboard inputs plugin.  How do you add a function so it appears on the list of functions?  All of the functions that appear seem to be al about jogging.  I need to add a custom function to the list...I think...Unless there is another way to get a key mapped to an input.

My plan was to map a key to an input then look for the input trigger in the Signal Script.

Re: Execute function with key press
« Reply #1 on: June 01, 2017, 11:26:46 PM »
Never mind.  Stupid mistake.  You have to enable keyboard inputs for keyboard inputs to work. :)