Mute the microphone in GoToMeeting using a hotkey and AutoHotKey

My favorite Windows desktop automation utility is AutoHotKey. I use it to fix a variety of annoyances and add functions to applications that I wish the original authors had seen fit to add.

I like being able to mute my microphone quickly using a hotkey combination when using a voice chat app. We use GoToMeeting at work. GoToMeeting doesn’t seem to provide any hotkey capabilities for common operations like muting the microphone.

When in use, the Windows GoToMeeting client presents a control interface that contains common controls like mute/unmute, webcam and screen sharing. It looks like this:

GoToMeeting UI

I tried to use the WindowSpy utility that comes with AutoHotKey to get the window and control information for that microphone mute button. However, it doesn’t appear that the mute button is a gettable control.

So I’ll use AutoHotKey’s ControlClick command to click the microphone mute button for me using X,Y coordinates relative to the window container.

Below is my AHK snippet, which I place within my general AutoHotKey.ini file. It maps Ctrl-Alt-X to click that button. Ctrl-Alt-X is a keyboard combo that I can strike one-handed, but which I won’t accidentally invoke otherwise. You can map it to whatever keyboard combination you like.

I admit the solution is brittle. If GoToMeeting changes their UI such that the coordinates of the mute button change, this will break.  They’ve done it before.

Then again, mapping AHK to window and control IDs isn’t exactly rock solid anyway, so these kinds of fixup scripts are always a little brittle.

Enjoy!

; Ctrl-Alt-x toggles mute in GoToMeeting
^!x::
; SetControlDelay is recommended by AHK to
; improve reliability by avoiding holding
; the mouse button down during the ControlClick.
SetControlDelay -1
; Specifying NA avoids marking the target
; window as active and avoids merging its
; input processing with that of the script, yada yada. RTFM.
ControlClick, X50 Y25, ahk_class G2WShareActionButtons,,,, NA
return
Advertisements

Published by

Larry Silverman

Larry Silverman is a father and husband, software developer, small-business owner, DIY tinkerer, occasional musician, continuous learner, free thinker, despiser of yard work and comma abuser.

5 thoughts on “Mute the microphone in GoToMeeting using a hotkey and AutoHotKey”

  1. Hi Larry, came across this article today in my conquest to find a shortcut. After a little tinkering and some help from a different window info program (AutoIt’s), I was able to slightly modify your script and get it working with the new design. Hope this helps!

    ; Ctrl-Alt-x toggles mute in GoToMeeting
    ^!x::
    ; SetControlDelay is recommended by AHK to
    ; improve reliability by avoiding holding
    ; the mouse button down during the ControlClick.
    SetControlDelay -1
    ; Specifying NA avoids marking the target
    ; window as active and avoids merging its
    ; input processing with that of the script, yada yada. RTFM.
    ControlClick, X50 Y25, ahk_class G2WShareActionButtons,,,, NA
    return

    1. AWESOME! Sorry it took me so long to approve this comment. I just tried out the code and it works! We’re back in business.

  2. Hi Larry, I came across your article here in my search for a kb shortcut solution. I thought there must still be a way to do this, so with a little testing and some help from a different window info program (AutoIt’s), I was able to slightly modify your script to work. Hope this helps you and your readers!

    ; Ctrl-Alt-x toggles mute in GoToMeeting
    ^!x::
    ; SetControlDelay is recommended by AHK to
    ; improve reliability by avoiding holding
    ; the mouse button down during the ControlClick.
    SetControlDelay -1
    ; Specifying NA avoids marking the target
    ; window as active and avoids merging its
    ; input processing with that of the script, yada yada. RTFM.
    ControlClick, X50 Y25, ahk_class G2WShareActionButtons,,,, NA
    return

  3. For those who also use the minified version of GoToMeeting, use this script. Comments removed for readability.

    ^!x::
    SetControlDelay -1
    ControlClick, X50 Y25, ahk_class G2WShareActionButtons,,,, NA
    ControlClick, X75 Y20, ahk_class G2WMiniControlPanel ,,,, NA
    return

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s