Hey Tec

This seems to work

visual basic code:Me.Hide
DoEvents
gethwnd
Me.Show



It doesn't have time to hide your application and set focus to the notepad or whatever application you expect to have focus. I think

Thanks manavo, this cretainly fixes the reliability problem for using to notepad or to my copiled vb program.
if MS word or a different project vbide window nothing pastes, but i will compile this now and test a lot more.

thanks again