0
I have been working on a project and have gotten it to the point where I need to be able to send hot key macros to the terminal in order to invoke or stop a process. I have been using python up until now but I don't want to have to install additional modules as most of them are third party and don't come with the python standard library. I know in bash scripts there are ways that you could issue commands such as ls/cd/pwd, but I was wondering if there would be a way of issuing a command like "shift" + O, or "ctl" + C for example. It was also be of tremendous help to know if there were any similar functionalities in windows.
Please note that this question is not asking for help with Python but asking for help with creating a bash script that would include macros if possible.
Thanks so much,
Rick ~
2You can do that with autohotkey scripts. – Biswapriyo – 2018-11-05T19:20:02.413
If you want to do ctrl-c as in stopping a process,
kill -INT <pid>
does exactly the same thing. – Aulis Ronkainen – 2018-11-05T20:13:57.193Hi Aulis, thanks for the response, however I was hoping that there would be a way to do something like a shift+c as well or ctrl-alt-del, or alt-f2 etc – RickwhoPrograms – 2018-11-05T21:07:06.747
If you're in bash, would an alias work? – Xen2050 – 2018-11-06T01:12:43.630
Sure, You mean assign it to a variable maybe and call on that? – RickwhoPrograms – 2018-11-06T04:57:19.260