Add macros for Microsoft Edge browser (Windows)
This commit is contained in:
parent
2c72bc5b1c
commit
f64ba2081e
1 changed files with 31 additions and 0 deletions
31
Macropad_Hotkeys/macros/win-edge.py
Executable file
31
Macropad_Hotkeys/macros/win-edge.py
Executable file
|
|
@ -0,0 +1,31 @@
|
|||
# MACROPAD Hotkeys example: Microsoft Edge web browser for Windows
|
||||
|
||||
from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values
|
||||
|
||||
app = { # REQUIRED dict, must be named 'app'
|
||||
'name' : 'Edge', # Application name
|
||||
'macros' : [ # List of button macros...
|
||||
# COLOR LABEL KEY SEQUENCE
|
||||
# 1st row ----------
|
||||
(0x004000, '< Back', [Keycode.ALT, Keycode.LEFT_ARROW]),
|
||||
(0x004000, 'Fwd >', [Keycode.ALT, Keycode.RIGHT_ARROW]),
|
||||
(0x400000, 'Up', [Keycode.SHIFT, ' ']), # Scroll up
|
||||
# 2nd row ----------
|
||||
(0x202000, '- Size', [Keycode.CONTROL, Keycode.KEYPAD_MINUS]),
|
||||
(0x202000, 'Size +', [Keycode.CONTROL, Keycode.KEYPAD_PLUS]),
|
||||
(0x400000, 'Down', ' '), # Scroll down
|
||||
# 3rd row ----------
|
||||
(0x000040, 'Reload', [Keycode.CONTROL, 'r']),
|
||||
(0x000040, 'Home', [Keycode.ALT, Keycode.HOME]),
|
||||
(0x000040, 'Private', [Keycode.CONTROL, 'N']),
|
||||
# 4th row ----------
|
||||
(0x000000, 'Ada', [Keycode.CONTROL, 'n', -Keycode.COMMAND,
|
||||
'www.adafruit.com\n']), # Adafruit in new window
|
||||
(0x800000, 'Digi', [Keycode.CONTROL, 'n', -Keycode.COMMAND,
|
||||
'www.digikey.com\n']), # Digi-Key in new window
|
||||
(0x101010, 'Hacks', [Keycode.CONTROL, 'n', -Keycode.COMMAND,
|
||||
'www.hackaday.com\n']), # Hack-a-Day in new win
|
||||
# Encoder button ---
|
||||
(0x000000, '', [Keycode.CONTROL, 'w']) # Close tab
|
||||
]
|
||||
}
|
||||
Loading…
Reference in a new issue