#If GetKeyState not working through VNC

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
downstairs
Posts: 42
Joined: 17 Aug 2017, 11:42

#If GetKeyState not working through VNC

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:

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")
I have this at the very top of the script:

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

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Chunjee, peter_ahk and 99 guests