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

testing email blogging

This should be the body
Of the text.
What is the tag

maanantai 1. maaliskuuta 2010

How Microsoft Vista stores default icons of certain file extension in the Windows registry

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\VLC.avi]
@="VLC media file (.avi)"

[HKEY_CLASSES_ROOT\VLC.avi\DefaultIcon]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\",0"

Changing the DefaultIcon key is the way to change the icon :)