AutoHotkey Community

It is currently May 27th, 2012, 10:36 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 27 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: May 4th, 2008, 11:02 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
There were a few similar dimmer scripts posted to the Forum, here or there. Search could save you a lot of time…


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 4th, 2008, 11:16 pm 
Offline

Joined: February 18th, 2008, 8:26 pm
Posts: 442
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 4th, 2008, 11:34 pm 
Offline

Joined: March 11th, 2008, 11:36 pm
Posts: 291
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 :lol:

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 5th, 2008, 3:03 pm 
Offline

Joined: December 1st, 2006, 9:27 am
Posts: 460
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!

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 5th, 2008, 4:56 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
He is actually Titan, and who knows how many different nicks he uses. So it is thousands of posts to be found...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 5th, 2008, 5:03 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 5th, 2008, 7:05 pm 
Offline

Joined: December 1st, 2006, 9:27 am
Posts: 460
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

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 5th, 2008, 7:13 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
I did not get your meaning of "Ti{BS 2}" :oops: . Cute!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 5th, 2008, 7:23 pm 
Offline

Joined: December 1st, 2006, 9:27 am
Posts: 460
No worries, that was a bit esoteric!

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 15th, 2009, 2:16 am 
Offline

Joined: April 7th, 2008, 11:19 am
Posts: 8
This looks interesting.

Anyway to have a transparent image popup?

-Skooter


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 15th, 2009, 3:46 am 
Offline

Joined: December 1st, 2006, 9:27 am
Posts: 460
Yep!

Code:
file = %A_ScriptDir%\dot.png
If !FileExist(file)
{ URLDownloadToFile, http://www.autohotkey.net/~Micahs/test/dot.png, dot.png
}

Gui -Caption +AlwaysOnTop +ToolWindow +E0x20 +LastFound
Gui, Color, 0xDFDFDF
WinSet, TransColor, 0xDFDFDF 100
Gui, Add, Picture, AltSubmit BackgroundTrans x0 y0 w%A_ScreenWidth% h%A_ScreenHeight%, %file%
Gui, Show, x0 y0 w%A_ScreenWidth% h%A_ScreenHeight% NA

Return

Esc::ExitApp

It will download the image into the script's dir if it doesn't already exist. I think you will want to pick a background color that more or less matches the transparent color of your image.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 16th, 2009, 3:01 am 
Offline

Joined: April 7th, 2008, 11:19 am
Posts: 8
Thanks.

This works quite well.

I'm thinking about making an application that this would be helpful for.

-Skooter


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 27 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, chaosad, specter333 and 75 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group