 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Laszlo
Joined: 14 Feb 2005 Posts: 4016 Location: Pittsburgh
|
Posted: Sun May 04, 2008 11:02 pm Post subject: |
|
|
| There were a few similar dimmer scripts posted to the Forum, here or there. Search could save you a lot of time… |
|
| Back to top |
|
 |
Oberon
Joined: 18 Feb 2008 Posts: 458
|
Posted: Sun May 04, 2008 11:16 pm Post subject: |
|
|
| Laszlo wrote: | | here or there | Wow do you maintain a personal categorized index of all your posts or do you just have exceptional memory? With phpbb2's poor searching algorithms I can never seem to find my previous scripts. |
|
| Back to top |
|
 |
heresy
Joined: 11 Mar 2008 Posts: 291
|
Posted: Sun May 04, 2008 11:34 pm Post subject: |
|
|
| Laszlo wrote: | | There were a few similar dimmer scripts |
how about this
fake brightness control?
i was failing on using API/SetDefaultGammaRamp
and i noticed that no one succeed about this brightness control thing
i really like this way
| Code: | Gui +AlwaysOnTop +ToolWindow +LastFound +E0x20 -Caption
Gui, Color, 0, 0
Gui, Show, x0 y0 w%A_ScreenWidth% h%A_ScreenHeight% na
id:=winexist()
WinSet, Transparent, 0,ahk_id %id% ;set default
c:=0, d:=0
SetFormat,float,0.0
^NumpadAdd::
If c between 0 and 255
{
If d!=255
{
Gui, Color, white, white
c+=5, d+=5
WinSet, Transparent, %d%,ahk_id %id%
traytip,,% d*100/255 "%"
}
}
Else If c between -255 and 0
{
If d!=0
{
c+=5, d-=5
WinSet, Transparent, %d%,ahk_id %id%
traytip,,% "-" d*100/255 "%"
}
}
Return
^NumpadSub::
If c between 1 and 255
{
If d!=0
{
c-=5, d-=5
WinSet, Transparent, %d%,ahk_id %id%
traytip,,% d*100/255 "%"
}
}
Else If c between -255 and 0
{
If d!=255
{
Gui, Color, 0, 0
c-=5, d+=5
WinSet, Transparent, %d%,ahk_id %id%
traytip,,% "-" d*100/255 "%"
}
}
Return |
_________________ Easy WinAPI - Dive into Windows API World
Benchmark your AutoHotkey skills at PlayAHK.com |
|
| Back to top |
|
 |
Micahs
Joined: 01 Dec 2006 Posts: 338
|
Posted: Mon May 05, 2008 3:03 pm Post subject: |
|
|
| Ti{BS 2}Oberon wrote: | | I can never seem to find my previous scripts | LOL, with only 382 posts it should not be too hard! _________________
 |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4016 Location: Pittsburgh
|
Posted: Mon May 05, 2008 4:56 pm Post subject: |
|
|
| He is actually Titan, and who knows how many different nicks he uses. So it is thousands of posts to be found... |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4016 Location: Pittsburgh
|
Posted: Mon May 05, 2008 5:03 pm Post subject: |
|
|
| heresy wrote: | | fake brightness control | It is. My laptop does not dim its backlight with it, so it did not save battery time for me. I used the transparent window dimmer in the car at night, when the laptop serves as a GPS navigator, but when the power connector loosens, there is an unpleasant surprise. |
|
| Back to top |
|
 |
Micahs
Joined: 01 Dec 2006 Posts: 338
|
Posted: Mon May 05, 2008 7:05 pm Post subject: |
|
|
I know. That was sarcasm and (apparently too) subtle humor.
| Micahs wrote: | | Ti{BS 2}Oberon wrote: | | I can never seem to find my previous scripts |
|
_________________
 |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4016 Location: Pittsburgh
|
Posted: Mon May 05, 2008 7:13 pm Post subject: |
|
|
I did not get your meaning of "Ti{BS 2}" . Cute! |
|
| Back to top |
|
 |
Micahs
Joined: 01 Dec 2006 Posts: 338
|
Posted: Mon May 05, 2008 7:23 pm Post subject: |
|
|
No worries, that was a bit esoteric! _________________
 |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|