|
#include <GUIConstantsEx.au3>
$locationx=@DesktopWidth-330
$mon=GUICreate("TEST MONITOR",320,200,$locationx,0)
$setinfowin=GUICtrlCreateButton("setinfo",0,0,80,40)
GUISetState(@SW_SHOW,$mon)
WinActivate("TEST MONITOR")
$setinfobutton = GUICtrlGetHandle($setinfowin)
MsgBox(0,"setinfobutton is",$setinfobutton)
sleep(2000)
$tBuffer = DllStructCreate("short r[256];short g[256];short b[256]")
DllStructSetData($tBuffer, "r", 99)
DllStructSetData($tBuffer, "g", 66)
DllStructSetData($tBuffer, "b",99)
$iResult = DllCall("Gdi32.dll", "int", "SetDeviceGammaRamp", "hWnd", $setinfobutton, "ptr", DllStructGetPtr($tBuffer))
;SetMenuColor($setinfobutton, 0x99BBEE)
Sleep(20000) |
|