geekhack
geekhack Community => Keyboards => Topic started by: berserkfan on Sat, 03 August 2013, 15:03:58
-
Hello Folks!
I have an autohot key problem and hope to hear what you guys have to say!
Firstly, I am using a 122-key Model M now. Since a terminal doesn't come with windows key, I remapped another key to be the windows key using this code:
Sc076::lwin
I only need 1 windows key, so I simply chose the Left Windows Key. Remapping worked.
Next I wanted to set macros where if I do windows-something, I can get the computer to open a webpage or move the mouse.
For instance, this code moves the mouse to a particular place on the screen
#2::
CoordMode, Mouse, Screen
MouseClick, Left, 2, 900
CoordMode, Mouse, Relative
Return
And this code opens my yahoo mail account:
#y::
Run http://us-mg5.mail.yahoo.com/neo/launch
return
Now what I don't understand is that on other keyboards, including my Model F 84-key, the code works. But on my 122-key, the exact same code gets me nowhere.
windows-m still works, though. (ie I can still minimize all screens.)
I have found that on the 122-key Model M, certain key combos work and certain key combos fail. For instance, #h maps fine to this website.
But #t doesn't.
This is very puzzling given that I also have my Model F connected to the computer, and all my windows macros like #t, #h, #g get me where I wanted to go when I am using the Model F.
I've tried a workaround using the ` grave/tilde key. Since I hardly ever use this key, I've turned it into a prefix that is used in combination with other keys to run macros.
But now I have lost the use of `. Reading autohotkey's help, it says if I add this code
`::Send {`}
return
That is supposed to allow the grave/ tilde key to function as per normal when it is released after not being pressed with any other key.
But I still can't get back the use of grave/tilde.
Is there something wrong with my code?
-
bump up