Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If you enter the X key, the hot key will not be activated. #115

Open
KorRoman9789 opened this issue Aug 2, 2024 · 0 comments
Open

If you enter the X key, the hot key will not be activated. #115

KorRoman9789 opened this issue Aug 2, 2024 · 0 comments

Comments

@KorRoman9789
Copy link

#include Lib\AutoHotInterception.ahk

#InstallKeybdHook

Global AHI := new AutoHotInterception()
Global KeyBoard_ID := "5"

$*x::
while (GetKeyState("x", "P"))
{
scancode := 0x2D

    AHI.SendKeyEvent(KeyBoard_ID, scancode, 0) 
    Sleep, 10 
    
    AHI.SendKeyEvent(KeyBoard_ID, scancode, 1) 
    Sleep, 10 
}

return

exitapp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant