#If GetKeyState not working through VNC
Posted: 23 Apr 2024, 11:26
I have a general AutoHotKey v1 script running on the host machine that I am connecting to via VNC (Real VNC Viewer)
This part of the code is not triggering:
AutoHotKey in general is working fine in other more direct cases without a trigger key. These pieces of code work:
I've tried with other trigger keys that aren't F14:
I have this at the very top of the script:
Note all of this works when working on the host machine directly. But just the GetKeyState hook does not work when accessing via VNC
This part of the code is not triggering:
Code: Select all
#If GetKeyState("F14", "P")
...
(code to trigger when F14 is pressed with other standard keys)
AutoHotKey in general is working fine in other more direct cases without a trigger key. These pieces of code work:
Code: Select all
F13::Send {Enter}
::f.dl::C:\Users\Administrator\Downloads{enter}
::u.shop::https://example.com/shop
I've tried with other trigger keys that aren't F14:
Code: Select all
#If GetKeyState("Ctrl", "P")
Code: Select all
#NoEnv
#InstallKeybdHook
#InstallMouseHook
#UseHook
SetCapsLockState, AlwaysOff
SendMode Input
DetectHiddenWindows, On
Note all of this works when working on the host machine directly. But just the GetKeyState hook does not work when accessing via VNC