Some keys are sent in SC, not VK since v1.1.26.00
Posted: 30 Oct 2017, 10:27
I am using a customized keyboard layout. The customized parts include swapping PgUp/End, because it is more comfortable for me to navigate pages of documents. PgUp/End are swapped in VK, not SC. That is, SC_PgUp -> VK_End, SC_End -> VK_PgUp.
I also use Alt modifiers to send Up/Down/Left/Right, Home/End/PgUp/PgDn etc.
For example:
The code worked perfectly before AHK v1.1.26.00.
But since v1.1.26.00,
SendInput, {End} will actually send Page Up,
SendInput, {PGUP} will actually send End.
It seems that starting with v1.1.26.00, these keys will be sent in scan codes, not in virtual keys or characters.
I don't know this is a design change or a bug?
I also use Alt modifiers to send Up/Down/Left/Right, Home/End/PgUp/PgDn etc.
For example:
Code: Select all
!u::SendInput, {Home}
!i::SendInput, {End}
!j::SendInput, {PGUP}
!k::SendInput, {PGDN}
But since v1.1.26.00,
SendInput, {End} will actually send Page Up,
SendInput, {PGUP} will actually send End.
It seems that starting with v1.1.26.00, these keys will be sent in scan codes, not in virtual keys or characters.
I don't know this is a design change or a bug?