Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; AutoHotkey Version: 1.x
- ; Language: English
- ; Author: Koco { Koco@MyKocoro.com )
- ;
- ;
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- #NoTrayIcon
- ; Key List = http://www.autohotkey.com/docs/KeyList.htm
- ; ! = Alt, ^ = Ctrl, # = Win, + = Shift
- ; --------------------
- ; Polyphasic Alarm Clock
- ; --------------------
- ; These things you can change V
- ; Main Hotkey, change as you need.
- MainKey = LControl & RAlt
- ; The thing you want to run to wake you up.
- FileLocation = F:\Music\The Outline\Outline - 05 - Shotgun.mp3
- ; FileLocation = spotify:user:1119888230:playlist:7GWxXI5bc5yCVkdbONLpsc
- ; Music Stop Hotkey. Leave blank if you want or set to your winamp keys.
- StopKey = {Media_Stop}
- StartKey = {Media_Play_Pause}
- ; Default time to wait
- DefWaitTime = 20
- ; You should leave things alone below here.
- Hotkey, %MainKey%, Label1
- Return
- Label1:
- Menu, Tray, Icon
- InputBox, WaitTime,,,,100,100,, , ,,%DefWaitTime%
- if ErrorLevel <> 0
- { Menu, Tray, NoIcon
- exit
- }
- if WaitTime > 0.0
- { send %StopKey%
- Loop 100
- { Send {Volume_Down}
- }
- EnvAdd, var1, %WaitTime%, minutes
- FormatTime, OutputVar, %var1%, HH:mm
- SetTimer, ChangeNames2, -75
- MsgBox, 0, Alarm is now set,This alarm will go off at %OutputVar%, % WaitTime * 60
- IfMsgBox, Timeout
- { Loop 100
- { Send {Volume_Up}
- }
- Run, %FileLocation%
- Sleep 200
- Send %StartKey%
- Menu, Tray, NoIcon
- Sleep 100
- MsgBox, 262144, Alert Window,The alarm went off at %OutputVar%.
- var1=
- Exit
- }
- IfMsgBox, OK
- { var1=
- Loop 100
- { Send {Volume_Up}
- }
- Menu, Tray, NoIcon
- Exit
- }
- }
- else
- { Menu, Tray, NoIcon
- send %StopKey%
- exit
- }
- ChangeNames2:
- IfWinNotExist, Alarm is now set
- Return
- ControlSetText, Button1, Disable, Alarm is now set ahk_class #32770
- Return
- ; --------------------
- ; End of Alarm Clock
- ; --------------------
- ; --------------------
- ; Start of other hotkeys
- ; --------------------
- CapsLock:: Send {Enter}
- #CapsLock:: Send !{Enter}
- !CapsLock:: Send {f5}
- ^CapsLock:: Send {Delete}
- !+CapsLock:: Send {CapsLock}
- #a:: Send {Home}
- #x:: Send {End}
- #IfWinActive ahk_class LaunchUnrealUWindowsClient
- ^t:: Send {click down}
- #IfWinActive
- #IfWinActive ahk_class Chrome_WidgetWin_1
- ^n:: Send ^t ; Open a new tab
- ^z:: Send ^+t ; Open last closed tab
- ^d:: ; Paste and Go
- Send ^l
- Sleep 5
- Send ^v{Enter}
- Return
- !d:: ; Paste and Go New Tab
- Send ^t
- Sleep 5
- Send ^l^v{Enter}
- Return
- ^!d:: ; Copy Paste and Go New Tab
- Send ^c
- Sleep 5
- Send ^t
- Sleep 5
- Send ^l^v{Enter}
- Return
- ^!e:: ; Copy Paste and Go Youtube (New Tab)
- Send ^c
- Sleep 50
- Send ^t
- Sleep 50
- Send youtube.com
- Sleep 50
- Send {Down}
- Sleep 50
- Send ^l
- Sleep 50
- Send {End}
- Sleep 50
- Send {Space}^v
- Sleep 50
- Send {Enter}
- Return
- CapsLock:: Send {Enter}
- #IfWinActive;
- #IfWinActive ahk_class OpusApp ; Word
- CapsLock:: Send {Enter}
- ^CapsLock:: Send {Delete}
- #IfWinActive
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement