EDIT: Process Hitman has been ported to linux by @ ShiralynDev on GitHub. Everyday I am shocked even more at how skillful this community is. I said 20 years in the video as a joke thing, because I've pretty much been using computers ever since I was born, but to clarify, as some people thought I was being serious. I've had the problem in the vid for around 14-15 years, rather than 20.
@sweetbabyalaska2 ай бұрын
for those that are curious, the Linux version uses GTK as the GUI and X11 to get the active PID of the current window and then calls Posix C "kill" on it. (not the author, just wanted to know)
@2012knp2 ай бұрын
@@sweetbabyalaska but you can just use xkill…
@artemis.nnnnnbbbbb2 ай бұрын
does it work on Wayland?@@sweetbabyalaska
@bacon.cheesecake2 ай бұрын
I used to use superf4, which achieved the same thing with ctrl+alt+f4, it was so effective that if there wasn't a program in the foreground, it would nuke the desktop and leave you with whatever programs you had open floating in a dark void. It was great.
@zyapguy2 ай бұрын
Process Hitman also does that. I guess its something we both overlooked 😅. Super F4 is great, I tried using it for a while before deciding to make my own.
@falconrider70322 ай бұрын
ctrl alt f4 on linux
@Largepepsibottle2 ай бұрын
@@zyapguynaw that's not a oversight that's a feature tbh
@zyapguy2 ай бұрын
@@Largepepsibottle Process hitman would never discriminate between two processes 😂
@inxomnyaa2 ай бұрын
I'm using the crosshair shortcut because of that lol
@ShadowKestrel2 ай бұрын
the more i learn about winapi the more i am thankful for the linux desktop ecosystem
@zai_ry112 ай бұрын
holy, thats so true 💀💀
@CPPenguin_2 ай бұрын
-We need to terminate the process! -Well, we can use "taskkill" command. -Nah, that's too easy...
@zyapguy2 ай бұрын
The more painful the project is, the better it is :)
@no_name47962 ай бұрын
is that the windows version of kill -9?
@CPPenguin_2 ай бұрын
@@no_name4796 The taskkill command allows a user running on any version of Microsoft Windows starting with XP to "kill" a task from the Windows command line by PID (process ID) or image name. This command is similar to completing a program task in Windows. To complete the process by name, you need: taskkill /IM {PROCESS_NAME} /F /T To see all the processes: tasklist. And you need to open the command prompt as an administrator. In short, like yes.
@CPPenguin_2 ай бұрын
@@zyapguy , Indeed)
@CPPenguin_2 ай бұрын
@@no_name4796 , +
@harleyspeedthrust40132 ай бұрын
This is cool. I remember using that low level keyboard event several years ago to write a keylogger (don't worry, I didn't distribute it, although the code is public). I sent the keylogger in when I applied for my first internship, and I got the internship - so that stupid little keylogger helped me get my first job. Thanks Win32 API
@RiwenX2 ай бұрын
"it's ugly but it's functional, like I guess story of my life" 😭😭
@FireDragon912452 ай бұрын
finaly the legend the myth is back
@absints2 ай бұрын
I've been using SuperF4 for a long time, it's just Ctrl + Alt + F4. It kills the process of the focused window
@zyapguy2 ай бұрын
That was one of the solutions I've seen also! I really liked it, but the challenge of making my own was too good to ignore. Also Alt F5 feels more fluid to me. They both work the same way I think.
@thekaliss12 ай бұрын
that's actually super useful, thanks!
@zyapguy2 ай бұрын
No problem! I hope it's useful :)
@Cinarbayramic2 ай бұрын
1:35 you could use makefile but that works fine too
@zyapguy2 ай бұрын
You're right. I should have probably used a makefile, but I was too "in the zone" at that point. 😂
@doggo_idk2 ай бұрын
this is so cool, thank you mr becel doggo
@gorgestboi10282 ай бұрын
my boy uploaded lmao lets go
@EngineerNick2 ай бұрын
If only windows accepted puil requests
@kenan23862 ай бұрын
I love self induced agony with WinAPI! They said they will send me to a beautiful white padded room where all function calls work ever so happily !
@ahmedAlkafi2 ай бұрын
Windows 11 already has a kill process you just have to enable it and right click on icon and click kill process no need for task manager, great work tho
@TheKodeToad2 ай бұрын
The GitHub repo name reads a bit like "Process Shitman" if you read it a little quick. Also, I wonder if a Linux wayland and macos version would be possible.
@jkf1142 ай бұрын
1:55 wtf is that code bro
@zyapguy2 ай бұрын
Don't ask. It's the only thing that worked, everything else fails to capture Alt F5 for some reason.
@celdaemon2 ай бұрын
That's actually a pretty reasonable way of doing this!
@siientbeeast132 ай бұрын
2 minutes ago is crazy
@pro_gemer2 ай бұрын
TempleOS doesn't have such issues
@lePirateMan2 ай бұрын
Im pretty sure this is built in in the windowmanager I use (spectrwm). I press alt+x to close something, if that doesnt work i use alt+shift+x
@DevDoge_2 ай бұрын
using winAPI for gui is mental illness. my condolences
@zyapguy2 ай бұрын
yep.....
@igorthelight2 ай бұрын
It has a big PLUS: your program wouldn't be 30+ Mb in size ;-) You could write it in C# and your program would be pretty small, but it would start CLR and waste more memory. You could still use C# and compile your program as a binary, but then it would have the whole freaking Garbage Collector with it! Still smaller that a qt application tho xD
@DevDoge_2 ай бұрын
@igorthelight good point. I'm pretty sure though that there are probably easy to use libraries that don't take up too much space (i'm not too familliar but maybe U++ ?)
@aintmetallic2 ай бұрын
Awesome
@JoshuaF.2 ай бұрын
Finally
@nerdycatgamer2 ай бұрын
look what they need to mimic a fraction of `pkill`
@zyapguy2 ай бұрын
The main issue with pkill, taskkill etc. is the fact that you have to have your terminal open. If you're playing an old game for example, it might get stuck, and a terminal might not be accessible. But for any other thing, I guess taskkill and pkill are enough.
@nerdycatgamer2 ай бұрын
@@zyapguy unless the program is specifically checking if the output device is a terminal (which is typically a smell. looking at you, modern `ls` implementations), then __no program__ ___needs___ a terminal open to do _anything_. you can easily just have a keybind set to spawn `pkill` for a target process (selecting that process is a bit more complicated, it can still be done without much effort), and if your windowing system/display server is frozen/failing/etc, you can jump to a different TTY and execute the command (in this case, I think it would just be a hard crash for windows because the windowing system is tightly coupled with the kernel). and none of this addresses the fact that you can just kill the process with task manager.
@no_name47962 ай бұрын
2:03 "it's surprisingly hard to detect alt+f5" this man can complain because he never used linux. (basically there is not yet a way to capture key presses if the window doing that isn't focused)
@HuntingKingYT2 ай бұрын
Bro was learning to be a hitman, that’s why he wasn’t uploading
@zyapguy2 ай бұрын
Pretty much, yeah.
@MephistoDemon2 ай бұрын
Wait - but can you Alt+F5 Process Hitman itself??
@zyapguy2 ай бұрын
Yep. You sure can.
@no_name47962 ай бұрын
@@zyapguy should have made an easter egg, where Process Hitman doesn't close with alt+f5 but only closes with alt+f4. Just to troll people, because trolling is fun
@TheDoomerBlox2 ай бұрын
@@no_name4796 Why close with alt+f4, when you could instead artificially hang the process? So that you will need to alt+f5 it.. OH WAIT, YOU CAN'T?? should have read the fine print
@Blue_Stickman092 ай бұрын
Cool I Like it
@LordTails2 ай бұрын
Already tried it out and love it for its simplicity and effectiveness. Strangely only notepad.exe was left standing and I am not sure why (not that I've ever had an issue with it). The sadistic part of me wants to try recreating this in Rust and Python.
@mjk1342 ай бұрын
Both is crazy
@zyapguy2 ай бұрын
Hmm... Notepad is just too powerful I guess. It's a fun challenge, I highly recommend trying to recreate it.
@LordTails2 ай бұрын
@@zyapguy challenge accepted...if I remember. Too many projects, so little time XD Update to my previous comment: Tried again with Notepad and it worked. May be a user error or a quirk.
@QWERTIOX2 ай бұрын
Sounds like thing you could get with few line script for autohotkey over a decade ago
@zyapguy2 ай бұрын
Tbf, probably
@hexxt_2 ай бұрын
1990 aah way of developing software. couldnt be me not relying on 349342 dependency
@zyapguy2 ай бұрын
My other projects rely on cmake, ide-dependencies, weird linking of static and dynamic libs, so I wanted something that'll only have a single cpp file.
@nerdg22 ай бұрын
Damn, thats a unique idea. port it to linux too. its really useful
@zyapguy2 ай бұрын
I built the whole thing using the windows api, so I would probably have to rewrite the whole thing rather than porting it, but could be a fun project.
@nerdg22 ай бұрын
@@zyapguy Yeah, it might get really tricky too, i mean i use hyprland WM, Their is plenty more for Linux. It should be a really interesting one, i'm more than happy to contribute
@zyapguy2 ай бұрын
So uhh, someone actually ported it to linux.... idk if it was you or not, but its now available on linux..
@celdaemon2 ай бұрын
@@zyapguyIt's specifically ported to X11, so you can't use it with programs running on Wayland (not like global shortcuts work there yet anyway)
@thrax41112 ай бұрын
Why would you use a low-level keyboard hook and use GetAsyncKeyState in it? That completely defeats the point of the hook...
@zyapguy2 ай бұрын
Good point. I have no idea.
@itsmenewbie032 ай бұрын
Is this kill -9?
@jimmlmao2 ай бұрын
Laughs in i3wm
@iamtimsson2 ай бұрын
am fan
@cdkw22 ай бұрын
2025 is near
@subway_surfers52512 ай бұрын
I NEED IT
@thenameisluk2 ай бұрын
true devs use linux :3
@LWLupus2 ай бұрын
Yep super alt F4 does not exist
@ImTheDot2 ай бұрын
.
@zyapguy2 ай бұрын
.
@jultomten37392 ай бұрын
Im playing around with DLL loading and gosh I hate the Windows API, why could they just not use the NORAML UNIX API!