Add to Technorati Favorites
Welcome to ThePowerShellGuy.com Sign in | Join | Help

Hey PowerShell Guy ! what is the Hex value of Chocolate ?

Didn't you always' wanted to know this ?

 

This time not a Hey Scripting Guy ! translation, but from a NG post answer Translating colors to hex and back   (color asked was Red actually ;-) ) :

PoSH> "{0:x}" -f ([drawing.Color]'Chocolate').ToArgb()                                                                  
ffd2691e                                                                                                                
PoSH>                                                                     

 

 For More Color Hex translations :

[enum]::GetNames([drawing.KnownColor]) |% {$_;"{0:x}" -f ([drawing.Color]$_).ToArgb()}

 

Enjoy,

Greetings /\/\o\/\/

Published Thursday, March 08, 2007 2:36 PM by admin
Filed under: , , ,

Comments

# re: Hey PowerShell Guy ! what is the Hex value of Chocolate ?

Hi Admin:

Could you please does Powershell can control IE Dom to do some stuff?

e.g.

When launch Internet Explorer by script below,

$oIE=new-object -com internetexplorer.application

$oIE.visible=$true

$oIE.navigate2("http://spaces.live.com/")

while ($oIE.busy) {

   sleep -milliseconds 50

}

Is it posissible to continue to control the IE window to input user passport and password and then login spaces by parse the IE DOM with Powershell?  

Thank you!

With kind personal regards,

Belem Cheung

Friday, March 09, 2007 2:42 AM by Belem

# re: Hey PowerShell Guy ! what is the Hex value of Chocolate ?

Friday, March 09, 2007 6:58 AM by Marco Shaw

# re: Hey PowerShell Guy ! what is the Hex value of Chocolate ?

Thank you Macro, it's really helpful.

Thanks again :)

Belem

Tuesday, March 13, 2007 2:08 AM by Belem

# re: Hey PowerShell Guy ! what is the Hex value of Chocolate ?

hey mow

Tuesday, March 20, 2007 4:30 PM by klumsy
Anonymous comments are disabled