Send Text in Clipboard to Application like Notepad (C# or Powershell)
问题 I want to be able to send the text on the clipboard, in Windows, to an application. For example, I'm working on a text file in notepad, and I want to copy a portion out into a new file..I want to copy it to the clipboard and then use a hotkey to launch an application or powershell script that sends that copied text to a new instance of Notepad. How can I achieve this in C# or Powershell ? SOLUTION: Using AutoHotKey ^+c:: Send ^c Run Notepad WinWait Untitled - Notepad WinActivate Send ^v