Yes you can do it how your talking about, in a round about way........
Put the VB code in the Jog Buttons you want to watch in screen designer, including the DoOEMButton code for the jog button so it all runs in VB.
you can still set a "HOT KEY" that will activate the button itself.
OR, if you want to execute the SAME security check on multiple jog buttons, I would then make your self a "Security Check" macro.
i.e.
' M1001.m1s
' Security Check Macro
' /// your security check macro code here ///
' end of macro
Then again in your Jog buttons that your watching, there is a Radio button that you tick in screen designer 3 and 4, or (my preference Mach Screen by Klaus), you add all the VB code in the button. NOTE: you can find the Mach Specific VB codes for Buttons, LEDs, and DROS on the Wiki, Ray's stuff, in the Memeber docs is some of mine, and I believe several other people have posted various compliations......... I think the Wiki has the VB organized in USE types, i.e. all buttons together, all LEDs together etc.
scott