#include <Constants.au3>
#include <WinAPI.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include<StaticConstants.au3>
Opt("GUIOnEventMode", 1)
Global $hMain, $iW = 800, $iH = 800, $msg, $ColourSlider, $Mx, $My, $Col1, $Trans1
; Create Slider GUI
$hGUI1 = GUICreate("SliderGUI", 217, 126, 86, 793)
$iSlider1 = GUICtrlCreateSlider(6, 74, 201, 21)
$TransLabel = GUICtrlCreateLabel("Adjust Transparency", 66, 62, 101, 17)
$Clickthru = GUICtrlCreateCh