well for windows i would choose C++ in combination with the windows api. the api itself provides everything you need: simulate mouseclicks and inputs and everything else. you can find helpful information at microsofts msdn. for a beginner it will be a hard task to to but its not impossible! you just need keep focused.
and for the cookies: google and find where flash stores its cookies. then you can delete themeasy going