Newbie wanting to learn programming language to

Hi,

I would like to learn a programming language. I have searched on the internet and it seems like Ruby is one of the best. I would like to write a program that would do the following:

take a snapshot of my computer screen > after x number of seconds refresh the computer screen > take another snapshot of my computer screen > compare the 2 screens and if anything has changed play an audio alert

Is this something Ruby could do and would Ruby be the best software to use for this purpose?

Thank you in advance for any help,
yeto