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 :)

tiistai 19. tammikuuta 2010

Use Dropbox & iPhone to listen internet radio

  1. Get your stream (mp3) E.g. http://www.syke.fm/sykefm.pls.
  2. Drop it into your Dropbox folder.
  3. Sync it. Takes no time.
  4. Chill with your iPhone.
Only MP3-streams are tested. I suppose there is no point testing Ogg Vorbis streams... Apple's support for it is nil.