sunnuntai 7. maaliskuuta 2010

AutoHotKey esimerkkejä

Tässä seuraavassa muutamia esimerkkejä, vinkkejä, jne AutoHotKey-ohjelmaan.

; Opens default web browser and surfs to given URL
; Windows Flag + z
#z::
Run www.autohotkey.com

; Open new NotePad document
; Bit more complicated example
; CTRL + ALT + n
^!n::
IfWinExist Untitled - Notepad
WinActivate
else
Run Notepad
return

; Opens a shortcut (*.lnk)
; CTRL + p
^p::
Run "C:\Program Files\ProjectX-v0.90.04.00-20060330\ProjectX.lnk"

; Takes PrintScreen and dumps it into Mspaint.
; CTRL + ,
^,::
Send {PrintScreen}
Run %SystemRoot%\System32\mspaint.exe
WinWait nimetön - Paint
Send ^v

Ei kommentteja: