- Oct
- 34
- 0
I've created a set of complex batch files that often times take a complex set of parameters which I tend to forget a lot. Rather than always looking them up, I've been trying to fiddle with a database of these commands and a button on each db record that will send the command line to an open TC window.
I've been using NirSoft's NirCMD.exe utility to activate the TC window and then trying to use its sendkey and sendkeypress functions to send the command line from the DB to the TC window. The window activates and pulls to the foreground just fine but TC doesn't like accepting any emulated keystrokes from the NirCMD or from a similar util called sendwkey_64.exe. I've also had trouble with getting TC to accept emulated ctrl-V actions from a clipboard manager I use called "Clip Cache". Only a physical press on the keyboard seems to work for pasting.
I know the DB scripting is working because if I switch to activating a notepad window, the keystrokes or clipboard paste actions dump into the text editor just fine. I just can't get TC to accept the keystrokes.
Anyone try anything like this before and have suggestions?
I've been using NirSoft's NirCMD.exe utility to activate the TC window and then trying to use its sendkey and sendkeypress functions to send the command line from the DB to the TC window. The window activates and pulls to the foreground just fine but TC doesn't like accepting any emulated keystrokes from the NirCMD or from a similar util called sendwkey_64.exe. I've also had trouble with getting TC to accept emulated ctrl-V actions from a clipboard manager I use called "Clip Cache". Only a physical press on the keyboard seems to work for pasting.
I know the DB scripting is working because if I switch to activating a notepad window, the keystrokes or clipboard paste actions dump into the text editor just fine. I just can't get TC to accept the keystrokes.
Anyone try anything like this before and have suggestions?