Skip to content

Instantly share code, notes, and snippets.

@mobeigi
Created May 1, 2015 17:09
Show Gist options
  • Save mobeigi/6cf1d7514c3770e886ae to your computer and use it in GitHub Desktop.
Save mobeigi/6cf1d7514c3770e886ae to your computer and use it in GitHub Desktop.
Ducky Shine III Multimedia Key Autohotkey script
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;Multimedia Keys for Ducky Shine 3
;Open selected file using notepad++
SC121::run % "D:\Program Files (x86)\Notepad++\notepad++.exe """ gst() """"
gst() { ; GetSelectedText or FilePath in Windows Explorer by Learning one
IsClipEmpty := (Clipboard = "") ? 1 : 0
if !IsClipEmpty {
ClipboardBackup := ClipboardAll
While !(Clipboard = "") {
Clipboard =
Sleep, 10
}
}
Send, ^c
ClipWait, 0.1
ToReturn := Clipboard, Clipboard := ClipboardBackup
if !IsClipEmpty
ClipWait, 0.5, 1
Return ToReturn
}
;sc16b::b
sc16c::run https://mail.google.com/mail/u/0/#inbox
;sc132::run D:\
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment