i don't think the OSBot API is atm having full good GE suppot so try using any of those, http://osbot.org/forum/topic/90148-simple-ge-api or Omni's API : http://osbot.org/forum/topic/83986-omniapi-a-super-simple-api-that-handles-most-things-for-you/
Progamerz