Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

User Image
Guardian
3 discussion posts
May we have a shortcut feature or tutorial on how to set up a terminate program macro? Thank you in advance.
Jun 5, 2015 (modified Jun 5, 2015)  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
We can definitely provide an example. What is the name of the process that you want to kill?
Jun 5, 2015  • #2
User Image
Guardian
3 discussion posts
Steam, Civilization 5, Arma 3, Google Chrome. Thank you for your fast response.
Jun 6, 2015  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, here's some sample code that would kill Notepad++. Just replace the Notepad++ path the path to whatever app you'd like to kill in your macro and you should be all set :)

using System;
using System.Drawing;

Code

public static class VoiceBotScript
{
public static void Run(IntPtr windowHandle)
{
uint appID = BFS.Application.GetAppIDByFile("C:\\Program Files (x86)\\Notepad++\\notepad++.exe");
BFS.Application.Kill(appID);
}
}
Jun 6, 2015  • #4
User Image
Guardian
3 discussion posts
Thank you very much
Jun 7, 2015  • #5
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)