|
-
June 23rd, 2010, 10:37 AM
#11
Re: Monitor Temperature
 Originally Posted by stin
That did it. I ran it, but didn't see a change in brightness.
Now come this questions, so I can understand how this is working.
Is RAMP1 set to the current gamma when the form loads?
RAMP2 is then supposed to be a change from RAMP1 (darker)?
Stepping though I see that lVal is always 0, so it RAMP2's values will always be 0
Ramp1(0,0) is supposed to store the current gamma settings
Ramp2 is supposed to be the changed value
My Ramp1 is also all 0's ( even with my previous example ), so I still think the whole problem is that the initial call to GetDeviceGammaRamp doesn't somehow succeed in storing the actual values inside Ramp1.
 Originally Posted by TT(n)
Hey Hannes, are you doing that in the closing event of the form?
If so, then try to e.cancel=true, if e.windowsshutdown is not true.
Then also environment.exit(0) after to manually exit the cancelled exit.
If the api are declared the same I think it will work, unless you do have a stubborn monitor ofcourse. lol 
Initially I did use the Closing event, but changed over to Closed.
I really do think my monitor is as stubborn as me, afterall, I feel like I'm the monitor's dad LOL! simple thing
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|