Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- #NoTrayIcon
- #SingleInstance force
- ; #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.
- ; Double Right-Control for Apps Key
- ~RCtrl::
- if ( A_PriorHotKey <> "~RCtrl" OR A_TimeSincePriorHotkey > 300 ) {
- KeyWait RCtrl
- Return
- }
- Send, {AppsKey}
- Return
- ; Search highlighted text/last copied from anywhere
- #g::
- Send, ^c
- Sleep 50
- Run, http://www.google.com/search?q=%clipboard%
- Return
- ;Replace Cortana with open in Edge
- #c::
- Send, ^c
- if ( WinActive("ahk_class ApplicationFrameWindow") = 0 ) {
- Send, #+1
- WinWait,Microsoft Edge
- Sleep 1500
- }
- WinGetTitle, title, A
- GetPos := RegExMatch(title,"^(Start|New tab)( and \d+ more pages?)?")
- if ( GetPos <> 1 ) {
- Send, ^t
- WinWait,New tab
- }
- Send, ^l^v{Enter}
- Send, %title%
- Return
- ; Used with Oopsie to reopen last set of tabs
- ~^+a::
- WinWait,Google Chrome, ,0.5
- WinGetTitle, title, A
- if ( title = "New Tab - Google Chrome" ) {
- ToClose := WinExist("A")
- Send, ^+t
- WinClose, ahk_id %ToClose%
- }
- Return
- ; WinKey + f opens Search Everything
- #f::
- Run, "C:\Program Files\Everything\Everything.exe"
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement