Hey,
I want to quit an executabel with an internal “Button” - like a”quit” in a menue of a game or similar applications.
The hitbox is clear but the order to close the Application-Window without Alt-F4 or the window-close-X ….not.
Node recommendations?
Thx
Hey,
You can get the PID of the current process and kill it with the Kill node :
You can paste the following XML snippet in your patch to get these nodes :
Snippet
<?xml version="1.0" encoding="utf-16"?>
<Patch xmlns:p="property" xmlns:r="reflection" Id="EteILvY9BHUNwzcom7EtgG" MergeId="5">
<Canvas Id="MfGXMf8qKhKM8fykccEmCi" MergeId="4" CanvasType="Group">
<Node Bounds="448,220,31,19" Id="KY9birUie1nPcH768j6b07">
<p:NodeReference LastCategoryFullName="System.Application" LastDependency="VL.CoreLib.vl">
<Choice Kind="NodeFlag" Name="Node" Fixed="true" />
<CategoryReference Kind="Category" Name="Application" NeedsToBeDirectParent="true">
<p:OuterCategoryReference Kind="Category" Name="System" NeedsToBeDirectParent="true" />
</CategoryReference>
<Choice Kind="ProcessAppFlag" Name="PID" />
</p:NodeReference>
<Pin Id="IYm4VL8zZYOL5rbgZ5ol6y" Name="Id" Kind="OutputPin" />
<Pin Id="UJy4MYHLSYULXrtiVWQrss" Name="Node Context" Kind="InputPin" IsHidden="true" />
</Node>
<Node Bounds="448,290,31,19" Id="BzIM2FxMDPFLMQmSddpz7p">
<p:NodeReference LastCategoryFullName="System" LastDependency="VL.CoreLib.vl">
<Choice Kind="NodeFlag" Name="Node" Fixed="true" />
<Choice Kind="OperationCallFlag" Name="Kill" />
</p:NodeReference>
<Pin Id="JnbPAZx3glbLGOruq6cuzw" Name="Process Id" Kind="InputPin" />
<Pin Id="MB0TXkM59CeN2Jve78qhud" Name="Execute" Kind="InputPin" />
</Node>
<Pad Id="QgqrqpgJbeFMpcDClmJMUy" Comment="Execute" Bounds="476,270,35,15" ShowValueBox="true" isIOBox="true" Value="False">
<p:TypeAnnotation LastCategoryFullName="Primitive" LastDependency="VL.CoreLib.vl">
<Choice Kind="ImmutableTypeFlag" Name="Boolean" />
</p:TypeAnnotation>
<p:ValueBoxSettings>
<p:buttonmode p:Assembly="VL.UI.Forms" p:Type="VL.HDE.PatchEditor.Editors.ButtonModeEnum">Bang</p:buttonmode>
</p:ValueBoxSettings>
</Pad>
</Canvas>
<Link Id="Nm0YP0DQ9vAO8OqOfzG6XD" Ids="QgqrqpgJbeFMpcDClmJMUy,MB0TXkM59CeN2Jve78qhud" />
<Link Id="LERu8tjQI6HMtgNC29WzX1" Ids="IYm4VL8zZYOL5rbgZ5ol6y,JnbPAZx3glbLGOruq6cuzw" />
<NugetDependency Id="Njx0oi6X9bfNM0gKz474Qr" Location="VL.CoreLib" Version="2025.7.1-0132-g535d266972" />
</Patch>
1 Like
Exactly that! Thank you sebescudie.