public Marker()
{
InitializeComponent();
SetWindowLong(this.Handle, -20, GetWindowLong(this.Handle, -20)
| 0x20 | 0x80000 | 0x08000000); //TRANSPARENT,LAYERED,NOACTIVATE
Rectangle ScrBnd = Screen.PrimaryScreen.Bounds;
Location = new Point(ScrBnd.Right, ScrBnd.Bottom);
Size = ScrBnd.Size;
ClearMarks();
Location = new Point(0, 0);
Nav = new CountedNavi(
AutoElem.FromHandle(GetDesktopWindow())
);
Nav.Walker = TreeWalker.ControlViewWalker;
Nav.CurElemChanged += MarkElemInfo;
RegHotkey(0, MK.Alt | MK.Control, Keys.Up);
RegHotkey(1, MK.Alt | MK.Control, Keys.Down);
RegHotkey(2, MK.Alt | MK.Control, Keys.Left);
RegHotkey(3, MK.Alt | MK.Control, Keys.Right);
RegHotkey(6, MK.Alt | MK.Control, Keys.D1);
RegHotkey(7, MK.Alt | MK.Control, Keys.D2);
RegHotkey(5, MK.Alt | MK.Control, Keys.Enter);
}