Skip to content

Instantly share code, notes, and snippets.

View Sut3kh's full-sized avatar

Chris Garbe Sut3kh

  • Weaving Webs
  • Milton Keynes
View GitHub Profile
@Sut3kh
Sut3kh / PTT.ahk
Created May 18, 2015 11:07
Global Push to Talk Autohotkey script
; create and run 'SOUNDCARD ANALYSIS.ahk' from https://www.autohotkey.com/docs/commands/SoundSet.htm
; screenshot and close window
; mute the microphone in Recording > Properties > Levels
; run 'SOUNDCARD ANALYSIS.ahk' again and find the row where MUTE has changed to 'On'
; replace [#MIXER_ID] with changed row, i.e. 'SoundSet $val, Master, Mute, 11'
SS( $val )
{
SoundSet $val, Master, Mute, [#MIXER_ID]
}
@Sut3kh
Sut3kh / reset_windows.scpt
Created March 2, 2012 16:20
Reset all windows to primary screen for the given application
set _app to text returned of (display dialog "Reset application: " default answer "Google Chrome")
set _offset to 30
set x_start to 100
set y_start to 15
set _width to 1550
set _height to 1000
set new_col_at to 3
tell application _app
set last_x to (_offset * (count windows)) + x_start