Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 27

Community Plugins & Addons • Re: Key Detection Plugin (?)

$
0
0

Code:

#Persistent#InstallKeybdHookSetTimer, CheckKey, 10global LastKey := ""returnCheckKey:Loop 255{    if GetKeyState(Format("VK{:X}", A_Index-1), "P")    {        HexCode := Format("0x{:X}", A_Index-1)        if (HexCode != LastKey)  ; Only write new keys        {            FileAppend, % HexCode "`n", D:\GitHub\smart-widgets\t.txt            LastKey := HexCode        }        Sleep, 100    }}return
Use Lua script to read the file.

Statistics: Posted by nstechbytes — Yesterday, 2:24 am



Viewing all articles
Browse latest Browse all 27

Trending Articles