VK & SK scripts stopped working?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
lkeye
Posts: 3
Joined: 19 Apr 2018, 04:05

VK & SK scripts stopped working?

19 Apr 2018, 04:11

Hi guys,

I just tried to run a script with VK and SC inside it and it just says "Error at line 31... vk70sc03B:: error: invalid hotkey". Happens for all my vkXXscYY scripts now. What happened? Thanks.

Example of script not working / spitting out error:
vk70sc03B::
send, {vk2Esc153}
Return

Thank you very much for your time.
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: VK & SK scripts stopped working?

19 Apr 2018, 04:26

Have a look at this. Cheers.
For Japanese (JIS) keyboard users (some Key codes have been shortened) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic ... 17&t=41926
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
lkeye
Posts: 3
Joined: 19 Apr 2018, 04:05

Re: VK & SK scripts stopped working?

19 Apr 2018, 06:50

Thank you. So only SC from now on, no VK.
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: VK & SK scripts stopped working?

19 Apr 2018, 07:27

- Summary:
Before: VKnnSCnnn
After: VKnn
- For more details:
v1.1.27 - It must be Christmas - AutoHotkey Community
https://autohotkey.com/boards/viewtopic ... 97#p190697
- VK (virtual key) codes and SC (scan codes) are different systems for referring to keys, both are useful.

Code: Select all

q:: ;get VK/SC for a key
vKey := "c"
vOutput := vKey
vOutput .= "`r`n" Format("vk{:02X}", GetKeyVK("c"))
vOutput .= "`r`n" Format("sc{:03X}", GetKeySC("c"))
MsgBox, % vOutput
;Clipboard := vOutput
return

w:: ;test Send with VK/SC
Send, {vk43}
Send, {sc02E}
return
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot] and 303 guests