I have a Logitech Keys-to-go keyboard for iPad with Italian layout (Logitech Keys-to-go keyboard) which I'm trying to use and adapt for Windows. In the attached picture I've labelled each key with a number for convenience. Below I paste my script, which I also attach as a file.
I'd like some help in remapping
- the Globe/net button (labelled 069 in my picture)
- first 4 keys of first row (labelled 001-004)
- last 3 keys of first row (labelled 012-014)
I'd like it to act in any circumstance as a Ctrl (or LCtrl, that is as key 070 as per my labelling). Below the snippet of the script in which I set the hotkey and what I read from from 'Key history and script info' when pressing that key. It's like it is sending the codes of 2 keys (LControl and Space). In the script there are other attempts (using #HotIf GetKeyState()).
Code: Select all
; VK SC Type Up/Dn Elapsed Key
; A2 01D d 20.89 LControl
; 20 039 d 0.00 Space
; 20 039 u 0.03 Space
; A2 01D u 0.98 LControl
; A2 01D d 33.03 LControl
; 20 039 h d 0.00 Space
; A2 01D i d 0.00 LControl
; 20 039 h u 0.03 Space
; A2 01D i u 0.00 LControl
; A2 01D u 0.98 LControl
<^Space::LCtrl
Code: Select all
<^Space::
{
Send "{Control down}c{Control up}"
}
First row (labelled 001-004 and 012-014)
In 'Key history and script info' I cannot see anything when pressing the first 4 keys and the last 3 keys of the first row. Can someone help me in detecting those keys if possible?
The whole script
Code: Select all
#Requires AutoHotkey v2.0-beta
; ----------------------------------
; NOTES
; ----------------------------------
; + = SHIFT
; ^ = CTRL
; # = WIN
; ! = ALT
; <^>! = ALTGR
; ----------------------------------
InstallKeybdHook
; Wrongly mapped characters
<::\
>::|
\::<
|::>
; Additional characters
<^>!ì::~
<^>!'::`
; Globe key (bottom-leftmost key)
; sends these codes (copied from
; 'Key history and script info')
; VK SC Type Up/Dn Elapsed Key
; A2 01D d 20.89 LControl
; 20 039 d 0.00 Space
; 20 039 u 0.03 Space
; A2 01D u 0.98 LControl
; A2 01D d 33.03 LControl
; 20 039 h d 0.00 Space
; A2 01D i d 0.00 LControl
; 20 039 h u 0.03 Space
; A2 01D i u 0.00 LControl
; A2 01D u 0.98 LControl
<^Space::LCtrl
; Not working
; #HotIf GetKeyState("Space", "P")
; ^c::Send "Hotkey activated."
; Not working
; #HotIf GetKeyState("LControl", "P")
; Space & c::Send "Hotkey activated."
; Left Alt and Cmd key switched
; (Cmd key is Win key on Windows)
LAlt::LWin
LWin::LAlt
RWin::RAlt
; First row of Apple iOS shortcuts
; (14 keys)
; mapped to Ctrl + Esc F1-F12 Del
; ^::Esc
; ^::F1
; ^::F2
; ^::F3
^Browser_Search::F4
^Media_Prev::F5
^Media_Play_Pause::F6
^Media_Next::F7
^Volume_Mute::F8
^Volume_Down::F9
^Volume_Up::F10
; ^::F11
; ^::F12
; ^::Del