Java Robot like class in c++ language