LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Command keyboard

Solved!
Go to solution

How could I send a command to the computer, as if I had pressed two keys. Example CTRL + I

I want to execute execute CTRL + I, according to a schedule that I will define.

 

 

Rafael Nunes
0 Kudos
Message 1 of 4
(2,358 Views)
Solution
Accepted by topic author Nunes

Hi Nunes,

 

have you searched this forum on "simulate keypress events"? There are a lot of threads on this topic!

 

You will find mainly two options:

  1. Use a Windows DLL call (or a .NET call) to simulate a keypress.
  2. Use some 3rd party tool (like AutoIt) to do that for you…
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,346 Views)
Solution
Accepted by topic author Nunes

As Gerd said, use user32.dll:keybd_event to send key-presses one after the other... Ctrl + i...

 

ctrl+i.png

Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
0 Kudos
Message 3 of 4
(2,332 Views)

Hi GerdW,

 

I did not search, I'm new here. Thanks a lot for the help!

Rafael Nunes
0 Kudos
Message 4 of 4
(2,327 Views)