Thanks. In other words my trial must be written as:

Code:
function click(int row,int col) {
	if(row == 5 && col == 0) // the button's coordinates
		...
}


At least this way it works.