Wow. I'm surprised someone hasn't helped you out with this one yet. Let me give it a shot, though I'm one of the least qualified.
You'll want to make the button to run VB code edited in Mach 3
For the X+ jog button the script should be something like...
If GetOEMDRO(802)>[your value here] then
DoOEMButton(307)
End if
X- DoOEMButton (308), Y+ and Y- are 309 and 310.
This may also be completely wrong. For example, I'm not sure how continuous jog mode will work with this. Test carefully.
Maybe one of the smart guys will take this opportunity to point out the errors in my thinking.