 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Aeox Guest
|
Posted: Sun Mar 08, 2009 6:42 am Post subject: Black Background Isn't Black? |
|
|
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
|
Posted: Sun Mar 08, 2009 7:54 am Post subject: |
|
|
I tested your script on my laptop,
here it shows fine black color including the editbox's background.
try this
|
|
| Back to top |
|
 |
Aeox Guest
|
Posted: Sun Mar 08, 2009 9:07 am Post subject: |
|
|
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
|
Posted: Sun Mar 08, 2009 12:10 pm Post subject: |
|
|
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 |
|
 |
happytodd
Joined: 12 Nov 2007 Posts: 142 Location: South Australia
|
Posted: Mon Mar 09, 2009 1:09 am Post subject: |
|
|
Got to say I love this script. Im definetely going to use it  _________________
 |
|
| Back to top |
|
 |
poetbox
Joined: 07 Jan 2007 Posts: 107
|
Posted: Mon Mar 09, 2009 1:55 am Post subject: |
|
|
| happytodd wrote: | Got to say I love this script. Im definetely going to use it  |
me,too.
~from last night  |
|
| 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
|