Advertisement
dogrunner

Symbols - AutoHotkey

Jan 2nd, 2024
1,468
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Autohotkey 3.10 KB | Source Code | 0 0
  1. #EscapeChar `
  2. #NoEnv ; Rec'd for all new scripts for performance - prevents empty vars from being looked up as potential environment variables.
  3. #SingleInstance, force
  4. DetectHiddenWindows, On
  5. SetWinDelay, 50
  6. SetNumLockState On
  7.  
  8. ; Date-TIME yyMMdd-HHmm
  9. MButton::
  10.     FormatTime, CurrTime1, A_now, yyMMdd-
  11.     Send, %CurrTime1%
  12.     FormatTime, CurrTime2, A_now, HH
  13.     Send, %CurrTime2%
  14.     SendInput {U+A789}
  15.     FormatTime, CurrTime3, A_now, mm
  16.     Send, %CurrTime3%
  17.     return
  18. ;--------------------------------------------------------------
  19. ; DATE yyMMdd
  20. RAlt & d::
  21.     FormatTime, CurrDate, A_now, yyMMdd
  22.     Send, %CurrDate%
  23.     return
  24. ;——————————————————————————————————————————————————————————————
  25. ; DUPLICATE Chrome tabs with LAlt+D
  26. #If WinActive("ahk_exe Chrome.exe")
  27.     !d::send !d!{Enter}
  28. #If
  29. ;——————————————————————————————————————————————————————————————
  30. ; Sound DOWN or UP
  31. ^+F10::SoundSet,-3          ; press CTRL ("^"), Shift ("+"), and F10
  32. ^+F11::SoundSet,+3          ; press CTRL ("^"), Shift ("+"), and F10
  33. ;——————————————————————————————————————————————————————————————
  34. ; COMMON FILENAME RESTRICTIONS, SUBSTITUTED for creative filenames
  35.  
  36. ; Back slash (⧵)
  37. LAlt & \::SendInput {U+29F5}
  38. ;--------------------------------------------------------------
  39. ; Forward slash (∕)
  40. LAlt & /::SendInput {U+2215}
  41. ;--------------------------------------------------------------
  42. ; Colon (꞉)
  43. LAlt & `;::SendInput {U+A789}
  44. ;--------------------------------------------------------------
  45. ; Asterisk (*)
  46. LAlt & 8::SendInput {U+204E}
  47. LALT & NumpadMult::SendInput {U+204E}
  48. ;--------------------------------------------------------------
  49. ; Question mark (?)
  50. LAlt & ?::SendInput {U+FF1F}
  51. ;--------------------------------------------------------------
  52. ; Quotation / speech marks (“)
  53. LAlt & 2::SendInput {U+201C}
  54. ;--------------------------------------------------------------
  55. ; Quotation / speech marks (”)
  56. RAlt & 2::SendInput {U+201D}
  57. ;--------------------------------------------------------------
  58. ; Less than sign (<)
  59. LAlt & <::SendInput {U+FF1C}
  60. ;--------------------------------------------------------------
  61. ; Greater than sign (>)
  62. LAlt & >::SendInput {U+FF1E}
  63. ;--------------------------------------------------------------
  64. ; Vertical-Pipe line (|)
  65. LAlt & |::SendInput {U+23D0}
  66. ;--------------------------------------------------------------
  67. ; Up arrow (↑)
  68. LAlt & Up::SendInput {U+2191}
  69. ;--------------------------------------------------------------
  70. ; Down arrow (↓)
  71. LAlt & Down::SendInput {U+2193}
  72. ;--------------------------------------------------------------
  73. ; Right arrow (→)
  74. LAlt & Right::SendInput {U+2192}
  75. ;--------------------------------------------------------------
  76. ; Left arrow (←)
  77. LAlt & Left::SendRaw «
  78. ; SendInput {U+2190}
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement