Hack Forums
Script or Program to close a Windows box message automatically - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4)
+---- Thread: Script or Program to close a Windows box message automatically (/showthread.php?tid=6251426)



Script or Program to close a Windows box message automatically - aerohacker - Sep 11, 2023

I'm using a software that expired after 30 days but that continues to work perfectly, the "problem" is that when Windows starts the software displays two Windows messages: One warning that the program has expired and another for me to put the serial code, I close both and the windows don't displays anymore.

Is there a script or software that detect and close these messages automatically when Windows starts?


RE: Script or Program to close a Windows box message automatically - Tentco - Sep 11, 2023

You can use EnumWindowsProc to get the window handle and close all of them using SendMessage when your computer starts.

EnumWindowsProc = https://learn.microsoft.com/en-us/previous-versions/windows/desktop/legacy/ms633498(v=vs.85)
SendMessage = https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-sendmessage


RE: Script or Program to close a Windows box message automatically - h150 - Sep 12, 2023

You can use ps/bat/vbs/pu script that runs on startup and kills off these message boxes


RE: Script or Program to close a Windows box message automatically - aerohacker - Sep 15, 2023

(Sep 12, 2023 11:20 AM)h150 Wrote:  You can use ps/bat/vbs/pu script that runs on startup and kills off these message boxes

What would be the code to do that?

I don't want to kill the program process because that would terminate the program too, I just want a way to autoclick or close the messages automatically when Windows starts.


RE: Script or Program to close a Windows box message automatically - Dreamviossh - Sep 15, 2023

(Sep 15, 2023 12:00 PM)aerohacker Wrote:  What would be the code to do that?

I don't want to kill the program process because that would terminate the program too, I just want a way to autoclick or close the messages automatically when Windows starts.

Need the loadstring bat to complete this message me