Skip to content

Instantly share code, notes, and snippets.

View CynicRus's full-sized avatar
🌴
On vacation

Aleksandr Vorobiev CynicRus

🌴
On vacation
View GitHub Profile
@CynicRus
CynicRus / .pas
Created October 28, 2020 10:30
LowLevelKeyboard cut the msr input(mr800)
function LowLevelKeyboardProc(nCode: longint; wParam: wParam; lParam: lParam): LRESULT;
stdcall;
var
pkbhs: PKbdDllHookStruct;
AChr: array [0..1] of widechar;
VirtualKey: integer;
ScanCode: integer;
ConvRes: integer;
ActiveWindow: HWND;
@CynicRus
CynicRus / gist:8f5d213d16c9b9eb75ef13dbd9bfa273
Created October 23, 2020 09:44
Golang tokenizer on Freepascal
unit utokenizer;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils;
const