Sign in to follow this  
Followers 0
AreS

Hiding Taskbar

26 posts in this topic

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. :(

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

can't you just hide the taskbar in the taskbar settings?

<{POST_SNAPBACK}>

But if they moved the cursor to the bottom of the screen, it'd come back. :(

Share this post


Link to post
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.

Share this post


Link to post
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. :(

Share this post


Link to post
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.

Share this post


Link to post
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. :(

Share this post


Link to post
Share on other sites

I tried

ControlDisable( "", "Start", 304)

But it didn't do anything. What am I missing?

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

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.

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#11 ·  Posted

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!

Share this post


Link to post
Share on other sites

#12 ·  Posted

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?

Share this post


Link to post
Share on other sites

#13 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#14 ·  Posted

Would it be wrong of me to express my undying love for you?

Share this post


Link to post
Share on other sites

#15 ·  Posted

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. :(

Share this post


Link to post
Share on other sites

#16 ·  Posted

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?

Share this post


Link to post
Share on other sites

#17 ·  Posted

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...?

Share this post


Link to post
Share on other sites

#18 ·  Posted

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.

Share this post


Link to post
Share on other sites

#19 ·  Posted

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

:(

Share this post


Link to post
Share on other sites

#20 ·  Posted

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. :

Share this post


Link to post
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
Sign in to follow this  
Followers 0