TProcess.CommandLine and virtual key combinations lazarus / 1-Linux ---------------------------------------------------------------------- gambothell · 2009-11-16 23:18 When using the TProcess to run an application under your compiled program, I need to issue a virtual keystroke combination. How do you enter a key combination for the command line that requires shift and ctrl keys, example: shift+ctrl+Q AProcess.CommandLine := [VK_SHIFT]+[VK_CTRL]+'Q';  does not work AProcess.Execute; Thanks for your assistance. ---------------------------------------------------------------------- Leledumbo · 2009-11-17 08:55 Use AProcess.Input.Write() method. I don't really know how a key combination is handled, but I guess it's worth to try: Code: [Select]var   s: String; begin   s:=Chr(VK_SHIFT)+Chr(VK_CTRL)+'Q';   AProcess.Input.Write(s[1],Length(s)); end; Call it after execute. Precisely, after the program blocks for input.