Making an EXTREME VERSION of ALT F4!

  Рет қаралды 6,037

zyapguy

zyapguy

Күн бұрын

Пікірлер: 92
@zyapguy
@zyapguy 3 ай бұрын
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.
@sweetbabyalaska
@sweetbabyalaska 2 ай бұрын
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)
@2012knp
@2012knp 2 ай бұрын
@@sweetbabyalaska but you can just use xkill…
@artemis.nnnnnbbbbb
@artemis.nnnnnbbbbb 2 ай бұрын
does it work on Wayland?​@@sweetbabyalaska
@bacon.cheesecake
@bacon.cheesecake 2 ай бұрын
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.
@zyapguy
@zyapguy 2 ай бұрын
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.
@falconrider7032
@falconrider7032 2 ай бұрын
ctrl alt f4 on linux
@Largepepsibottle
@Largepepsibottle 2 ай бұрын
​​@@zyapguynaw that's not a oversight that's a feature tbh
@zyapguy
@zyapguy 2 ай бұрын
@@Largepepsibottle Process hitman would never discriminate between two processes 😂
@inxomnyaa
@inxomnyaa 2 ай бұрын
I'm using the crosshair shortcut because of that lol
@ShadowKestrel
@ShadowKestrel 2 ай бұрын
the more i learn about winapi the more i am thankful for the linux desktop ecosystem
@zai_ry11
@zai_ry11 2 ай бұрын
holy, thats so true 💀💀
@CPPenguin_
@CPPenguin_ 2 ай бұрын
-We need to terminate the process! -Well, we can use "taskkill" command. -Nah, that's too easy...
@zyapguy
@zyapguy 2 ай бұрын
The more painful the project is, the better it is :)
@no_name4796
@no_name4796 2 ай бұрын
is that the windows version of kill -9?
@CPPenguin_
@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_
@CPPenguin_ 2 ай бұрын
@@zyapguy , Indeed)
@CPPenguin_
@CPPenguin_ 2 ай бұрын
@@no_name4796 , +
@harleyspeedthrust4013
@harleyspeedthrust4013 2 ай бұрын
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
@RiwenX
@RiwenX 2 ай бұрын
"it's ugly but it's functional, like I guess story of my life" 😭😭
@FireDragon91245
@FireDragon91245 2 ай бұрын
finaly the legend the myth is back
@absints
@absints 2 ай бұрын
I've been using SuperF4 for a long time, it's just Ctrl + Alt + F4. It kills the process of the focused window
@zyapguy
@zyapguy 2 ай бұрын
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.
@thekaliss1
@thekaliss1 2 ай бұрын
that's actually super useful, thanks!
@zyapguy
@zyapguy 2 ай бұрын
No problem! I hope it's useful :)
@Cinarbayramic
@Cinarbayramic 2 ай бұрын
1:35 you could use makefile but that works fine too
@zyapguy
@zyapguy 2 ай бұрын
You're right. I should have probably used a makefile, but I was too "in the zone" at that point. 😂
@doggo_idk
@doggo_idk 2 ай бұрын
this is so cool, thank you mr becel doggo
@gorgestboi1028
@gorgestboi1028 2 ай бұрын
my boy uploaded lmao lets go
@EngineerNick
@EngineerNick 2 ай бұрын
If only windows accepted puil requests
@kenan2386
@kenan2386 2 ай бұрын
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 !
@ahmedAlkafi
@ahmedAlkafi 2 ай бұрын
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
@TheKodeToad
@TheKodeToad 2 ай бұрын
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.
@jkf114
@jkf114 2 ай бұрын
1:55 wtf is that code bro
@zyapguy
@zyapguy 2 ай бұрын
Don't ask. It's the only thing that worked, everything else fails to capture Alt F5 for some reason.
@celdaemon
@celdaemon 2 ай бұрын
That's actually a pretty reasonable way of doing this!
@siientbeeast13
@siientbeeast13 2 ай бұрын
2 minutes ago is crazy
@pro_gemer
@pro_gemer 2 ай бұрын
TempleOS doesn't have such issues
@lePirateMan
@lePirateMan 2 ай бұрын
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_
@DevDoge_ 2 ай бұрын
using winAPI for gui is mental illness. my condolences
@zyapguy
@zyapguy 2 ай бұрын
yep.....
@igorthelight
@igorthelight 2 ай бұрын
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_
@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++ ?)
@aintmetallic
@aintmetallic 2 ай бұрын
Awesome
@JoshuaF.
@JoshuaF. 2 ай бұрын
Finally
@nerdycatgamer
@nerdycatgamer 2 ай бұрын
look what they need to mimic a fraction of `pkill`
@zyapguy
@zyapguy 2 ай бұрын
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.
@nerdycatgamer
@nerdycatgamer 2 ай бұрын
@@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_name4796
@no_name4796 2 ай бұрын
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)
@HuntingKingYT
@HuntingKingYT 2 ай бұрын
Bro was learning to be a hitman, that’s why he wasn’t uploading
@zyapguy
@zyapguy 2 ай бұрын
Pretty much, yeah.
@MephistoDemon
@MephistoDemon 2 ай бұрын
Wait - but can you Alt+F5 Process Hitman itself??
@zyapguy
@zyapguy 2 ай бұрын
Yep. You sure can.
@no_name4796
@no_name4796 2 ай бұрын
@@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
@TheDoomerBlox
@TheDoomerBlox 2 ай бұрын
​@@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_Stickman09
@Blue_Stickman09 2 ай бұрын
Cool I Like it
@LordTails
@LordTails 2 ай бұрын
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.
@mjk134
@mjk134 2 ай бұрын
Both is crazy
@zyapguy
@zyapguy 2 ай бұрын
Hmm... Notepad is just too powerful I guess. It's a fun challenge, I highly recommend trying to recreate it.
@LordTails
@LordTails 2 ай бұрын
@@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.
@QWERTIOX
@QWERTIOX 2 ай бұрын
Sounds like thing you could get with few line script for autohotkey over a decade ago
@zyapguy
@zyapguy 2 ай бұрын
Tbf, probably
@hexxt_
@hexxt_ 2 ай бұрын
1990 aah way of developing software. couldnt be me not relying on 349342 dependency
@zyapguy
@zyapguy 2 ай бұрын
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.
@nerdg2
@nerdg2 2 ай бұрын
Damn, thats a unique idea. port it to linux too. its really useful
@zyapguy
@zyapguy 2 ай бұрын
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.
@nerdg2
@nerdg2 2 ай бұрын
@@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
@zyapguy
@zyapguy 2 ай бұрын
So uhh, someone actually ported it to linux.... idk if it was you or not, but its now available on linux..
@celdaemon
@celdaemon 2 ай бұрын
​@@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)
@thrax4111
@thrax4111 2 ай бұрын
Why would you use a low-level keyboard hook and use GetAsyncKeyState in it? That completely defeats the point of the hook...
@zyapguy
@zyapguy 2 ай бұрын
Good point. I have no idea.
@itsmenewbie03
@itsmenewbie03 2 ай бұрын
Is this kill -9?
@jimmlmao
@jimmlmao 2 ай бұрын
Laughs in i3wm
@iamtimsson
@iamtimsson 2 ай бұрын
am fan
@cdkw2
@cdkw2 2 ай бұрын
2025 is near
@subway_surfers5251
@subway_surfers5251 2 ай бұрын
I NEED IT
@thenameisluk
@thenameisluk 2 ай бұрын
true devs use linux :3
@LWLupus
@LWLupus 2 ай бұрын
Yep super alt F4 does not exist
@ImTheDot
@ImTheDot 2 ай бұрын
.
@zyapguy
@zyapguy 2 ай бұрын
.
@jultomten3739
@jultomten3739 2 ай бұрын
Im playing around with DLL loading and gosh I hate the Windows API, why could they just not use the NORAML UNIX API!
@wyvernallow
@wyvernallow 2 ай бұрын
nice pfp
@zyapguy
@zyapguy 2 ай бұрын
Nice pfp to you also. :)
I REMADE Flappy Bird in WINDOWS XP!
17:37
zyapguy
Рет қаралды 6 М.
Open Source vs. Proprietary Software
10:17
zyapguy
Рет қаралды 4,4 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
GAME ENGINES: A Dive-In
14:44
zyapguy
Рет қаралды 8 М.
What if all the world's biggest problems have the same solution?
24:52
Why Do People HATE JavaScript?
7:13
zyapguy
Рет қаралды 9 М.
Simple, Non-Commercial, Open Source Notes
30:25
By Default
Рет қаралды 907 М.
Homer - The Mystery Military Signal That Confused Everyone
12:21
Ringway Manchester
Рет қаралды 300 М.
The Real 100x Dev
52:32
ThePrimeTime
Рет қаралды 297 М.
Programmer Types People Hate
7:44
zyapguy
Рет қаралды 27 М.
Hacking This Terrible DRM
15:20
Nathan Baggs
Рет қаралды 131 М.
Making a font in the most complicated way
6:18
tEEvy gamez
Рет қаралды 24 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН