AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Restart desktop (solved)

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Sam.



Joined: 14 Nov 2008
Posts: 78
Location: USA

PostPosted: Mon Dec 15, 2008 12:27 am    Post subject: Restart desktop (solved) Reply with quote

In one of my classes at school, my teacher uses LJ Create Workstation. It has a program that is placed into the startup. It closes the taskbar and removes the desktop (no desktop shortcut icons). This is designed to keep the students from messing with anything on the computer except a specified set of programs that are launched with a specific launch code prompt. This works fine except you could use the window key to open the start menu and still do anything on the computer that you wanted. So, I made an AutoHotkey script (and added it to the startup) that disables the windows keys and prevents the task manager from starting (which was being used to close my script). The only problem is that it is extremely difficult for my teacher or I to access other parts of the computer for maintenance or whatever. So solve this, I have started working on another script that will close my script and exit the LJ scripts. I think that
Code:
winactivate, ahk_class Shell_TrayWnd
will restart the taskbar right? My question is: how do I restart / relaunch / bring back the ordinary desktop with the desktop shortcuts?

Thanks in advance,
Sam.


Last edited by Sam. on Sun Feb 01, 2009 8:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
BoBo²
Guest





PostPosted: Mon Dec 15, 2008 1:14 am    Post subject: Reply with quote

Why not run those 'environments' using separate user profiles?
Back to top
Dra_Gon



Joined: 25 May 2007
Posts: 373

PostPosted: Mon Dec 15, 2008 1:19 am    Post subject: Reply with quote

Sounds like there might be a program in the computer's StartUp folder:

C:\Documents and Settings\"username"\Start Menu\Programs\Startup
OR
C:\Documents and Settings\All Users\Start Menu\Programs\Startup

Or possibly directly in the Registry {I can't recall right off hand what the Autostart entry would look like in Registry}.

Ciao,
Dra'Gon
_________________

For a good laugh {hopefully} >> megamatts.50megs.com

My WritersCafe profile>>
http://www.writerscafe.org/writers/BlueDragonFire/
Back to top
View user's profile Send private message Send e-mail
Sam.



Joined: 14 Nov 2008
Posts: 78
Location: USA

PostPosted: Mon Dec 15, 2008 2:00 am    Post subject: Reply with quote

I actually added my script directly to the registry with regedit.exe. Currently I can exit out of it by opening regedit.exe in a round about, sneaky way and corrupt my entry and then log off and then log back on and hold down the shift key while it is loading (which prevents the LJ stuff from loading), but that is rather inconvenient. I was hoping to exit and reset everything with another script that only the teacher and I have (maybe even require a password to run...) and not have to log off and back on. I only want to temporarily reset these and have them come back the next time anyone logs on. Running the explorer kind of works but only if you can find the path of every file and program you need....
Back to top
View user's profile Send private message
Guest






PostPosted: Mon Dec 15, 2008 4:54 am    Post subject: Reply with quote

Just add a password hotkey to undo the changes and close the AHK program. then you can run it again when you're finished

Code:

:*::passwrd::
{
;insert changes to show the desktop and icons here
ExitApp
}
[/code]
Back to top
Lexikos



Joined: 17 Oct 2006
Posts: 7295
Location: Australia

PostPosted: Mon Dec 15, 2008 11:35 am    Post subject: Re: Restart desktop Reply with quote

Quote:
So, I made an AutoHotkey script (and added it to the startup) that disables the windows keys
How? If by the simple method...
Code:
LWin::
RWin::
return
...the script should still be able to open the start menu:
Code:
Send {LWin}

Quote:
I think that
Code:
winactivate, ahk_class Shell_TrayWnd
will restart the taskbar right?
You could also try:
Code:
WinShow, ahk_class Shell_TrayWnd
WinShow, ahk_class Progman
Note that if these windows are simply hidden, double-clicking where the desktop was will show the start menu - at least, in Vista.
Quote:
My question is: how do I restart / relaunch / bring back the ordinary desktop with the desktop shortcuts?
Restarting explorer.exe is the most likely bet.
Back to top
View user's profile Send private message Visit poster's website
Dra_Gon



Joined: 25 May 2007
Posts: 373

PostPosted: Mon Dec 15, 2008 4:08 pm    Post subject: Reply with quote

Oh, I forgot to add some info above. Since your TaskManager is being asaulted, you could try a program called Current Processes. It's free at http://www.nirsoft.net/utils/cprocess.html .

I use this all the time since I'm always on public computers with no access to TaskManager. Come to think of it, I think I'll put this in the Utilities section too.

Ciao,
Dra'Gon
_________________

For a good laugh {hopefully} >> megamatts.50megs.com

My WritersCafe profile>>
http://www.writerscafe.org/writers/BlueDragonFire/
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group