#!/bin/sh
. ./functions

tell "Now for the input method by your sudoku:"
tell 
tell " A.  Click on a cell, enter a number with the keyboard"
tell " B.  Click on a cell and then click on a number"
tell "     Those numbers can be arranged in a row, like:"
tell -q "       1 2 3 4 5 6 7 8 9"
tell "     in a square, like"
tell -q "         1 2 3"
tell -q "         4 5 6"
tell -q "         7 8 9"
tell "     in two rows, like:"
tell -q "       1 2 3 4 5"
tell -q "       6 7 8 9"
tell
tell " Most sudokus support method A."
tell " To tell the program which method is used:"
tell
tell " - Method A: click somewhere in sudoku"
tell " - Method B: click 1"
create_trans_window
get_clicked_mouse_position > number_coordinates.in
#paplay bell.oga
tell " - Method A: click somewhere in sudoku"
tell " - Method B: click 9"
get_clicked_mouse_position >> number_coordinates.in
xdotool mousemove  $X $Y
sleep 1
echo get_number_coordinates killtrans $PWD 1>&2
killtrans
