#NoTrayIcon
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Include <Skin.au3>
#include <MenuConstants.au3>
HotKeySet('{ESC}', '_Exit')
Global $bMouseJumpToCaption = False
Global $Button[2]
$hForm = GUICreate('', 183, 212, -1, -1, $WS_POPUP, BitOR($WS_EX_LAYERED, $WS_EX_TOPMOST, $WS_EX_TOOLWINDOW))
GUIRegisterMsg($WM_LBUTTONDOWN, "WM_LBUTTONDOWN")
GUICtrlSetState(-1, $GUI_DISABLE)
GUISetFont(8, 400, 0, "Arial")
$Button[1] = _Skin_AddButton(152, 184, 17, 17, 'times-circle-o.png', 'times-circle-o.png', 'times-circle-o.png', 'times-circle-o.png', 'times-circle-o.png', 1)
GUISetBkcolor(0xaaaaaa)
WinSetTrans($hForm, '', 200)
_Skin_EnableFocus(1)
GUISetState()
While 1
_Skin_Helper($hForm)
$ID = GUIGetMsg()
Switch $ID
Case $Button[1]
Exit
EndSwitch
Sleep(10)
WEnd
Func _Exit()
Exit
EndFunc
Func WM_LBUTTONDOWN($hForm, $iMsg, $wParam, $lParam)
If BitAND(WinGetState($hForm), 32) Then
Return $GUI_RUNDEFMSG
EndIf
DllCall("user32.dll", "long", "SendMessage", "hwnd", $hForm, "int", $WM_SYSCOMMAND, "int", ($bMouseJumpToCaption ? $SC_MOVE : 0xF009), "int", 0)
EndFunc