It's not generally recomended, for one because it may act differentlywith different versions... but you could maybe use the sendkeysfunction.