Reputation: 1929
I have a program which can't be killed with taskkill or pskill. Now my idea was to let a vba script fake mouse clicks and run this script from a batch file.
My question, can anyone tell me of give me an example how to do this? I don't know how you call this method.
Edit: It seem it can be done with special sendkeys commands.
Upvotes: 0
Views: 2011
Reputation: 2177
Depending on what you are trying to do, I would recommend AutoIt. It's a simple VB-like scripting language that you can use to simulate mouse clicks, key presses, etc.
See this question: How to interact with an application programmatically
Upvotes: 2