-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ff101ba
Showing
3 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
Menu, tray, NoStandard | ||
Menu , Tray, Tip, MicMonitor | ||
Menu, tray, Icon, MicMonitor.ico, 1 | ||
Menu, tray, Add, Toggle Microphone Monitoring, ToggleMicMonitoring | ||
Menu, tray, Add, About, DisplayAbout | ||
Menu, tray, Add, Exit, EndScript | ||
Menu, Tray, Default, Toggle Microphone Monitoring | ||
|
||
something: | ||
return | ||
|
||
DisplayAbout() { | ||
Gui, Add, Picture,w80 h80 Center, MicMonitor.ico | ||
Gui, font,bold | ||
Gui, Add, Text, Center x20, MicMonitor by Hexandcube | ||
Gui, font, | ||
Gui, Add, Text,, hexandcube@hexandcube.eu.org | ||
Gui, Add, Text,, https://hexandcube.eu.org | ||
Gui, Add, Text,, Version 1.0 | ||
Gui, Add, Text,, | ||
Gui, Add, Text,, Microphone icon by Icons8 | ||
Gui, Show, w300 h250 center, About | ||
return | ||
} | ||
|
||
ToggleMicMonitoring(){ | ||
isExist:=WinExist("ahk_exe rundll32.exe ahk_class #32770") | ||
Run, % "rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,recording",,, uPID | ||
WinWait, % "ahk_pid"uPID,, 1 | ||
|
||
WinWait,Sound | ||
|
||
Send {CTRL DOWN}{Down}{CTRL UP} | ||
|
||
ControlGet, List, List,, SysListView321, % "ahk_pid"uPID | ||
|
||
FileRead, OutputVar, toggle.ini | ||
|
||
Loop, Parse, List, `n | ||
{ | ||
IfInString, A_LoopField, %OutputVar% | ||
{ | ||
ControlClick,&Properties | ||
Send {CTRL DOWN}{Tab}{CTRL UP} | ||
Send {Space} | ||
Send {Enter} | ||
break | ||
} | ||
else | ||
{ | ||
ControlSend,SysListView321,{Down} | ||
} | ||
} | ||
|
||
WinWait,Sound | ||
Send {Esc} | ||
} | ||
|
||
EndScript: | ||
|
||
ExitApp | ||
|
||
Return |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Microphone |