Author Topic: autohotkey problem with windows key and using prefixes  (Read 957 times)

0 Members and 1 Guest are viewing this topic.

Offline berserkfan

  • Thread Starter
  • Posts: 2135
  • Location: Not CONUS Not CONUS Not CONUS Not CONUS
  • changing diapers is more fun than model f assembly
autohotkey problem with windows key and using prefixes
« 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?
« Last Edit: Sun, 04 August 2013, 13:07:49 by berserkfan »
Most of the modding can be done on your own once you break through the psychological barriers.

Offline berserkfan

  • Thread Starter
  • Posts: 2135
  • Location: Not CONUS Not CONUS Not CONUS Not CONUS
  • changing diapers is more fun than model f assembly
Re: autohotkey problem with windows key and using prefixes
« Reply #1 on: Sun, 04 August 2013, 09:53:30 »
bump up
Most of the modding can be done on your own once you break through the psychological barriers.