Sunteți pe pagina 1din 4

; THIS AUTO RELOADS THE SCRIPT UPON SAVING (MAINLY IN NOTEPAD) ~^s:: IfWinActive, %A_ScriptName% { SplashTextOn,,,Updated script, Sleep,

500 SplashTextOff Reload } return

; THIS AUTO STOPS THE SCRIPT: #k::ExitApp ; GOOGLE CHROME HOTKEYS ; THIS OPENS THE LINK UNDER MOUSE CURSOR IN A NEW TAB IN CHROME: #a:: Send {RButton} Sleep, 300 Send {Down} Send {Return} return ; THIS CLOSES THE CURRENT TAB IN CHROME: #w:: Send ^w return ; THIS AUTO-SAVES A HTML-EMBEDDED IMAGE IN CHROME: #s:: Send {RButton} Sleep, 300 Send {Down} Send {Down} Send {Down} Send {Down} Send {Down} Send {Down} Send {Return} Sleep, 600 Send {Return} Sleep, 1200 Send ^w return ; THIS AUTO-SAVES A PLAIN IMAGE IN CHROME: #q:: Send {RButton} Sleep, 300 Send {Down} Send {Return}

Sleep, 300 Send {Return} Sleep, 1200 Send ^w return #m:: Send {Right}{Right}{Right}{Right}{Right}{Right}{Right} Return #n:: Send {Left}{Left}{Left}{Left}{Left}{Left}{Left} Return #left:: Send {LCtrl down} Send {LShift down} Send {Tab} Send {LCtrl up}{LShift up} Return #right:: Send <^{Tab} Return ; THIS CREATES A HOTKEY FOR PAGE-UP: #e:: Send {PgUp} return ; THIS CREATES A HOTKEY FOR PAGE-DOWN: #d:: Send {PgDn} return ; THIS QUICKLY RELOADS THE CURRENT SCRIPT: #r:: Reload return ; IRFANVIEW HOTKEYS: CopyWinCheck: { CopyDialogWinActive() { DetectHiddenWindows, On SetTitleMatchMode, 2 Sleep, 100 WinActivate WinGetTitle, CopyWinTit, A copywinid := WinExist("Copy") Loop { SplashTextOn,,,"Windows Title is %copywinid% (Iteration %RepeatCount%)" , Sleep, 500

SplashTextOff break } Controlfocus, %copywinid%, if WinExist("Copy") return 1 else Sleep, 1000 return 0 { if IsLabel(ReplaceWinCheck) Goto %ReplaceWinCheck% } } } return ReplaceWinCheck: { ReplaceDialogWinActive() { DetectHiddenWindows, On SetTitleMatchMode, 2 Sleep, 100 WinActivate WinGetTitle, WinTit, A winid := Winexist("Replace") Loop { SplashTextOn,,,"Windows Title is %WinTit% (Iteration %Re peatCount%)" , Sleep, 500 SplashTextOff break } Controlfocus, %winid%, if WinExist("Replace") { Return 1 { if IsLabel(RenameAndCopy) Goto %RenameAndCopy% } } else Sleep, 500 if IsLabel(CopyWinCheck) Goto %CopyWinCheck% else { SplashTextOn,,,"Oops CopyWinCheck Label Error", Sleep, 500 SplashTextOff } Loop, 10 { Sleep, 1000 if IsLabel(RenameAndCopy) Goto %RenameAndCopy% if WinExist("Copy") OR WinExist("Replace") OR Wi nExist("Browse") Sleep, 50

else Goto %end% } } } return #x:: IrfanMove: Send {# down} Send {c} Send {# up} Send {Delete} return #c:: IrfanCopy: Send {F8} Sleep, 150 Loop { if (CopyDialogWinActive()) { Sleep, 3000 Break } else Sleep, 5000 if WinExist("Copy") OR WinExist("Replace") Sleep, 50 else Break } RenameAndCopy: Loop { if (ReplaceDialogWinActive()) { Sleep, 100 Send {Tab}{Tab}{Tab}{down}{left} Random, rand, 1000000, 9999999 Send %rand% Send {enter} Break } else Sleep, 5000 if WinExist("Copy") OR WinExist("Replace") Sleep, 50 else Break } End: return #IfWinActive ahk_class IrfanView #p:: IrfanPause: { #Space:: SendInput {CtrlBreak}{Break} } return exit

S-ar putea să vă placă și