Evgeny is correct on this, I want to control an X application using non-X code. Thank you for your help, I will look into it today or tomorrow evening and I'll know more. thanks, Peter