I've looking through apple forums and here looking for a solution. The only solution I could find was to permanently disable the built in Keyboard (which is clearly not a great solution).
Can anyone suggest a solution which can either stop the program if it detects user input or temporarily stop user input for a short amount of time while the script 'keystrokes' something for the user.
Background Info: I'm trying to create a script that enters an email address into a program automatically. I want to be able to stop the user from interfering with the scripts actions (such as placing the text cursor elsewhere or clicking on something irrelevant). I was able to create this program using Autoit but I am now creating a mac version using AppleScript.
I get the program to input the email through keystrokes.