#SingleInstance, Force ; if another instance is open, force this one over it silently.
DetectHiddenWindows,on
OnMessage(0x201, "WM_LBUTTONDOWN")
WM_LBUTTONDOWN()
{
PostMessage, 0xA1, 2
return
}
; make it draggable
Menu,Tray,Click,1
Menu,Tray,NoStandard
Menu,Tray,DeleteAll
Menu,Tray,Add,Start Button,Nothing
Menu,Tray,Add,
Menu,Tray,Add,Move On, Move
Menu,Tray,Add,Move Off,moveoff
Menu,Tray,Add,
Menu,Tray,Add,Hide Icon,Hide
Menu,Tray,Add,
Menu,Tray,Add,E&xit,EXIT
; edit the tray right click menu
GUI:
Gui, Margin, 0, 0
Gui, Color, 000000
Gui -resize -sysmenu
Gui, +LastFound -Caption
WinSet, Region, 0-0 w40 h39 r1000-1000 E
Gui, Add, Picture, xm+0 ym+0 w38 h38 -0x200 -backgroundtrans gStart, 1.bmp
Gui,Show,Center Autosize,Start_Opener
; 1.bmp is the image to use as a start orb)
return
Start:
Send {LWin}
return
Hide: (yet to have the code added)
return
Move:
Gui +Caption
return
moveoff:
Gui -Caption
return
Nothing: (used for the tray text above, to make a place holder)
return
EXIT:
Exitapp