Hi guys, i have make this script: #include <WindowsConstants.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WinAPI.au3>
;~ #NoTrayIcon
;~ Opt("GUICloseOnESC", 0)
$height = @DesktopHeight
$width = @DesktopWidth
$GUI = GUICreate("", $width, $height, -1, -1, $WS_POPUP, $WS_EX_LAYERED, $WS_EX_TOOLWINDOW)
GUISetBkColor(0xABCDEF)
$Button = GUICtrlCreateButton("Test", 700, 15, 100, 50)
_WinAPI_SetLayeredWindowAttributes($GUI, 0xABCDEF, 250)
GUISetState()
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button
MsgBox(0,0,"Test")
EndSwitch
WEnd I have some question: 1) At startup is not very fast. I have make a wrong approach? 2) I want the gui on backgroud ( i want to see the button only if i don't have anything on it ), but if i open a folder/windows i see the button at foreground 3) I want to set the position of the button ot top left for every PC, in my VM is: But on another PC with higher resolution is not the same position. How to make a generic position of the button? Thanks for help