CHANGE SCREEN ON PRESS OF ESCAPE KEY FROM PHYSICAL KEYBOARD
Gönderilme zamanı: 24 Ağu 2016, 10:54
Hi,
I want to change the screen on my SCADA on press of ESCAPE Key from the physical keyboard of my Laptop.
I am using the following script;
public partial class ScriptModule1
{
private void Window_KeyDown(System.Object sender, System.Windows.Input.KeyboardEventArgs e)
{
if (Console.ReadKey().Key == ConsoleKey.Escape)
{
Globals.Screen2.Show();
}
}
}
The compiler doesn't show any error but nothing happens on press of ESCAPE KEY.
I want to change the screen on my SCADA on press of ESCAPE Key from the physical keyboard of my Laptop.
I am using the following script;
public partial class ScriptModule1
{
private void Window_KeyDown(System.Object sender, System.Windows.Input.KeyboardEventArgs e)
{
if (Console.ReadKey().Key == ConsoleKey.Escape)
{
Globals.Screen2.Show();
}
}
}
The compiler doesn't show any error but nothing happens on press of ESCAPE KEY.