Is there a way in C# to detect which key\click combination used to open(execute) the EXE?

  • Thread starter Thread starter Addy2019
  • Start date Start date
A

Addy2019

Guest
I have a console EXE in C#. I want that when a user opens(executes) it just by double click I should be able to detect it & use it in a if condition but when he uses Ctrl + Return (or any other combination) to Open\execute it I should be able to detect it as well & use it as else condition & perform diff action. Something like this:
If (DoubleClick Used)
{}

Elseif(Ctrl+Return Used)
{}

Continue reading...
 
Back
Top