Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;This script requires NirCMD.exe to be installed in the same folder you've saved this autohotkey script to.
- ;I run it just from the default c:\users\<username>\Documents\AutoHotKey.ahk location
- ;This is for a Google+ Hangout, but in theory it would work for Skype or any other video call system.
- ;Just replace googletalkplugin.exe with whatever the exe is of your video call program in MuteVideo and UnmuteVideo.
- MuteVideo = "%A_ScriptDir%\nircmd.exe" muteappvolume googletalkplugin.exe 1
- UnmuteVideo = "%A_ScriptDir%\nircmd.exe" muteappvolume googletalkplugin.exe 0
- MuteArtemis = "%A_ScriptDir%\nircmd.exe" muteappvolume Artemis.exe 1
- UnmuteArtemis = "%A_ScriptDir%\nircmd.exe" muteappvolume Artemis.exe 0
- MuteMic = "%A_ScriptDir%\nircmd.exe" mutesysvolume microphone 1
- UnmuteMic = "%A_ScriptDir%\nircmd.exe" mutesysvolume microphone 0
- TransparancyActive=0
- ;Toggle transparancy by pressing the space bar
- Space::
- ToggleTransparancy()
- return
- ;Manually turn Artemis invisible and unmute the microphone by hitting 1 on your keyboard
- 1::
- HailOn()
- return
- ;Manually turn Artemis visible again and mute the microphone by hitting 2 on your keyboard
- 2::
- HailOff()
- return
- ToggleTransparancy()
- {
- ;Toggles the transparancy mode
- global TransparancyActive
- if TransparancyActive=0
- {
- TransparancyActive := HailOn()
- return
- }
- else
- {
- TransparancyActive := HailOff()
- return
- }
- }
- HailOn(){
- global UnmuteVideo, MuteArtemis, UnmuteMic
- ;Unmute Chrome & mic, make Artemis invisible
- WinSet, Style, +0xC00000, Game Window
- WinSet, Transparent, On, Game Window
- WinSet, Style, -0xC00000, Game Window
- Run, %UnmuteVideo%
- Run, %MuteArtemis%
- Run, %UnmuteMic%
- return 1
- }
- HailOff(){
- global MuteVideo, UnmuteArtemis, MuteMic
- ;Mute Chrome & mic, bring Artemis back
- WinSet, Style, +0xC00000, Game Window
- WinSet, Transparent, Off, Game Window
- WinSet, Style, -0xC00000, Game Window
- Run, %MuteVideo%
- Run, %UnmuteArtemis%
- Run, %MuteMic%
- return 0
- }
- ;THIS SECTION IS ONLY NEEDED FOR ARTEMIS 1.6
- ;It forces a borderless full-screen window when you WinKey+left click (WinKey+right click turns off borderless window).
- ;Artemis 1.7 has implemented its own full-screen borderless window, and you don't need to do this anymore.
- #LButton::
- Winset, Alwaysontop, On, Game Window
- Gui -Caption +ToolWindow
- WinSet, Style, -0xC00000, Game Window
- WinMove, Game Window, , 0, 0
- return
- #RButton::
- WinSet, Style, +0xC00000, Game Window
- ;Winset, Alwaysontop, Off, Game Window
- WinMove, 0, 0
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement