; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a ; semicolon, such as this one, are comments. They are not executed. ; C:\Documents and Settings\Username\My Documents\AutoHotkey.ahk script has a special filename and path because it is automatically ; launched when you run the program directly. Also, any text file whose ; name ends in .ahk is associated with the program, which means that it ; can be launched simply by double-clicking it. You can have as many .ahk ; files as you want, located in any folder. You can also run more than ; one ahk file simultaneously and each will get its own tray icon. ; #z::Run www.autohotkey.com ;Win+Z and it launches a web site in the default browser ; ^!n:: ;Control+Alt+N launches a new Notepad window (or activates an existing one) ; IfWinExist Untitled - Notepad ; WinActivate ; else ; Run Notepad ; return ; Muj skript pro pedal 8/2008 SetTitleMatchMode, 2 ; text hledany v Title okna muze byt na libovolne pozici (Case sensitive!) ; Montuje se do toho cestina!!!! Treba ^7 se pri CS klavesnici nekde cestou prelozi na Ctrl-Shift-7 !!!! ;================================= ;Levy pedal : Power Tab Editor: Ctrl(^) + Home skok na zacatek ; obcas to nefunguje a pomuze pred to dat PgDn ; IrfanView: {PgUp}{PgUp}{PgUp} 3xPgUp obvykle staci doskakat na zacatek ; Transcribe! Ctrl(^) + sedm(7) 3% rychlosti ubrat ; Winamp {Left} skok zpet SC079:: ;left pedal, ORG orange wire, radek 6 a sloupec 9 , BIOS 0x79 IfWinActive, Power Tab Editor { SendInput {PgDn}^{Home} ; Skok na zacatek return } else IfWinActive, IrfanView { SendInput {PgUp}{PgUp}{PgUp} return } else IfWinActive, Transcribe! { SendInput ^{vk37sc008} ; to je Ctrl-7 , nezavisle na cestine return } else IfWinActive, Winamp { SendInput {Left} return } else return ;================================ ;Prostredni(horni) pedal: Power Tab Editor: klik na horni button ; IrfanView: sipka nahoru {Up} ; Transcribe! Pause ; Winamp x skok na zacatek a start SC02B:: ;top pedal, BRW brown wire, radek 8 a sloupec 9, \| BIOS 0x2B Win 0xDC Blokuje backslash v jinych programech! Pustit dal, kdyz nemam to spravne okno? Pak zas slapnuti na ;pedal bude posilat backslash nekam kam nechci. IfWinActive, Power Tab Editor { MouseMove, 1008, 144, 0 SendEvent {Blind}{LButton down} ; SendEvent/Click? Blind? KeyWait SC02B:: ; Prevents keyboard auto-repeat from repeating the mouse click. Radeji autorepeat od posuvniku nez od klavesnice... SendEvent {Blind}{LButton up} return } else IfWinActive, IrfanView { SendInput {Up} return } else IfWinActive, Transcribe! { SendInput {Space} return } else IfWinActive, Winamp { SendInput x return } else { SendInput {vkDCsc02B} ;Radeji posleme backslash, nez aby ho skript blokoval. return } ;================================ ;Pravy pedal : Power Tab Editor: klik na dolni button ; IrfanView: sipka dolu {Down} ; Transcribe! Ctrl(^) + nula(0) 3% rychlosti navic ; Winamp {Right} skok dopredu SC07E:: ;right pedal, RED wire, radek 7 a sloupec 9, BIOS 0x7E Win 0xC2 IfWinActive, Power Tab Editor { MouseMove, 1008, 672, 0 SendEvent {Blind}{LButton down} KeyWait SC07E:: ; Prevents keyboard auto-repeat from repeating the mouse click. SendEvent {Blind}{LButton up} return } else IfWinActive, IrfanView { SendInput {Down} return } else IfWinActive, Transcribe! { SendInput ^0 return } else IfWinActive, Winamp { SendInput {Right} return } else return ^!p:: ;This example makes the Ctrl+Alt+P hotkey equivalent to pressing Winamp's pause/unpause button: IfWinNotExist ahk_class Winamp v1.x return ; Otherwise, the above has set the "last found" window for use below. ControlSend, ahk_parent, c ; Pause/Unpause return ^!o:: ;This example makes the Ctrl+Alt+O hotkey test: IfWinNotExist test_only_delete_it ahk_class Notepad return ; Otherwise, the above has set the "last found" window for use below. ControlSend, , Test_ ;SendInput d return ; Pro AutoHotkey.ahk soubor: ; Note: From now on whenever you run AutoHotkey directly, this script ; will be loaded. So feel free to customize it to suit your needs. ; Please read the QUICK-START TUTORIAL near the top of the help file. ; It explains how to perform common automation tasks such as sending ; keystrokes and mouse clicks. It also explains more about hotkeys.