Jump to content

Minimize All


Recommended Posts

How would you go about hiding everything except the desktop image, I have this, (taken from another script)

WinMinimizeAll()
WinSetState("Classname=Shell_TrayWnd", "", @SW_HIDE)
WinSetState("Program Manager", "", @SW_HIDE)

But it leaves the taskbar at the bottom, how do i get rid of that?

Link to comment
Share on other sites

that will get rid of the taskbar, until the end of your script.

Close but no cigar,

it sorta worked for a sec, but it immediatly ran explorer and only worked for a second

Heres the program im writing if somone wants to tweak a little(or a lot) :(

Its just a phoney joke thing to make someone thing theres something goining on with their Computer :think:

WinMinimizeAll()
WinSetState("Classname=Shell_TrayWnd", "", @SW_HIDE)
WinSetState("Program Manager", "", @SW_HIDE)
;*******************************************
$answer1 = Msgbox (48, "Begining Dump of Physical Memory", "Error #1143396- A critical error has occured. Wiping physical memory")
    If $answer1=1 Then
Blockinput(1)
ProgressOn("Physical Memory Dump","Dumping Physical Memory...","Dumping...")

For $i = 10 to 100 step 1
    sleep(1000)
    ProgressSet( $i, $i & " %")
Next
    Blockinput(0)
    ProgressSet(100 , "Done", "Complete")
    sleep(500)
    ProgressOff()
    MsgBox(0, "Dump Complete", "Dump Completed, all files restored")
    Sleep(10000)
    WinMinimizeAllUndo()
    WinSetState("Classname=Shell_TrayWnd", "", @SW_SHOW)
    WinSetState("Program Manager", "", @SW_SHOW)
    Else
Msgbox (0, "One button only?"," How the hell did this happen?")
WinMinimizeAllUndo()
WinSetState("Classname=Shell_TrayWnd", "", @SW_SHOW)
WinSetState("Program Manager", "", @SW_SHOW)
endIf

I sorta overcomplicated it with the answer thing but it doesn't matter really

I need help closing the Taskbar! with something involving "@SW_SHOW"-"@SW_HIDE"

TY

Edited by Paulie
Link to comment
Share on other sites

I think you are just missing 1 tiny piece.

Opt ("WinTitleMatchMode", 4) 

Winsetstate("classname=Shell_TrayWnd","",@SW_HIDE)
Sleep (5000)
Winsetstate("classname=Shell_TrayWnd","",@SW_Show)

I do believe setting that option will be all you need for your script to function.

"I have discovered that all human evil comes from this, man's being unable to sit still in a room. " - Blaise Pascal
Link to comment
Share on other sites

Opt ("WinTitleMatchMode", 4)

Winsetstate("classname=Shell_TrayWnd","",@SW_HIDE)

Sleep (5000)

Winsetstate("classname=Shell_TrayWnd","",@SW_Show)

OMG i cant believe i forgot that. :think:

well thank you i feel like such an idiot

Link to comment
Share on other sites

OK, i may be a little bit late, but here is the BEST way to do it...

WinMinimizeAll()
AdlibEnable ("taskbar")
WinSetState("Program Manager", "", @SW_HIDE)
;*******************************************
$answer1 = Msgbox (48, "Begining Dump of Physical Memory", "Error #1143396- A critical error has occured. Wiping physical memory")
    If $answer1=1 Then
Blockinput(1)
ProgressOn("Physical Memory Dump","Dumping Physical Memory...","Dumping...")

For $i = 10 to 100 step 1
    sleep(1000)
    ProgressSet( $i, $i & " %")
Next
    Blockinput(0)
    ProgressSet(100 , "Done", "Complete")
    sleep(500)
    ProgressOff()
    MsgBox(0, "Dump Complete", "Dump Completed, all files restored")
    Sleep(10000)
    WinMinimizeAllUndo()
    start()
    WinSetState("Program Manager", "", @SW_SHOW)
    Else
Msgbox (0, "One button only?"," How the hell did this happen?")
WinMinimizeAllUndo()
start()
WinSetState("Program Manager", "", @SW_SHOW)
endIf

func taskbar()
if ProcessExists ("explorer.exe") then
ProcessClose ( "explorer.exe" )
endif
endfunc

func start()
AdlibDisable ( )
run("explorer.exe")
endfunc

That way, there is NO recovery. The person can not possably recover from that while the script is running. :think:

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...