Skip to content

Instantly share code, notes, and snippets.

View disable key.json
{ "title": "disable key",
"rules": [
{
"description": "disable key",
"manipulators": [
{
"from": {
"key_code": "left_shift"
View script 53.txt
-- user options ----------------------------------------------
set file_name to "untitled"
set file_name_with_current_date_time to "on" -- "on" or "off
set extension to ".txt"
-- end of user options ---------------------------------------
tell application "Finder"
activate
View Text File 1.txt
AutoIt Script ====================================================
#WinActivate("[CLASS:MozillaWindowClass]", "")
# user input
$ahk_file="C:\Users\John See\Desktop\t2.ahk"
# end of user input
ShellExecute($ahk_file)
sleep(199)
View AutoIt Script 11.au3
#Include <WinAPI.au3>
$activeApp = _WinAPI_GetClassName(WinGetHandle("[ACTIVE]"))
$activeWindow = WinGetTitle("[ACTIVE]")
; -------------------------------------------------------------------
; Example 1 - based on active app:
;
; If $activeApp = "WordPadClass" Then
; WinMove("", "", 1326, 60, 518, 962)
; sleep(1990)
View script 23.6.txt
-- user options
set KillWindows_User to {"app1", "app2"}
-- end of user options
-----------------------------------------------
-- s23.6 - supported: TextMate
-- s23.5 - supported: FreeFileSync
-- s23.4 - fixed: closing windows of Finder on Mac Catalina, hang caused by some apps | improved: killing apps listed in KillWindows_User
-- s23.3 - supported: Audacity
-- s23.2 - supported: wine-preloader, wine
-----------------------------------------------
View input source.json
{ "title": "input source",
"rules": [
{ "description": "input source",
"manipulators": [
{"from": { "key_code": "a" },
"parameters": {"basic.to_if_alone_timeout_milliseconds": 300},
"to_if_alone": [{"key_code": "8"},
{"key_code": "9"},
{"key_code": "0"}],
"type": "basic",
View AutoIt Script 10.au3
#include <Date.au3>
Send("!{TAB}");; if you run script using hotkey or autotext, delete line 2.
$curtime = _NowTime()
$curdate =_NowDate ( )
sleep (500)
Send($curdate)
Send("_")
Send($curtime)
View script 52.txt
-- Requirement: application 'BetterTouchTool'
-- user input
set UUID_user to "DA47E447-6FF8-4D71-BAC6-643E5AEB9111"
set name_of_app to "All Apps" -- If you select 'All Apps' in BetterTouchTool, set name_of_app to "All Apps."
-- end of user input
-- user options
set done_dialog to "on" -- "on" or "off"
-- end of user options -----------------------------------------------
View Hold a Key - Shortcut for Photoshop.json
{ "title": "Rules for Karabiner-Elements | Tested Version: 12.10.0",
"rules": [
{ "description": "Hold a Key - Shortcut for Photoshop",
"manipulators": [
{"from": { "key_code": "a" },
"parameters": {"basic.to_if_alone_timeout_milliseconds": 300,
"basic.to_if_held_down_threshold_milliseconds": 500},
"to_if_alone": [
{"key_code": "a"}],
"to_if_held_down":[
View script 51.txt
-- user input
set name_of_application to "Adobe Photoshop 2021"
set menu_1 to "Layer"
set menu_2 to "Layer Style"
set menu_3 to "Inner Shadow..."
-- end of user input--------------------------------
if menu_3 is "" then
if menu_1 is not "" and menu_2 is not "" then