tobia.zanarella
tobia.zanarella

Reputation: 1266

Autohotkey remap Apple Mac keyboard on Windows PC

I'm trying to configure an Apple Keyboard with numeric pad to work on a Windows notebook.

I found lots of example and scripts and I was able to remap Cmd to Ctrl and all the functions keys to volume controls, media controls, print screen, etc.

I still can't find a way to move focus to next window (from a program to another): on Windows, this is done by LAtl+Tab, on a Mac by Cmd+Tab. Cmd is remapped to Ctrl but I can't find the Autohotkey command to launch the "move focus to next window" action.

I tried with:

LWin & Tab::SendInput{Alt & Tab}

or

LWin & Tab::Send {Alt & Tab}

but it says that This line does not contain a recognized action.

According to the documentation, a proper syntax would be:

LWin & Tab::SendInput !{Tab}

but nothing happens.

Here is my script:

#InstallKeybdHook
#SingleInstance force
SetTitleMatchMode 2
SendMode Input
F7::SendInput {Media_Prev}
F8::SendInput {Media_Play_Pause}
F9::SendInput {Media_Next}
F10::SendInput {Volume_Mute}
F11::SendInput {Volume_Down}
F12::SendInput {Volume_Up}
LCtrl::LWin
LWin::LCtrl
RWin::RCtrl
F13::SendInput {PrintScreen}
F14::SendInput {ScrollLock}
F15::SendInput {Pause}

Any idea? Thank you.

Upvotes: 3

Views: 2503

Answers (1)

MCL
MCL

Reputation: 4065

This should do the trick:

LWin & Tab::AltTab

Upvotes: 2

Related Questions