Well, let me explain a bit more.
I have been playing KSokoban for quite a while and now as the levels are getting harder for me, I decided to make a program which would read a Sokoban Map and then work through it and provide a solution.
I was successful at this. It works fine. It gives the shortest possible move. If anyone want the source code then mail me.
The problem comes when the map is pretty complex and the solution is quite long. It is hard to folow the solution as it is a series of Lefts, Rights Ups and Downs. A typical solution could end up with more than 200 such moves.
What I want to do is to take this series of moves and send them as keystrokes to the KSokoban application. Then when i send a left keystroke the player in the KSokoban game will move left thinking that I pressed the left key. (get it !!!!!).
There should be some way to do this, like sending a key press event to the KSokoban window or something similar.
Can anyone help me out with this please ???