I needed to change these
Convert.ToInt32(pos.X)
to
(int) pos.X
etc to make it work on Vista 32 Bit otherwise the bot would go elsewhere. I wonder why that is.