Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Sending Keys to background apps.

Hello Everyone =) I am using VMWare Fusion to run Windows XP (ya ya I know) in order to run the Windows version of Ventrilo (A VOIP Application). My problem revolves around the need to have a "Push to talk" key. To talk I need to press the tilde key and hold it for as long as I wish to talk. This works great when the application is in the foreground. The minute I launch another application (World of Warcraft) and it takes the foreground, Ventrilo no longer sees the "~" keypress and I am forced to "task switch" to talk. I have gotten pretty good at this "work around" but it still bugs the heck out of me ans VMware support is not helping.

Ok enough rambling. I was wondering if anyone out there can help me devise a way for a script to intercept the "~" key and pass it to VMware. The script would need to detect whether the key was held down and keep it down until the key is lifted. Any ideas out there or better yet.. anyone had this issue already and solved it? Any help would be welcome.

Message was edited by: HelpMaPlz

Mac Pro, Mac OS X (10.4.10), 8 Gigs o Ram and Lovin it

Posted on Sep 6, 2007 11:12 AM

Reply
Question marked as Best reply

Posted on Sep 6, 2007 11:44 AM

You can't do this with AppleScript.

AppleScript works the other way around - When invoked it sends events to other applications. It can't, however, trap keypresses in other applications. You should be able to get it to send the tilde key to the other app, but invoking it is going to be the issue.

There may be solutions, though. An automation program such as QuicKeys has the ability to trap events (such as a keypress) and run some other task. It might be up to the job.
2 replies
Question marked as Best reply

Sep 6, 2007 11:44 AM in response to HelpMaPlz

You can't do this with AppleScript.

AppleScript works the other way around - When invoked it sends events to other applications. It can't, however, trap keypresses in other applications. You should be able to get it to send the tilde key to the other app, but invoking it is going to be the issue.

There may be solutions, though. An automation program such as QuicKeys has the ability to trap events (such as a keypress) and run some other task. It might be up to the job.

Sending Keys to background apps.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.