thanks for that code moggie, I think having code that enables you to input something is good. I have something similer, but you always need to see other versions as well.
I'm trying to use somthing like this for pasting sprites and incrementing the sprite numer on screen, so you can scroll through the sprite numbers and when you find the one you want you use paste it to the screen with the mouse.