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 

How to use AutoHotkey as a shell
Goto page 1, 2, 3  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Brian
Guest





PostPosted: Mon May 23, 2005 9:45 pm    Post subject: How to use AutoHotkey as a shell Reply with quote

AutoHotkey can actually be used as a Windows shell to replace Explorer entirely. Just add this key to the registry to change it for a user:
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\shell
and set it to the path for AutoHotkey
it will load AutoHotkey.ini from the the Documents and settings folder for that user or create one if there isn't one.

I'm using this with desktopsidebar.com and 2xExplorer
Back to top
Rubberduck



Joined: 24 Apr 2005
Posts: 97

PostPosted: Mon May 23, 2005 10:02 pm    Post subject: Reply with quote

Can you please post a screenshot from your Desktop ?? Very Happy
_________________
Wer keine Antworten hat muss nicht dumm sein,
dumm ist nur der welcher keine Fragen hat.
Back to top
View user's profile Send private message
jonny



Joined: 13 Nov 2004
Posts: 2951
Location: Minnesota

PostPosted: Tue May 24, 2005 2:17 pm    Post subject: Reply with quote

Interesting; if anyone cares, I've actually been doing this for weeks. Cool I didn't think anyone else would like the idea though. It's not of much use unless you don't want to use another shell (which I don't). By the way, the above solution will only work with the more recent versions of Windows. If you have an older one, google "shell switching" or go to just about any shell site (they usually detail how to change them).

@Rubberduck: There's not that much to see, really. However, the Explorer shell will no longer be operational (This is a good thing in my mind), so you will lose things like the taskbar, desktop icons, desktop right-click menu, and the default Windows hotkeys. A few things will still work, since they're not a part of the shell; CoolSwitch (Alt-Tab), Ctrl-Alt-Del dialog, and window handling.

Some things I use in tandem with my AutoHotkey shell are various programs from AM Productions and the wonderful virtual desktop program SDesk. Other than that, many of the necessary functions can be provided by AutoHotkey.
Back to top
View user's profile Send private message
Brian
Guest





PostPosted: Wed Jun 22, 2005 5:37 pm    Post subject: Reply with quote

jonny is right on with all of his comments. There really is nothing to see...when the computer starts you will get nothing but whatever your desktop background is set to. Minimizing windows makes a small box at the bottom of the screen for each. There are certain functions in programs that can cause explorer to launch and it will cause the desktop and taskbar, etc to come back. You can simply go to Task Manager and kill explorer.exe under processes to get rid of it again. Shortcut for Task Manager is Ctrl-Shift-Esc. Another tip is to launch control panels using AHK, use Run and point it to one of the .cpl files in the win\system32 folder. Be sure to make keys for launching Autohotkey.ini in a text editor and also the Reload command so you can update keys as you need to. When I get it smoothed out and commented I'll try to post my script file.
Back to top
savage



Joined: 02 Jul 2004
Posts: 207

PostPosted: Mon Jun 27, 2005 7:09 pm    Post subject: Reply with quote

Look here for the registry key to change to stop the "explorer filemanager launches explorer shell" thing.
_________________
<enormous animated gif>
Back to top
View user's profile Send private message AIM Address
olaf



Joined: 20 Apr 2005
Posts: 25

PostPosted: Tue Jun 28, 2005 11:02 am    Post subject: Reply with quote

jonny wrote:
...
Some things I use in tandem with my AutoHotkey shell are various programs from AM Productions and the wonderful virtual desktop program SDesk. Other than that, many of the necessary functions can be provided by AutoHotkey.


I haven't tried sdesk, so fwiw here's an even older and even more non updated desktop util. http://www.techsuperior.com/multiDesk
_________________
Berserker
Back to top
View user's profile Send private message
savage



Joined: 02 Jul 2004
Posts: 207

PostPosted: Thu Jun 30, 2005 2:52 am    Post subject: Reply with quote

I use Vern. The main advantage of Vern over other desktop pagers is that it lets you have a seperate pager/set of desktops for each monitor. I can't live without it and have been using ahk to get around some of the features it's missing. It has, of course, not been updated in a long time (I'm sensing a trend here....).
_________________
<enormous animated gif>
Back to top
View user's profile Send private message AIM Address
olaf



Joined: 20 Apr 2005
Posts: 25

PostPosted: Thu Jun 30, 2005 7:06 am    Post subject: Reply with quote

savage wrote:
I use Vern. The main advantage of Vern over other desktop pagers is that it lets you have a seperate pager/set of desktops for each monitor. I can't live without it and have been using ahk to get around some of the features it's missing. It has, of course, not been updated in a long time (I'm sensing a trend here....).


Is ahk capable of creating a pager?
_________________
Berserker
Back to top
View user's profile Send private message
toralf



Joined: 31 Jan 2005
Posts: 3910
Location: Bremen, Germany

PostPosted: Thu Jun 30, 2005 7:18 am    Post subject: Reply with quote

savage wrote:
I [...] have been using ahk to get around some of the features it's missing.
What features did you miss?

And what OS are you using. The homepage says that there are problems with XP.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
savage



Joined: 02 Jul 2004
Posts: 207

PostPosted: Sun Jul 03, 2005 11:58 pm    Post subject: Reply with quote

Oh, just some minor tidbits like transparency and more hotkeys. I am using XP and I don't have any problems with it.

EDIT: Olaf, I think there's a pager script floating around somewhere. It lets you move windows about, but doesn't actually provide any virtual desk capabilities. I imagine a pure ahk virtual desktop program is quite possible though.
_________________
<enormous animated gif>
Back to top
View user's profile Send private message AIM Address
Brian
Guest





PostPosted: Thu Oct 18, 2007 5:56 pm    Post subject: How to use AutoHotkey as a shell Reply with quote

I'm still using AHK as the shell on two of my computers and I sat down today and figured out a way to get back the one thing I missed...the 'Run' box.
Here's the quick code to get a basic Run box with AHK:

Code:
#z::
Gui, Add, Edit, vRunCommand
Gui, Add, Button, default, OK
Gui, Show
return

ButtonOK:
Gui, Submit
Gui, Destroy
Run %RunCommand%
return


Two more quick hints when running AHK as the shell. Certain things can still trigger explorer to launch. The way I finally found around this is to go to the Security tab and completely remove all access to explorer.exe. Sounds a bit scary, but I've been running like that with no problems for months.
The other is that I've switched to using UltraExplorer for file browsing and it's really great:
http://www.mustangpeak.net/ultraexplorer.html
Back to top
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Thu Oct 18, 2007 8:56 pm    Post subject: Re: How to use AutoHotkey as a shell Reply with quote

Brian wrote:
the quick code to get a basic Run box with AHK


Here is Sean's nested DllCall() de-nested:

Code that calls Window's Run Dialog

Code:
hMod  := DllCall("GetModuleHandle",Str,"Shell32" )
pAddr := DllCall("GetProcAddress", UInt,hMod , UInt,61 )
DllCall( pAddr, UInt,0, UInt,0, UInt,0, UInt,0, UInt,0, UInt,0 )


Smile
Back to top
View user's profile Send private message Send e-mail
SoggyDog



Joined: 02 May 2006
Posts: 783
Location: Greeley, CO

PostPosted: Thu Oct 18, 2007 10:29 pm    Post subject: Reply with quote

Neat !
_________________

SoggyDog
Dwarf Fortress:
"The most intriguing game I've ever played."
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
TucknDar



Joined: 07 Jan 2006
Posts: 47
Location: Oslo, Norway

PostPosted: Fri Oct 19, 2007 7:20 am    Post subject: Re: How to use AutoHotkey as a shell Reply with quote

Brian wrote:
Certain things can still trigger explorer to launch. The way I finally found around this is to go to the Security tab and completely remove all access to explorer.exe. Sounds a bit scary, but I've been running like that with no problems for months.

I suggest you solve this properly, by following the instructions here: http://wiki.litestep.com/LiteStep:Installation and obviously change references to litestep.exe to your install of autohotkey.exe.

If you PM me, I could send you the setshell-utility referenced in the "Litestep:Installation" article. It will change the appropriate registry settings for you. If you don't trust me (I don't blame you, there are too many ****s on the net... I am trustworthy though Smile ), you can also download this Litestep-installer which contains a setshell utility: http://www.ls-universe.info/download.php?view.1
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Brian
Guest





PostPosted: Fri Oct 19, 2007 3:49 pm    Post subject: Reply with quote

Wow, that code for getting the real Run box is great! Thanks Skan.
That's good info to have in this thread, TucknDar. I've used those steps before but still found the explorer shell launching occasionally. For most people those steps are the better and safer way to go. Changing the security on the exe does work well if you're willing to risk it, though.
Back to top
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
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