Jump to content



Photo

ADZero


  • Please log in to reply
3 replies to this topic

#1 Glyph

Glyph

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 807 posts

Posted 03 January 2009 - 11:00 AM

AutoIt         
;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, 03 January 2009 - 11:09 AM.






#2 Draygoes

Draygoes

    We nerds really do rule the earth!

  • Active Members
  • PipPipPipPipPipPip
  • 1,813 posts

Posted 04 January 2009 - 06:03 AM

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...
Posted Image"If a vegetarian eats vegetables,What the heck does a humanitarian eat?"

#3 Glyph

Glyph

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 807 posts

Posted 04 January 2009 - 08:26 AM

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.

#4 Draygoes

Draygoes

    We nerds really do rule the earth!

  • Active Members
  • PipPipPipPipPipPip
  • 1,813 posts

Posted 05 January 2009 - 07:19 AM

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.
Posted Image"If a vegetarian eats vegetables,What the heck does a humanitarian eat?"




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users