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.
CHANGE SCREEN ON PRESS OF ESCAPE KEY FROM PHYSICAL KEYBOARD
-
- Mesajlar: 3
- Kayıt: 18 Kas 2015, 09:44
Re: CHANGE SCREEN ON PRESS OF ESCAPE KEY FROM PHYSICAL KEYBO
Hi,
You can't use like this because iX don't have Window_KeyDown action. Because of this you can't attach your code to this action. Easy use for this situation is Funciton Keys. You can use same thing with F1. Second choice is thread. But it doesn't suggest if you don't c# well
You can't use like this because iX don't have Window_KeyDown action. Because of this you can't attach your code to this action. Easy use for this situation is Funciton Keys. You can use same thing with F1. Second choice is thread. But it doesn't suggest if you don't c# well
Bu mesaja eklenen dosyaları görüntülemek için gerekli izinlere sahip değilsiniz.
-
- Mesajlar: 3
- Kayıt: 18 Kas 2015, 09:44
Re: CHANGE SCREEN ON PRESS OF ESCAPE KEY FROM PHYSICAL KEYBO
Ok
Thank you..
Thank you..