Sound

class ahk.sound.AsyncSoundMixin(executable_path='', directives=None, **kwargs)[source]
class ahk.sound.SoundMixin(executable_path='', directives=None, **kwargs)[source]
get_volume(device_number=1)[source]

REF: https://autohotkey.com/docs/commands/SoundGetWaveVolume.htm

Parameters

device_number

Returns

set_volume(value, device_number=1)[source]

REF: https://autohotkey.com/docs/commands/SoundSetWaveVolume.htm

Parameters
  • value – percent volume to set volume to

  • device_number

Returns

sound_beep(frequency=523, duration=150)[source]

REF: https://autohotkey.com/docs/commands/SoundBeep.htm

Parameters
  • frequency – number between 37 and 32767

  • duration – how long in milliseconds to play the beep

Returns

None

sound_get(device_number=1, component_type='MASTER', control_type='VOLUME')[source]

REF: https://autohotkey.com/docs/commands/SoundGet.htm

Parameters
  • device_number

  • component_type

  • control_type

Returns

sound_play(filename, blocking=True)[source]

REF: https://autohotkey.com/docs/commands/SoundPlay.htm

Parameters
  • filename

  • blocking

  • wait

Returns

sound_set(value, device_number=1, component_type='MASTER', control_type='VOLUME')[source]

REF: https://autohotkey.com/docs/commands/SoundSet.htm

Parameters
  • value

  • device_number

  • component_type

  • control_type

Returns