Hallo, ich möchte per Hotkey zB. Prozess "xyz.exe" beenden.
Nur wie? :P
Hat jemand eine Idee?
Nur wie? :P
Hat jemand eine Idee?
HotKeySet("^+a", "_kill")
Func _kill()
If ProcessExists("explorer.exe") Then
ProcessClose("explorer.exe")
Else
Run("explorer.exe")
Endif
EndFunc
Hier wird aber die Anwendung gestartet, falls sie nicht an ist ...Quote:
Könntest du mit nem Autoitscript lösen.
aus nem andren Forum:
Code:HotKeySet("^+a", "_kill") Func _kill() If ProcessExists("explorer.exe") Then ProcessClose("explorer.exe") Else Run("explorer.exe") Endif EndFunc
#include <Misc.au3>
Local $hDLL = DllOpen("user32.dll")
If _IsPressed("79", $hDLL) Then ; 79 bedeutet in diesem falle die Taste F10
_kill
endif
Func _kill()
If ProcessExists("Processname") Then
ProcessClose("Processname")
Endif
EndFunc