Binary Fortress
Binary Fortress Software
CheckCentral
ClipboardFusion
CloudShow
CloudShow Manager
DisplayFusion
FileSeek
HashTools
LogFusion
Notepad Replacer
Online Base64 Decoder
Online Base64 Encoder
Online JSON Formatter
ShellSend
TrayStatus
VoiceBot
WallpaperFusion
Window Inspector
More Apps...
DisplayFusion
CheckCentral
CloudShow
ClipboardFusion
FileSeek
TrayStatus
VoiceBot
WallpaperFusion
Display
Fusion
by Binary Fortress Software
Download
Download
Change Log
Download Beta
Beta Change Log
License (EULA)
Features
Free vs Pro
More
Screenshots
Scripted Functions (Macros)
Languages
Help
Help Guide
FAQ
Discussions
Contact Us
Find My License
Mailing Address
Advanced Settings
Purchase
Login / Register
WARNING: You currently have Javascript disabled!
This website will not function correctly without Javascript enabled.
Title
Message
OK
Confirm
Yes
No
Kill current process
Return to DisplayFusion Scripted Functions (Macros)
Description
This script will kill the process of the window that the script was run on.
Language
C#.net
Minimum Version
9.9+
Created By
Renan Gonçalves Micheletti
Contributors
-
Date Created
Feb 14, 2022
Date Last Modified
Feb 14, 2022
Scripted Function (Macro) Code
Copy
Select All
using System; using System.Drawing; using System.Diagnostics; public static class DisplayFusionFunction { public static void Run(IntPtr windowHandle) { uint processID = BFS.Application.GetAppIDByWindow(windowHandle); Process process = new Process(); process.StartInfo.FileName = "taskkill.exe"; process.StartInfo.Arguments = "/PID " + processID + " /f"; process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; process.StartInfo.CreateNoWindow = true; process.Start(); } }