Thursday 16 December 2010

How to get list of Windows 7 Startup programs from Registry using C#?

I was googling and digging into windows Startup apps running from registry keys and the whole startup order proccess. Here is what I found out.


Startup apps order list. 
(I am using Windows 7 HomePremium 64 bit.)


  • Boot execute HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\BootExecute
  • Run Services

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices

  • Logon Prompt - user enter username and password
  • UserInit HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\UserInit
  • Start Shell HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell
  • LocalMachine Run keys

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnceEx

Sunday 12 December 2010

NaskoShell - my custom windows desktop replacement app

UPDATE: 

This is discontinued project :(
I don't need custom shell for Windows anymore, because I switched to linux. OpenBox+PyTyle+Conky
Source is on my github have a look I you are intersted in Custom windows desktop shell in C#.


I have got 12.1" ASUS UL20a laptop and because of the size of the screen I wanted to optimize my desktop for better experience. I tried to simplify my default Windows 7 desktop, removed all icons, made Taskbar autohide, couldn’t completely remove it though.Finally I decided to write my own Windows desktop replacement.
So what I am working on is clear Desktop with:
  • my daily to do tasks,
  • time,
  • reminder,
  • simple background changer,
  • some nice motivational or inspirational quotes.
  • multiscreen (work, design, surf, chat, book reading, video )
  • launchy-like app launcher
  • fully keyboard control

Monday 1 November 2010

AIR app socket connection to Socket.IO-node server using Web-socket-js flash library

UPDATE 2012 - This article is outdated  please use https://github.com/simb/FlashSocket.IO for connecting Socket IO and Flash/Flex/AS3

Socket.IO is an awesome library for NodeJS for making  games and chat apps relying on WebSocket protocol. Web browsers supporting WebSockets at the time of this writing are Chrome, Safari and Firefox 4 beta, and Opera 10.70 beta Other browsers can use WebSocket over Flash or other methods (XHR Pooling, XHR Streaming, forever IFrame). In this article I will show you how I connected AIR app to Socket.IO-Node chat demo using WebSocket over Flash library made by Hiroshi Ichikawa.
Requirements:
- for the Server
UPDATE - github source -> here

Sunday 31 October 2010

How to make simple clean vertical image rotator without arrows using jQuery and jcarousel

I wanted to make simple carousel for a construction company but without arrows without additional images and effects, just simple image rotator (scroller) with anchor links to different products. Here is how i did it.

1 - get required libs:
http://sorgalla.com/projects/jcarousel/
http://jquery.com/

2 - write simple HTML file and add your images in list: