Jump to content

Recommended Posts

Posted (edited)

;Glyph@Glacialwebs.com
;BlackHat Industries
;All Rights Reserved to their respected owners.
#include <GUIConstantsEx.au3>
GUICreate("ADZero v1.0", 200, 50)
$radio1 = GUICtrlCreateRadio("Show", 5, 5, 50, 20)
$radio2 = GUICtrlCreateRadio("Hide", 5, 25, 50, 20)
GUICtrlCreateLabel("Created by: Glyph" & @CRLF & "Glyph@GlacialWebs.com" & @CRLF & "~BHI", 60, 5, 125, 125)
GUISetState()
$v = WinGetState("NetZero", "")
If $v = 7 Then
    GUICtrlSetState($radio1, $GUI_CHECKED)
ElseIf $v = 5 Then
    GUICtrlSetState($radio2, $GUI_CHECKED)
EndIf
While 1
    $visible = WinGetState("NetZero", "")
    If @SEC = "01" Then _ReduceMemory()
    Sleep(1)
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $radio1 And BitAND(GUICtrlRead($radio1), $GUI_CHECKED) = $GUI_CHECKED
            If $visible = 7 Then
                MsgBox(0, "ADZero", "Window is already shown!", 3)
            Else
                WinSetState("NetZero", "", @SW_SHOW)
            EndIf
        Case $msg = $radio2 And BitAND(GUICtrlRead($radio2), $GUI_CHECKED) = $GUI_CHECKED
            If $visible = 5 Then
                MsgBox(0, "ADZero", "Window is already hidden!", 3)
            Else
                WinSetState("NetZero", "", @SW_HIDE)
            EndIf
    EndSelect
WEnd
Func _ReduceMemory()
    Sleep(1000)
    DllCall("psapi.dll", "int", "EmptyWorkingSet", "long", -1)
EndFunc   ;==>_ReduceMemory

Posted Image

Removes the little bar at the bottom (or top) of your desktop, added a GUI.

TODO:

!! :: Still looking into how to remove that empty space at the top (or bottom) after you hide the window.

Edited by Glyph

tolle indicium

Posted

This works pretty good! If I wasnt about to switch providers, I would probably have used this.

Ever think of sharing this with the world? I hear that Download.com loves this kindof thing...

Spoiler

 

"If a vegetarian eats vegetables,What the heck does a humanitarian eat?"

"I hear voices in my head, but I ignore them and continue on killing."

"You have forced me to raise the indifference warning to beige, it's a beige alert people. As with all beige alerts please prepare to think about the possibility of caring."

An optimist says that giving someone power DOESN'T immediately turn them into a sadist. A pessimist says that giving someone power doesn't IMMEDIATELY turn them into a sadist.

 

 
Posted

This works pretty good! If I wasnt about to switch providers, I would probably have used this.

Ever think of sharing this with the world? I hear that Download.com loves this kindof thing...

Ah, now I have! Thank you, for the compliment!

I don't plan on releasing it until I have the cell padding on the dekstop fixed. (there's a blank space where you cannot maximize)

Also, looking into adding support for active window hiding, after you play a game (DirectX) and exit the game [or alt-tab], the window comes back, which then requires you to re-hide it.

tolle indicium

Posted

You could have this running in the background. You could call it "Seek And Destroy Mode" and of course allow the user to enable/disable it when they want to.

Spoiler

 

"If a vegetarian eats vegetables,What the heck does a humanitarian eat?"

"I hear voices in my head, but I ignore them and continue on killing."

"You have forced me to raise the indifference warning to beige, it's a beige alert people. As with all beige alerts please prepare to think about the possibility of caring."

An optimist says that giving someone power DOESN'T immediately turn them into a sadist. A pessimist says that giving someone power doesn't IMMEDIATELY turn them into a sadist.

 

 

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
×
×
  • Create New...