I have the following code :
on run {input, parameters}
if application "KeyboardViewer" is running then
quit application "KeyboardViewer"
else
activate application "KeyboardViewer"
end if
return input
end run
- I want to press ALT + TAB automatically after I activate application so that I can start typing right away ..
- Reason to do this is because the keyboard becomes the foreground running application and the webpage or typing area the background.