A
A
Alexander Pavlov2020-09-24 16:41:33
PowerShell
Alexander Pavlov, 2020-09-24 16:41:33

How to make a program open on keypress using powershell?

Colleagues, hello everyone!

When running a powershell script, after waiting 10 seconds, an RDP shortcut should run, but if at that moment the user pressed a certain key, some code in that script should run.

How can this be done? Give me an idea, please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
azarij, 2020-09-24
@azarij

Here they do something similar https://github.com/pldmgg/misc-powershell/blob/mas...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question