java - Making my computer prompt me with a predeterminedquestion whenever I open firefox -
i'm inspired reading john conway's wikipedia page: http://en.wikipedia.org/wiki/john_horton_conway#algorithmics i want have window pop whenever open firefox ask question code. i'd type in response in text box , upon hitting return display answer , whether i'm correct or not. i'm thinking of right i'd random number in centimeters between, say, 0 , 300 , try correct amount of inches corresponds to. i have no idea how start going this. how make program execute when click , turn on browser? have experience swing perhaps use i've looked through of swing library no avail. put java tag there because it's language i'm familiar solution in java best if possible. also, there resources learn how stuff this? i think main problem getting prewritten code run upon opening browser. rest can deal in swing i'm not sure. lastly, sorry non-space between predetermined , question, site doesn't let me use second word in title though makes sense here. ...