Merge branch 'master' of http://www.scserverddns.top:13000/sc/formula_manage
This commit is contained in:
commit
e10e3293ba
2 files changed
+3
-6
No files matched your search
+3
-2
@@ -5,8 +5,9 @@
|
|||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:input="clr-namespace:System.Windows.Input;assembly=PresentationCore"
|
xmlns:input="clr-namespace:System.Windows.Input;assembly=PresentationCore"
|
||||||
xmlns:local="clr-namespace:formula_manage"
|
xmlns:local="clr-namespace:formula_manage"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d" Title="Login"
|
||||||
Title="Login" Height="360" Width="248" Loaded="Window_Loaded">
|
Height="340" Width="248" MaxHeight="340" MaxWidth="248" ResizeMode="NoResize"
|
||||||
|
Loaded="Window_Loaded" WindowStyle="None">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Rectangle HorizontalAlignment="Center" Height="118" VerticalAlignment="Top" Width="248">
|
<Rectangle HorizontalAlignment="Center" Height="118" VerticalAlignment="Top" Width="248">
|
||||||
<Rectangle.Fill>
|
<Rectangle.Fill>
|
||||||
|
|||||||
@@ -30,15 +30,11 @@ namespace formula_manage
|
|||||||
const int KEYEVENTF_KEYUP = 0x2;
|
const int KEYEVENTF_KEYUP = 0x2;
|
||||||
if (up)
|
if (up)
|
||||||
{
|
{
|
||||||
|
|
||||||
keybd_event((byte)key, 0x45, KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP, (UIntPtr)0);
|
keybd_event((byte)key, 0x45, KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP, (UIntPtr)0);
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
keybd_event((byte)key, 0x45, KEYEVENTF_EXTENDEDKEY, (UIntPtr)0);
|
keybd_event((byte)key, 0x45, KEYEVENTF_EXTENDEDKEY, (UIntPtr)0);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user