Jump to content

Hiding Taskbar


Recommended Posts

I searched before posting, but didn't find enough to help.

I have a script that minimizes all windows, takes a screenshot then saves it.

What I need now is a code that will make the taskbar completely hidden.

The point of this script is just a joke, load it on a friends computer while he's in the washroom or something, then when he comes back he'll think his desktop is frozen.

But I'm stuck now, if he has access to the taskbar then it makes this almost useless...

Any help would be appreciated. Thanks. :(

Link to comment
Share on other sites

I searched before posting, but didn't find enough to help.

I have a script that minimizes all windows, takes a screenshot then saves it.

What I need now is a code that will make the taskbar completely hidden.

The point of this script is just a joke, load it on a friends computer while he's in the washroom or something, then when he comes back he'll think his desktop is frozen.

But I'm stuck now, if he has access to the taskbar then it makes this almost useless...

Any help would be appreciated.  Thanks. :(

<{POST_SNAPBACK}>

can't you just hide the taskbar in the taskbar settings?
Link to comment
Share on other sites

I don't like using AutoIt for jokes like this, but it might be far easier to do the same thing with code like this.

sleep(2000)
Dim $pos,$pos2
$pos = MouseGetPos()
while 1
$pos2 = MouseGetPos()
if $pos2[0]<>$pos[0] or $pos2[1]<>$pos[1] then exitloop
wend

BlockInput ( 1)
sleep(1000*30); 30 seconds
BlockInput ( 0)

msgbox(1,"gotcha","")

Basically in 2 seconds it is armed, and if you move the mouse at all after that point, it locks mouse and keyboard for 30 seconds.

As far as a hint on how to do the other part, just disable the control of the taskbar.

AutoIt3, the MACGYVER Pocket Knife for computers.

Link to comment
Share on other sites

That's pretty funny too. :(

I'm a AutoIt newb, I just started last night, could you point me into the right direction to disallow control of taskbar? I was thinking just disable the left click, but they'd still see that glow when they hover over an open window.

Thank you. :(

Link to comment
Share on other sites

check out the help file:

hint:

ControlDisable

--------------------------------------------------------------------------------

Disables or "grays-out" a control.

This and ControlEnable are very fun to play with. You can do all sorts of fairly harmless fun. It will reset back when you reopen those applications.

Find the controlID or names with the spy and have some fun. Works when in programs as well, say disable toolbars and such.

AutoIt3, the MACGYVER Pocket Knife for computers.

Link to comment
Share on other sites

check out the help file:

hint:

ControlDisable

--------------------------------------------------------------------------------

Disables or "grays-out" a control.

This and ControlEnable are very fun to play with. You can do all sorts of fairly harmless fun. It will reset back when you reopen those applications.

Find the controlID or names with the spy and have some fun. Works when in programs as well, say disable toolbars and such.

<{POST_SNAPBACK}>

Thank you :(

I'll post my results. :(

Link to comment
Share on other sites

ControlDisable( "", "Start", 304); Start is a picture of the word, not an actual word
ControlDisable( "", "PM", 304); for afternoon
ControlDisable( "", "AM", 304); for mornings

You can get the PID if the clock isn't displayed.

You can only call out text that is picked up in the spy, you will not see the word Start in the spy.

You might also try out hiding the control, kinda funny to see the Start button disapear.

Controlhide( "", "PM", 304)

Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Link to comment
Share on other sites

ControlDisable( "", "Start", 304); Start is a picture of the word, not an actual word
ControlDisable( "", "PM", 304); for afternoon
ControlDisable( "", "AM", 304); for mornings

You can get the PID if the clock isn't displayed.

You can only call out text that is picked up in the spy, you will not see the word Start in the spy.

You might also try out hiding the control, kinda funny to see the Start button disapear.

Controlhide( "", "PM", 304)

<{POST_SNAPBACK}>

I'm not really sure on how to use the window info program, I don't know what information I'm looking for and I don't know how to use it once I've found it.

How would I get it to hide everything on the task bar, then the empty task bar itself?

All help appreciated! I used the code and hid the start button, was pretty cool. :(

EDIT : Haha! I got it!

ControlDisable( "", "PM", 304); for afternoon

ControlDisable( "", "AM", 304); for mornings

ControlDisable( "", "PM", 40965); for afternoon

ControlDisable( "", "AM", 40965); for mornings

ControlDisable( "", "PM", 1502); for afternoon

ControlDisable( "", "AM", 1502); for mornings

ControlDisable( "", "PM", 303); for afternoon

ControlDisable( "", "AM", 303); for mornings

*Laugh

So much fun. Thanks everyone. :(

Edited by AreS
Link to comment
Share on other sites

If computer is running Windows 2000 or XP, you can try:

Opt("WinTitleMatchMode", 4);advanced
WinSetTrans("classname=Shell_TrayWnd", "", 0);INVISIBLE
sleep(2000)
WinSetTrans("classname=Shell_TrayWnd", "", 255);Normal
Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
Share on other sites

I was thinking it'd be alot easier and quicker to just disable the desktop and taskbar, instead of screenshotting, saving, changing wallpaper, etc. The controlID for the desktop is "1", but I can't disable it the same way the taskbar was disabled. Is it even possible?

Link to comment
Share on other sites

Try this:

Opt('WinTitleMatchMode', 4)

WinSetState('classname=Shell_TrayWnd', '', @SW_DISABLE)
WinSetState('classname=Progman', '', @SW_DISABLE)

Sleep(5000)

WinSetState('classname=Shell_TrayWnd', '', @SW_ENABLE)
WinSetState('classname=Progman', '', @SW_ENABLE)

Will disable the taskbar and desktop for 5 seconds, then re-enable both.

Edited by Saunders
Link to comment
Share on other sites

Nah, go for it. I've never had anybody express an undying love for me before. Just don't be getting on physical in your expression unless you're a member of the fairer gender.  :(

<{POST_SNAPBACK}>

Haha! :(

Thanks so much :) It does everything I need it to in only a few lines of code! :P!

Now I need to disable some keys and set a hotkey to start/stop it. :

Is it possible to disable the ctrl+alt+delete combo? If I disabled just one of those keys, would it render ctrl+alt+delete useless?

Link to comment
Share on other sites

Hm...I can't figure it out. :(

HotKeySet("{ESC}", "Terminate")

Opt('WinTitleMatchMode', 4)

WinSetState('classname=Shell_TrayWnd', '', @SW_DISABLE)
WinSetState('classname=Progman', '', @SW_DISABLE)

Func Terminate()
WinSetState('classname=Shell_TrayWnd', '', @SW_ENABLE)
WinSetState('classname=Progman', '', @SW_ENABLE)
EndFunc

Does that make any sense at all...?

Link to comment
Share on other sites

you just need a loop otherwise your program just ends with it disabled :(

HotKeySet("{ESC}", "Terminate")

opt('WinTitleMatchMode', 4)

WinSetState('classname=Shell_TrayWnd', '', @SW_DISABLE)
WinSetState('classname=Progman', '', @SW_DISABLE)

While 1
    Sleep(10)
WEnd

Func Terminate()
    WinSetState('classname=Shell_TrayWnd', '', @SW_ENABLE)
    WinSetState('classname=Progman', '', @SW_ENABLE)
EndFunc  ;==>Terminate
AutoIt3 online docs Use it... Know it... Live it...MSDN libraryglobal Help and SupportWindows: Just another pane in the glass.
Link to comment
Share on other sites

you just need a loop otherwise your program just ends with it disabled :(

HotKeySet("{ESC}", "Terminate")

opt('WinTitleMatchMode', 4)

WinSetState('classname=Shell_TrayWnd', '', @SW_DISABLE)
WinSetState('classname=Progman', '', @SW_DISABLE)

While 1
    Sleep(10)
WEnd

Func Terminate()
    WinSetState('classname=Shell_TrayWnd', '', @SW_ENABLE)
    WinSetState('classname=Progman', '', @SW_ENABLE)
EndFunc ;==>Terminate

<{POST_SNAPBACK}>

Oh! I saw that in the example but I thought it was just some filler. Thank you :

Now, how can I disable every key except Ctrl+Shift+X

:(

Link to comment
Share on other sites

Oh!  I saw that in the example but I thought it was just some filler.  Thank you :(

Now, how can I disable every key except Ctrl+Shift+X

:(

<{POST_SNAPBACK}>

Hm...in order for this to get the full effect, I need to disable the taskmanager. :
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...