AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Black Background Isn't Black?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Aeox
Guest





PostPosted: Sun Mar 08, 2009 6:42 am    Post subject: Black Background Isn't Black? Reply with quote

I'm making a password program to run before the computer boots entirely.

Here is the code.
Code:
; Set The Text Variables To Set The Text In The Middle
TEXTx = %A_ScreenWidth% * 2
TEXTy = %A_ScreenHeight% * 2
THEME = 0xFF0000

; Create Cover
Gui, +ToolWindow -Border -caption
Gui, color, 0x000000
Gui, font, cLime s18
Gui, Color, ControlColor, 0x000000
TEXTx -= 300
TEXTy -= 70
Gui, Add, Edit, x%TEXTx% y%TEXTy% -Multi +Password# c%THEME% vPASSWORD gCHECK
TEXTy -= 30
Gui, Add, Text, x%TEXTx% y%TEXTy% c%THEME%, Password:


Gui, Show, x0 y0 w%A_ScreenWidth% h%A_ScreenHeight%, cover
return




CHECK:
Gui, Submit, NoHide
if PASSWORD = test
{
   PSY = 255
   loop 43 {
      Gui +LastFound
      WinSet, Transparent, %PSY%
      PSY -= 6
   }
   ExitApp
}

Esc::
exitapp


The black "background" for the gui is actualy a grey-ish color.
You can tell the difference from the background of the edit box.

How can I make the gui black like that?
Back to top
Montu



Joined: 11 Feb 2009
Posts: 142
Location: India

PostPosted: Sun Mar 08, 2009 7:54 am    Post subject: Reply with quote

I tested your script on my laptop,
here it shows fine black color including the editbox's background.


try this
Code:
 
Gui, color, Black
Back to top
View user's profile Send private message
Aeox
Guest





PostPosted: Sun Mar 08, 2009 9:07 am    Post subject: Reply with quote

Huh,

Oh well then.
Didn't expect it to work when others tried it.
Well, mission complete then.
Back to top
closed



Joined: 07 Feb 2008
Posts: 509

PostPosted: Sun Mar 08, 2009 12:10 pm    Post subject: Reply with quote

you are right , i can see the difference

taking a snapshot and colorpicker in gimp the screen gives 0,0,12 and the edit window 0,0,0

but do not see why ??
Back to top
View user's profile Send private message
happytodd



Joined: 12 Nov 2007
Posts: 142
Location: South Australia

PostPosted: Mon Mar 09, 2009 1:09 am    Post subject: Reply with quote

Got to say I love this script. Im definetely going to use it Razz
_________________

Back to top
View user's profile Send private message Visit poster's website
poetbox



Joined: 07 Jan 2007
Posts: 107

PostPosted: Mon Mar 09, 2009 1:55 am    Post subject: Reply with quote

happytodd wrote:
Got to say I love this script. Im definetely going to use it Razz

me,too.
~from last night Laughing
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group