Paulie Posted April 21, 2006 Share Posted April 21, 2006 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 More sharing options...
spyrorocks Posted April 21, 2006 Share Posted April 21, 2006 ;start of your script processclose("explorer.exe") ;end of your script run("explorer.exe") that will get rid of the taskbar, until the end of your script. [center] My Projects: Online AutoIt Compiler - AutoForum - AutoGuestbook - AutoIt Web-based Auto Installer - Pure AutoIt Zipping Functions - ConfuseGen - MindReader - P2PChat[/center] Link to comment Share on other sites More sharing options...
Paulie Posted April 21, 2006 Author Share Posted April 21, 2006 (edited) 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 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 April 21, 2006 by Paulie Link to comment Share on other sites More sharing options...
Paulie Posted April 21, 2006 Author Share Posted April 21, 2006 Bump... :"> Link to comment Share on other sites More sharing options...
NightGaunt Posted April 21, 2006 Share Posted April 21, 2006 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 More sharing options...
J_Kay Posted April 21, 2006 Share Posted April 21, 2006 If this helps at all, holding down the windows key and pressing M will minimize everything on the screen. That might help or it might not. Just thought I'd throw that out..... Link to comment Share on other sites More sharing options...
Paulie Posted April 21, 2006 Author Share Posted April 21, 2006 Opt ("WinTitleMatchMode", 4)Winsetstate("classname=Shell_TrayWnd","",@SW_HIDE)Sleep (5000)Winsetstate("classname=Shell_TrayWnd","",@SW_Show)OMG i cant believe i forgot that. well thank you i feel like such an idiot Link to comment Share on other sites More sharing options...
spyrorocks Posted April 21, 2006 Share Posted April 21, 2006 OK, i may be a little bit late, but here is the BEST way to do it... expandcollapse popupWinMinimizeAll() 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. [center] My Projects: Online AutoIt Compiler - AutoForum - AutoGuestbook - AutoIt Web-based Auto Installer - Pure AutoIt Zipping Functions - ConfuseGen - MindReader - P2PChat[/center] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now