Thank you for the answer.
What i really needed for the second part is read a number from a website or from a file and compare it to a value...some sort of: "if 50<100 then do this, if not do that or nothing" get it? Can i do this?
Edit: How can i select some text then copy it into the clipboard?