1
Support Questions / Re: DF1Com1 in C# - Simple issue. I think
« on: April 28, 2018, 04:22:18 PM »
Right. I have the code working for toggle now....
For anyone, it if like this:
I jsut need help with keep up and release...
Thank you all very much
For anyone, it if like this:
Code: [Select]
public void hook_KeyPressed(object sender, KeyPressedEventArgs e)
{
if (e.Modifier == (Src.Hooks.ModifierKeys.Win | Src.Hooks.ModifierKeys.Alt) && e.Key == Keys.F12)
{
serialDF1forSLCMicroCom1.Write ("B3:0/0", "1");
}
else if (e.Modifier == (Src.Hooks.ModifierKeys.Win | Src.Hooks.ModifierKeys.Alt) && e.Key == Keys.F11)
{
serialDF1forSLCMicroCom1.Write("B3:0/0", "0");
}
// show the keys pressed in a label.
}
I jsut need help with keep up and release...
Thank you all very much