Or you can use the "sendkey.dll", it working as it should, i using it and never got any problem with the dll.

http://www.mircscripts.org/archive.php?s...&perpage=50