As I said I know very little about VB but maybe something like this would be a start. PoppaBear (Scott Schaefer) is probably the guy to give you a help with VB.
A=GetOemDRO(29)
B=GetOemDRO(30)
If ((A+B)/2)<10Then
DoOemButton(1003)
MsgBox("Encoders Differ")
If ((A+B)/2)>10 Then
DoOemButton(1003)
MsgBox("Encoders Differ")
End If
End If
I have not tested it so its probably full of syntax errors but it may get you started.
There is a list of OEM codes at the top of the forum, it contains all of the codes for buttons, LEDs and DROs.
The macropump can be anabled on General Config page and you will need to save the VB to your macro folder for the profile you are using, you name it macropump.m1s
Hood