AutoHotkey Community

It is currently May 27th, 2012, 1:05 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: March 27th, 2008, 3:42 am 
Offline

Joined: September 27th, 2007, 7:32 am
Posts: 25
Location: http://lifehacker.com
I'm trying to remap the Windows key to the control key, and it works as expected in most instances, but for some reason, after a remap like this:

Code:
LWin::LCtrl


Hitting LWin-L still locks the computer (rather than, for example, going to the address bar in Firefox). Any suggestions on how I can make this work?

Thanks!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 27th, 2008, 3:49 am 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
That code works for me on XP (i.e. it prevents Win-L from locking the computer).


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 27th, 2008, 4:03 am 
Offline

Joined: March 9th, 2007, 2:47 am
Posts: 509
Location: Unknown
Might be similar to Ctrl-Alt-Delete?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 27th, 2008, 4:36 am 
Offline

Joined: September 27th, 2007, 7:32 am
Posts: 25
Location: http://lifehacker.com
I should maybe note that I'm running Vista in Boot Camp on a Mac, though I'm not sure that should really make a difference.

I want to remap the command key to ctrl (it's the Win key by default), since the command key works like the ctrl key in most instances and my muscle memory works there on this computer.

I really just does not work, though, with the methods I've tried so far. I've even tried:

Code:
#l::^l


...but it still doesn't work (i.e., it still locks the computer). Any ideas?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 27th, 2008, 4:44 am 
Offline

Joined: September 27th, 2007, 7:32 am
Posts: 25
Location: http://lifehacker.com
Another issue I'm running into, possibly along different lines:

I'm also trying to remap Alt-Tab to the Windows key (since cmd-tab on a Mac is similar to alt-tab), so Win-Tab would do what Alt-Tab does.

When I add the following line to my script:

Code:
LWin::LCtrl
<#Tab::AltTab


Win-Tab does remap to Alt-Tab, but the remapping of the control key to the Win key no longer works. Any ideas on this one?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 27th, 2008, 5:33 am 
Offline

Joined: September 27th, 2007, 7:32 am
Posts: 25
Location: http://lifehacker.com
It's somewhat of a hacky solution, but I worked everything out for what I needed. For what it's worth, here's how I did it:

I used KeyTweak to remap the LWin key to the LCtrl Key, then remapped the LCtrl key to the RCtrl key (I suppose I could have skipped a step and made the LWin key the RCtrl key). Anyway, once I did that all the problems I mentioned above were pretty easy to overcome.

Thanks for the help!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 27th, 2008, 9:09 am 
Offline

Joined: November 29th, 2007, 2:36 pm
Posts: 43
Location: Romania
try this

Code:
Lwin::RCtrl
#L:: ;Disable Win Key + L


for alt tab

Code:
LWin & Tab::AltTab


_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 27th, 2008, 1:55 pm 
Offline

Joined: November 5th, 2007, 7:25 pm
Posts: 454
Location: canada
may not be correct but you may want to try

Code:
Lwin & L::LCtrl



I cant test as I have 2k on this pc.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 27th, 2008, 5:12 pm 
Offline

Joined: November 29th, 2007, 2:36 pm
Posts: 43
Location: Romania
Razlin wrote:
may not be correct but you may want to try

Code:
Lwin & L::LCtrl



I cant test as I have 2k on this pc.


this worsk fine 4 me

Code:
#L::LCtrl

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 18th, 2009, 8:59 pm 
Offline

Joined: June 18th, 2009, 4:39 pm
Posts: 19
Location: Salt Lake City, Utah
The windows lock key can also be disabled through the registry:

Code:
RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Policies\System, DisableLockWorkstation, 1


To enable workstation locking, do this:

Code:
RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Policies\System, DisableLockWorkstation, 0


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Amandaville, BrandonHotkey, chaosad, Yahoo [Bot] and 19 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group