in reply to Retreiving variables from threads

Check out some of these threads on inter process communication, that might help point you in the right direction.