; AutoHotkey Version: 1.x ; Language: English ; Platform: Win9x/NT ; Author: Koco { Koco@MyKocoro.com ) ; ; ; ! = Alt, ^ = Ctrl, # = Win, + = Shift #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 #IfWinActive ahk_class OrigamiDialog ; Snarfer CoordMode, Mouse, Screen MButton:: MouseGetPos X If (X > 1680) Send {delete} Else Send {MButton} Return #IfWinActive #IfWinActive ahk_class Chrome_WidgetWin_0 ^d:: ; Paste and Go Send ^l Sleep 5 Send ^v{Enter} Return ^e:: ; Paste and Go Youtube Send ^l Sleep 5 Send site:youtube.com{tab}{space}^v{Enter} Return !d:: ; Paste and Go New Tab Send ^t Sleep 5 Send ^l^v{Enter} Return !e:: ; Paste and Go Youtube (New tab) Send ^t Sleep 5 Send ^lsite:youtube.com{tab}{space}^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 5 Send ^t Sleep 5 Send ^lsite:youtube.com{tab}{space}^v{Enter} Return ^n:: Send ^t ; Open a new tab ^z:: Send ^+t ; Open last closed tab ^Left:: Send !{Left} ; Go Back ^Right:: Send !{Right} ; Go Forward #IfWinActive +!e:: ; Porn Saver Send ^s Sleep 300 Send {Enter} Sleep 300 Send ^w Return CapsLock:: Send {Enter} !CapsLock:: Send {f5} ^CapsLock:: Send {Delete} !+CapsLock:: Send {CapsLock} #CapsLock:: Send !{Enter} #a:: Send {Home} #x:: Send {End} #w:: Send {PgUp} #s:: Send {PgDn} ; -------------- ; Polyphasic Alarm Clock ; -------------- LControl & RAlt:: ; The hotkey, currently alt-gr. autohotkey.com/docs/KeyList.htm to change as it probably doesn't exist on your keyboard. Label1: SetTimer, ChangeButtonNames1, 1 Menu, Tray, Icon MsgBox, 2, Alarm Window,Would you like to set the alarm? IfMsgBox, Abort ; Yes { IfWinExist ahk_class BaseWindow_RootWnd ; Is Winamp open? send ^!{End} ; If so, press the Winamp "Stop" Hotkey, enable this in Winamp Preferences Loop 25 { Send {Volume_Down} } EnvAdd, var1, 25, minutes FormatTime, OutputVar, %var1%, HH:mm SetTimer, ChangeButtonNames2, 1 MsgBox, 0, Alarm is now set,This alarm will go off at %OutputVar%, 1500 ; 1500 seconds = 25 minutes. 1800 = 30 minutes, 900 = 15 IfMsgBox, Timeout { Loop 25 { Send {Volume_Up} } Run, D:\Program Files\1st Clock\media\sounds\Outline - 05 - Shotgun.mp3 ; Change this to a file of your choice. Menu, Tray, NoIcon Sleep 100 Send #l ; If you're on Windows this locks the computer until you type in your login password. MsgBox, 262144, Alert Window,The alarm went off at %OutputVar%. var1= Exit } IfMsgBox, OK { var1= Loop 25 { Send {Volume_Up} } Menu, Tray, NoIcon Exit } } IfMsgBox, Retry ; No { Menu, Tray, NoIcon IfWinExist ahk_class BaseWindow_RootWnd ; Is Winamp open? send ^!{End} ; Winamp Stop Hotkey Exit } IfMsgBox, Ignore ; Preview { Run, D:\Program Files\1st Clock\media\sounds\Outline - 05 - Shotgun.mp3 Menu, Tray, NoIcon GoSub Label1 Return } Return ; Below here changes the button names on the alarm clock window from Abort/Retry/Ignore to Yes/No/Cancel. ChangeButtonNames1: IfWinNotExist, Alarm Window Return SetTimer, ChangeButtonNames1, Off ControlSetText, Button1, Yes, Alarm Window ahk_class #32770 ControlSetText, Button2, No, Alarm Window ahk_class #32770 ControlSetText, Button3, Preview, Alarm Window ahk_class #32770 Return ChangeButtonNames2: IfWinNotExist, Alarm is now set Return SetTimer, ChangeButtonNames2, Off ControlSetText, Button1, Disable, Alarm is now set ahk_class #32770 Return