mirror of
https://github.com/tuxdotrs/highminded.git
synced 2025-08-23 08:01:03 +05:30
Audio (bugged)
File Already in use error.
This commit is contained in:
@@ -39,6 +39,14 @@
|
||||
<TextBlock FontSize="12" Text="Screen:" />
|
||||
<TextBlock FontSize="12" Text="SHIFT + S" />
|
||||
</StackPanel>
|
||||
</Border>
|
||||
<Border Background="Black" BorderBrush="#19ffffff" BorderThickness="2" CornerRadius="5"
|
||||
Margin="0 0 10 0">
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"
|
||||
Spacing="5" Margin="10 0">
|
||||
<TextBlock FontSize="12" Text="Audio:" />
|
||||
<TextBlock FontSize="12" Text="Alt + A | | Alt + Shift + A" />
|
||||
</StackPanel>
|
||||
</Border>
|
||||
<Button Name="ChatBtn" Background="Transparent" Click="ChatBtnClick">
|
||||
<iconPacks:PackIconLucide Grid.Column="1" Kind="Brain" Height="16" Width="16" />
|
||||
|
@@ -82,6 +82,7 @@ public partial class MainWindow : Window
|
||||
bool hasShift = (e.RawEvent.Mask & EventMask.Shift) != EventMask.None;
|
||||
bool hasH = e.Data.KeyCode == KeyCode.VcH;
|
||||
bool hasBackslash = e.Data.KeyCode == KeyCode.VcBackslash;
|
||||
bool hasA = e.Data.KeyCode == KeyCode.VcA;
|
||||
bool hasS = e.Data.KeyCode == KeyCode.VcS;
|
||||
bool hasQ = e.Data.KeyCode == KeyCode.VcQ;
|
||||
|
||||
@@ -94,6 +95,20 @@ public partial class MainWindow : Window
|
||||
{
|
||||
Dispatcher.UIThread.Post(() => { _chatUserControl.SendScreenshot(); });
|
||||
}
|
||||
if (hasAlt && hasA)
|
||||
{
|
||||
Dispatcher.UIThread.Post(() => { _chatUserControl.StartRecord(); });
|
||||
}
|
||||
|
||||
if (hasAlt && hasShift && hasA)
|
||||
{
|
||||
Dispatcher.UIThread.Post(() => { _chatUserControl.StopRecord(); });
|
||||
}
|
||||
|
||||
/* if (hasShift && hasA)
|
||||
{
|
||||
Dispatcher.UIThread.Post(() => { _chatUserControl.SendAudio(); });
|
||||
}*/
|
||||
|
||||
if (hasAlt && hasShift && hasQ)
|
||||
{
|
||||
|
Reference in New Issue
Block a user