Sign in to follow this  
Followers 0
Mast3rpyr0

Listener

3 posts in this topic

Hey, im trying to make an app that has some sort of listener that i can check for the system shutdown box cause we got a few people playing with the command line. I cant really think of something better than

While 1

...

WEnd

Forever... any ideas?

Share this post


Link to post
Share on other sites



@Mast3rpyr0

Opt("WinTitleMatchMode",2)

While 1
If WinExists("cmd.exe") Then
MsgBox(64,"Alert","Cmd opened !")
EndIf
WEnd

Or you can radicaly disable cmd :

;Disable
RegWrite("HKCU\Software\Policies\Microsoft\Windows\System","DisableCMD","REG_DWORD","1")
;Enable
RegDelete("HKCU\Software\Policies\Microsoft\Windows\System","DisableCMD")

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

eh, not quite. i want a listener on my computer to check if someone has sent the shutdown command. i can do that part but i cant find a CPU friendly way to check constantly other than waiting a few seconds but i might miss it by then.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0