Check the OEM Button codes. Use DoOEMButton() in your new button's script to call whatever button you want to press. Get the list of OEM buttons from the Mach wiki here http://www.machsupport.com/MachCustomizeWiki/index.php?title=OEM_Buttons.
You will find everything you need there.
Thanx for ur reply,
i tried OEM button 307 for X++ jogging for example, but the problem is I assigned a shortcut for this OEM buttons on SCREEN4, when i'm pressing this shortcut key on keyboard, the machine jogs X++, but not with constant velocity.. i mean there's no acceleration on start, no deceleration on stop,
second problem is when i press the hotkey once, machine start jogging X++, but when i want to stop jogging , i have to press stop button, and there's no deceleration,
i want to add a button to mach3 screen, and when i press the hotkey for that button, the axis starts jogging with acceleration (constant velocity) and when press that hotkey again, machine stops with deceleration...
i'm using an Infrared remote control, it got a software that simulates real keyboard button press on PC, i assigned all buttons, but when simulates jogging buttons defined on MACH3 Menu->config->system config , the MACH3 doesn't read that code ! i think this is because of the algorythm of scanning the keyboard !
i didn't find a way to solve my problem,
anybody can help me please?