Skip to content

Instantly share code, notes, and snippets.

@avestura
Created March 11, 2025 08:26
Show Gist options
  • Save avestura/432b15227d6c409cef649720e0551b6e to your computer and use it in GitHub Desktop.
Save avestura/432b15227d6c409cef649720e0551b6e to your computer and use it in GitHub Desktop.
Protects your system from intruders who want "Shirini" from you
#Requires AutoHotkey v2.0
#Include RegExHotstring.ahk
#SingleInstance Force
RegExHotstring("([s$]+)(h+)([i!]+)(r+)([i!]+)(n+)([i!]+)", (m) => DllCall("LockWorkStation"), "* ?")
RegExHotstring("(ش+)(ی+)(ر+)(ی+)(ن+)(ی+)", (m) => DllCall("LockWorkStation"), "* ?")
RegExHotstring("(b+)(a+)(s+)(t+)(a+)(n+)([i!]+)", (m) => DllCall("LockWorkStation"), "* ?")
RegExHotstring("(ب+)(س+)(ت+)(ن+)(ی+)", (m) => DllCall("LockWorkStation"), "* ?")
RegExHotstring("(m+)(i+)(d+)(a+)(m+)", (m) => DllCall("LockWorkStation"), "* ?")
:*:s h i r i n i::
:*:ش ی ر ی ن ی::
:*:ب س ت ن ی::{
DllCall("LockWorkStation")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment