Benches macOS

3

Sending Keys to background apps.

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

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

3 replies

Sign in or join Beachball Help to reply.

  1. 0

    Camelot

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    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. 0

    Camelot

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    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.

  3. 0

    HelpMaPlz

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thanks for the clarification and the advice on a solution. I'll check out quick keys. Thanks a ton!