This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @ts-expect-error | |
import * as dpapi from 'win-dpapi'; | |
import crypto from 'node:crypto'; | |
import fs from 'node:fs/promises'; | |
function rot13(txt:string) { | |
return txt.replace(/[a-z]/gi, c => | |
"NOPQRSTUVWXYZABCDEFGHIJKLMnopqrstuvwxyzabcdefghijklm" | |
[ "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".indexOf(c) ] ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;based on: | |
;https://www.autohotkey.com/boards/viewtopic.php?f=6&t=37781 | |
;https://www.autohotkey.com/boards/viewtopic.php?t=51265 | |
#Persistent | |
;------------------------------------------------------------------------------- | |
show_Mouse(bShow := True) { ; show/hide the mouse cursor | |
;------------------------------------------------------------------------------- | |
; WINAPI: SystemParametersInfo, CreateCursor, CopyImage, SetSystemCursor |