-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
211 lines (183 loc) · 12.6 KB
/
MainWindow.xaml
File metadata and controls
211 lines (183 loc) · 12.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<Window
x:Class="FluAutoClicker.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:controls="using:Microsoft.UI.Xaml.Controls"
mc:Ignorable="d"
Title="FluAutoClicker">
<Window.SystemBackdrop>
<DesktopAcrylicBackdrop/>
</Window.SystemBackdrop>
<Grid Background="Transparent"
Padding="10">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Spacing="0" Margin="-2,-5,0,0">
<TextBlock Text="Flu" Margin="0,1,0,0" Foreground="LightSkyBlue" FontWeight="Bold"/>
<TextBlock Text="AutoClicker " Margin="0,1,0,0" Foreground="LightGray"/>
<TextBlock Text=" 1.0" ToolTipService.ToolTip="stable v.1.0 [1]" VerticalAlignment="Top" FontSize="10" Margin="0,0,0,0" Foreground="Gray"/>
</StackPanel>
<InfoBar x:Name="StatusInfoBar"
Grid.Row="0"
IsOpen="False"
IsClosable="True"
VerticalAlignment="Top"
HorizontalAlignment="Center"
Margin="0,20,0,0"/>
<Border Grid.Row="0" Background="#2c121212"
BorderBrush="#2c2c2c" BorderThickness="2"
CornerRadius="5" Padding="10" Margin="0,25,0,10">
<StackPanel>
<StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Spacing="2" Margin="0,0,0,0">
<TextBlock Text="Click interval" Margin="0,-3,0,8"/>
<TextBlock Text=" • " Margin="0,-3,0,8"/>
<TextBlock x:Name="CPSTextBlock" Text=" 0 CPS" ToolTipService.ToolTip="CPS - Click Per Second" Margin="0,-3,0,8" Foreground="Coral" FontSize="12.5" VerticalAlignment="Center"/>
</StackPanel>
<Canvas>
<Line X1="-100" Y1="0" X2="500" Y2="0" Stroke="#2c2c2c" StrokeThickness="2" />
</Canvas>
<StackPanel Orientation="Horizontal" Spacing="10" Margin="0,10,0,-4">
<StackPanel Orientation="Vertical" Spacing="2">
<NumberBox x:Name="HoursBox" Loaded="NumberBox_Loaded" ToolTipService.ToolTip="Hours" Width="70" Value="0" SpinButtonPlacementMode="Compact" SmallChange="1" LargeChange="5"/>
<TextBlock Text="H" ToolTipService.ToolTip="Hours" HorizontalAlignment="Center" Foreground="#777777"/>
</StackPanel>
<StackPanel Orientation="Vertical" Spacing="2">
<NumberBox x:Name="MinutesBox" Loaded="NumberBox_Loaded" ToolTipService.ToolTip="Minutes" Width="70" Value="0" SpinButtonPlacementMode="Compact" SmallChange="1" LargeChange="5" />
<TextBlock Text="M" ToolTipService.ToolTip="Minutes" HorizontalAlignment="Center" Foreground="#777777"/>
</StackPanel>
<StackPanel Orientation="Vertical" Spacing="2">
<NumberBox x:Name="SecondsBox" Loaded="NumberBox_Loaded" ToolTipService.ToolTip="Seconds" Width="70" Value="0" SpinButtonPlacementMode="Compact" SmallChange="1" LargeChange="5" />
<TextBlock Text="S" ToolTipService.ToolTip="Seconds" HorizontalAlignment="Center" Foreground="#777777"/>
</StackPanel>
<StackPanel Orientation="Vertical" Spacing="2">
<NumberBox x:Name="MillisecondsBox" Loaded="NumberBox_Loaded" ToolTipService.ToolTip="Milliseconds" Width="70" Value="100" SpinButtonPlacementMode="Compact" SmallChange="1" LargeChange="100" Maximum="999"/>
<TextBlock Text="Ms" ToolTipService.ToolTip="Milliseconds" HorizontalAlignment="Center" Foreground="#777777"/>
</StackPanel>
<StackPanel Orientation="Vertical" Spacing="2">
<StackPanel Orientation="Horizontal" Spacing="0">
<TextBlock VerticalAlignment="Center" Text="±" ToolTipService.ToolTip="Random offset" Foreground="#777777" Margin="34,0,4,0"/>
<NumberBox x:Name="RandomOffsetBox" ToolTipService.ToolTip="Random offset - Milliseconds" VerticalAlignment="Top" Loaded="NumberBox_Loaded" Width="70" Height="32" Value="0" SpinButtonPlacementMode="Compact" SmallChange="10" LargeChange="50"/>
</StackPanel>
<TextBlock Text="Ms" ToolTipService.ToolTip="Milliseconds" HorizontalAlignment="Center" Foreground="#777777" Margin="57,0,4,0"/>
</StackPanel>
</StackPanel>
<Slider
x:Name="CPS_Slider"
ValueChanged="CPS_Slider_ValueChanged"
Margin="0,6,0,0"
TickFrequency="10"
TickPlacement="Outside"
SnapsTo="StepValues"
Maximum="101"
ToolTipService.ToolTip="CPS Slider"
IsThumbToolTipEnabled="False"/>
</StackPanel>
</StackPanel>
</Border>
<Border Grid.Row="1" Background="#2c121212"
BorderBrush="#2c2c2c" BorderThickness="2"
CornerRadius="5" Padding="10" Margin="0,0,0,10">
<StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Spacing="2" Margin="0,0,0,0">
<TextBlock Text="Click Options" Margin="0,-3,0,8"/>
</StackPanel>
<Canvas>
<Line X1="-100" Y1="0" X2="500" Y2="0" Stroke="#2c2c2c" StrokeThickness="2" />
</Canvas>
<StackPanel Orientation="Horizontal" Spacing="20" Margin="0,10,0,-4">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Spacing="9">
<Button x:Name="jigglerMenuButton" ToolTipService.ToolTip="Jiggler Mode" FontFamily="Segoe Fluent Icons" Content="" Width="38" Height="32" Margin="0,-5,0,0"/>
<ComboBox x:Name="MouseButtonComboBox" ToolTipService.ToolTip="Mouse Button" Width="170" SelectedIndex="0" Margin="0,0,0,5">
<ComboBoxItem Content="Left Button ->"/>
<ComboBoxItem Content="Middle Button ->"/>
<ComboBoxItem Content="Right Button ->"/>
</ComboBox>
<ComboBox x:Name="MouseButtonHoldClickComboBox" ToolTipService.ToolTip="Click Type" Width="167" SelectedIndex="0" Margin="0,0,0,5">
<ComboBoxItem Content="Click"/>
<ComboBoxItem Content="Hold for:"/>
</ComboBox>
<NumberBox Visibility="Collapsed" x:Name="MouseButtonHoldBox" ToolTipService.ToolTip="Milliseconds to Hold" VerticalAlignment="Top" Loaded="NumberBox_Loaded" Width="70" Height="32" Value="0" SpinButtonPlacementMode="Compact" SmallChange="10" LargeChange="50"/>
<TextBlock Visibility="Collapsed" x:Name="MouseButtonHoldMsText" Text="Ms" ToolTipService.ToolTip="Milliseconds" Foreground="#777777" Margin="-3,7,0,0"/>
<Button x:Name="MultiThreadMenuButton" FontFamily="Segoe Fluent Icons" ToolTipService.ToolTip="[beta] Multi-Thread Mode" Content="" Width="38" Height="32" Margin="0,-5,0,0"/>
</StackPanel>
</StackPanel>
</StackPanel>
</Border>
<Border Grid.Row="2" Background="#2c121212"
BorderBrush="#2c2c2c" BorderThickness="2"
CornerRadius="5" Padding="10" Margin="0,0,0,10">
<StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Spacing="0" Margin="0,0,0,0">
<TextBlock Text="Click Repeat" Margin="0,-3,0,8"/>
</StackPanel>
<Canvas>
<Line X1="-100" Y1="0" X2="500" Y2="0" Stroke="#2c2c2c" StrokeThickness="2" />
</Canvas>
<StackPanel Orientation="Horizontal" Spacing="20" Margin="0,10,0,-4">
<StackPanel Orientation="Horizontal">
<ComboBox x:Name="RepeatModeComboBox" Width="439" SelectedIndex="0" Margin="0,0,0,5">
<ComboBoxItem Content="Repeat ∞ times (until stop)"/>
<ComboBoxItem Content="Repeat {x} times"/>
<ComboBoxItem Content="Repeat {x} seconds"/>
</ComboBox>
<TextBlock x:Name="RepeatValueLabel" VerticalAlignment="Center" Text="x:" Foreground="#777777" Margin="5,0,4,6" Visibility="Collapsed"/>
<NumberBox x:Name="RepeatValueBox" VerticalAlignment="Top" Visibility="Visible" Loaded="NumberBox_Loaded" Width="70" Value="10" SpinButtonPlacementMode="Compact" />
</StackPanel>
</StackPanel>
</StackPanel>
</Border>
<Border Grid.Row="3" Background="#2c121212"
BorderBrush="#2c2c2c" BorderThickness="2"
CornerRadius="5" Padding="10" Margin="0,0,0,10">
<StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Spacing="0" Margin="0,0,0,0">
<TextBlock Text="Cursor position" Margin="0,-3,0,8"/>
</StackPanel>
<Canvas>
<Line X1="-100" Y1="0" X2="500" Y2="0" Stroke="#2c2c2c" StrokeThickness="2" />
</Canvas>
<StackPanel Orientation="Horizontal" Spacing="10" Margin="0,10,0,-4">
<StackPanel Orientation="Vertical" Spacing="10" Margin="0,0,0,0">
<RadioButton x:Name="CurrentLocationRadio" GroupName="CursorPos" Content="Current location" IsChecked="True" Margin="0,0,0,-15"/>
<RadioButton x:Name="FixedLocationRadio" GroupName="CursorPos" Content="On Location" ToolTipService.ToolTip="Note: Jiggler not work when enabled" Margin="0,0,0,0"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Spacing="10" Margin="95,-7,0,0">
<NumberBox x:Name="XPositionBox" PlaceholderText="X" Visibility="Visible" Loaded="NumberBox_Loaded" Width="70" Height="32" Value="0" />
<NumberBox x:Name="YPositionBox" PlaceholderText="Y" Visibility="Visible" Loaded="NumberBox_Loaded" Width="70" Height="32" Value="0" />
</StackPanel>
<Button x:Name="GetPositionButton" Width="40" Height="40" Margin="0,-6,0,0" Content="" FontFamily="Segoe Fluent Icons"/>
</StackPanel>
</StackPanel>
</Border>
<StackPanel Grid.Row="5" Orientation="Horizontal" Spacing="10"
HorizontalAlignment="Center" Margin="0,-6,0,10">
<TextBlock Text="" Foreground="#adadad" Opacity="0.7" x:Name="StatusBarText"/>
</StackPanel>
<StackPanel Grid.Row="6" Orientation="Horizontal" Spacing="10"
HorizontalAlignment="Center" Margin="0,1,0,10">
<Button x:Name="StartButton" Height="50" Margin="0,0,0,0" Width="464" Style="{StaticResource AccentButtonStyle}" >
<StackPanel Orientation="Horizontal">
<FontIcon x:Name="PlayIcon" FontFamily="Segoe Fluent Icons" Glyph="" FontSize="12" Margin="0,0,5,0" />
<TextBlock Text="Start • F7" VerticalAlignment="Center" FontWeight="SemiBold"/>
</StackPanel>
</Button>
</StackPanel>
<StackPanel Grid.Row="7" Orientation="Horizontal" Spacing="10"
HorizontalAlignment="Center" Margin="0,0,0,10">
<Button x:Name="HotkeyButton" Content="Hotkey Settings" Width="227" Click="HotkeyButton_Click"/>
<Button x:Name="SettingsButton" Content="Settings" Width="227" Click="SettingsButton_Click"/>
</StackPanel>
</Grid>
</Window>