I can't explain it all as I just copied it from someone else's script. The third line sends v and b to middle mouse button. I guess the first two lines set the delay of the key press.
All I really know is it works for reversing tanks and reinforcing (I also use it for sprint on sniper,as n is quite far away so e is easier) Give it a go in single player to test it, save the game when you have Guards and Cons on the field.
I'll try it when i get home, thanks a lot! This will be really useful