Hello Guest it is November 22, 2019, 03:15:17 AM

Author Topic: Mach4 Keyboard Emulation  (Read 16629 times)

0 Members and 1 Guest are viewing this topic.

Offline TDAY

*
  •  165 165
    • View Profile
    • Home CNC Stuff
Re: Mach4 Keyboard Emulation
« Reply #30 on: September 07, 2016, 12:29:54 PM »
Is there a way to have the keyboard plugin automatically disabled when the focus is not in the Mach4 window, and re-enabled when the focus goes back to Mach4 window?
+1 for this

Same here.

Or at least when you open the Gcode editor. Anyone know if this is possible?
« Last Edit: September 07, 2016, 12:32:02 PM by TDAY »
"I try to put forth the effort,before asking a dum question"
http://homecncstuff.elementfx.com

Offline peu

*
  •  23 23
    • View Profile
Re: Mach4 Keyboard Emulation
« Reply #31 on: September 13, 2016, 09:34:36 AM »
+1 about freeing the keyboard when mach4 is not in focus.

Also, how do I map the ESCAPE key as STOP like it was configured in mach3?


Pablo

Offline DazTheGas

*
  •  750 750
  • DazTheGas
    • View Profile
Re: Mach4 Keyboard Emulation
« Reply #32 on: September 13, 2016, 09:50:31 AM »
It is possible from a plugin to do this, however this can only be done by disabling the keyboard plugin when mach4 loses focus, if the keyboard was enabled when in focus you will not be able to use the mdi panel as the windows event for onFocus will keep enabling the plugin.

Have a look at the function for enable/disable in the startup script, this can be adapted and used within the tabs when choosing between GCode and Mdi screens.

DazTheGas
Theres always time for a choccy biccy
Re: Mach4 Keyboard Emulation
« Reply #33 on: September 13, 2016, 09:58:18 AM »
It is possible from a plugin to do this, however this can only be done by disabling the keyboard plugin when mach4 loses focus, if the keyboard was enabled when in focus you will not be able to use the mdi panel as the windows event for onFocus will keep enabling the plugin.

Have a look at the function for enable/disable in the startup script, this can be adapted and used within the tabs when choosing between GCode and Mdi screens.

DazTheGas
Daz

I've experimented with this and it doesn't seem to work for me. Is this something you have working on your own setup?

Also, is there some sort of WindowLostFocus() type event that you can tie a script to in order to achieve this?

tommy

Offline DazTheGas

*
  •  750 750
  • DazTheGas
    • View Profile
Re: Mach4 Keyboard Emulation
« Reply #34 on: September 13, 2016, 01:40:01 PM »
Perhaps this quicky will help.

http://www.machsupport.com/forum/index.php/topic,33270

DazTheGas
Theres always time for a choccy biccy