Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FilesTitle := "Files ahk_class ApplicationFrameWindow ahk_exe ApplicationFrameHost.exe"
- FilesLocation := USERPROFILE . "\AppData\Local\Microsoft\WindowsApps\files.exe"
- ; Win + E
- #e::
- if WinExist(FilesTitle) {
- WinActivate % FilesTitle ; Set focus
- SendInput ^t ; Send CTRL + t shortcut to open a new tab
- } else {
- Run % FilesLocation ; Start Files
- WinWait % FilesTitle ; Wait for it ...
- WinActivate % FilesTitle ; Set focus
- }
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement