Help change the lightness of the foreColor script
Hello
I would like some help with the scripts here: I am currently using this script that I found in the forums to change the brightness of the current foreground color
*****************
#target photoshop
var foreColor = new SolidColor;
foreColorH = app.foregroundColor.hsb.hue; Initial value
foreColorS = app.foregroundColor.hsb.saturation;
foreColorB = app.foregroundColor.hsb.brightness;
foreColor.hsb.hue is foreColorH + 0.;
If (foreColorB + 10 > 100) {foreColor.hsb.brightness = 100}
else {foreColor.hsb.brightness = foreColorB + 10 ;}
foreColor.hsb.saturation is foreColorB + 0.;
app.foregroundColor = foreColor;
*********************
Modify this script to brightness-10 only the result below (red arrows), but what I really need, is to change the lightness down if the color picker is going down, as the blue goes to the top.
Thanks much for any help.
This line is incorrect. It is assign the value of brightness saturation:
foreColor.hsb.saturation=foreColorB+0;
It should be:
foreColor.hsb.saturation=foreColorS+0;
Tags: Photoshop
Similar Questions
-
Please help improve the JavaScript script
Please help improve the JavaScript script
Hello
to increase or decrease the height of a subform, you use the following syntax in the click of + and - button
cmdAdd::JavaScript
_Row1.addInstance (1);
var b is parseFloat (Subform3.h) - 6.5;.
If (b<>
b = 0;
}
Subform3.h = b + "mm";
cmdRemove::JavaScript
If (_Row1.count > 1) {}
var b is parseFloat (Subform3.h) + 6.5.;
Subform3.h = b + "mm";
_Row1.removeInstance (this.parent.index);
}
This should do the trick, I hope this will help you
-
Help change the script to a report
I tried, but have been unable to make this script in a report. Here's the script I would like to make a report:
{foreach ($VMHost in Get-VMHost)
$esx = get-view-Id $VMHost.id
{foreach ($vSwitch to $esx.Config.Network.Vswitch)}
Write-Host $vSwitch.Name
Write-Host "' tmac changes:" $vSwitch.Spec.Policy.Security.macChanges
Write-Host "' tForged passes:" $vSwitch.Spec.Policy.Security.ForgedTransmits
}
}I would also add the esx host name in the output. I would like the output to this format if possible:
esxservername, mac, wrought changes passes
I was looking at this script as sort of a model, but when I went to replace parts of the script it just did not work properly. This script is the VM information, but I'm looking for the script above be put in this type of report format. Or am I wrong in that the script above is only good for just posting out on-screen during the launch in powerCLI?
$report = foreach ($vm in (Get - VM | where {$_.})) PowerState - eq 'Receiving'})) {}
Get-NetworkAdapter - VM $vm | `
Select @{N = "VMname"; E = {$vm. Name}},
@{N = "MAC address"; E={$_. MacAddress}}
}$report | Export-Csv «.\output.csv"- NoTypeInformation - UseCulture
Thanks in advance for any help.
Hi Mark,
The following script will give you the report of your choice:
Get-View -ViewType HostSystem | ForEach-Object { $VMHostView =$_ $VMHostView.Config.Network.vSwitch | ForEach-Object { $Report = "" | Select-Object -Property VMHost,vSwitch,"MAC Changes","Forged Transmits" $Report.VMHost = $VMHostView.Name $Report.vSwitch = $_.Name $Report."MAC Changes" = $_.Spec.Policy.Security.macChanges $Report."Forged Transmits" = $_.Spec.Policy.Security.ForgedTransmits $Report } }
Best regards, Robert
-
Help with the Powershell script to collect logs from all domain controllers
I am writing a script to retrieve the last 5 days of application, security and log files from all domain controllers. The script runs, but fire the logs from the local server only. The variable $Computer has all of my DC so it's the fine mark. I guess it's a problem with my line ForEach-Object, but is not error. See the below script.
$log = 'application '.
$date = get-date-format MM-DD-YYYY
$now = get-date
$subtractDays = new-object System.TimeSpan 5,0,0,0,0
$then = $Now.Subtract ($subtractDays)
$Computers = get-ADDomainController-filter *.
ForEach-Object - InputObject $Computers - process {Get-EventLog - LogName $log - after $then - before $now - EntryType error | select EventID, MachineName, Message, Source, TimeGenerated |} ConvertTo-html | {Out-file $env:TEMP\Applicationlog.htm}
Invoke-Expression $env:TEMP\Applicationlog.htmThank you
Rich
Hello
To help with the repost the question script to the script Center Forum
http://social.technet.Microsoft.com/forums/scriptcenter/en-us/home
-
Help change the passwords so often
Is there a way to reset my Microsoft Windows Vista security while I wonder not to change the password every 60 days or more? I am referring to the administrator account that appears once the pc is restarted. I don't need this kind of security for this computer.
Thank you
Is - this message about your password is about to EXPIRE, or the words in this nature? And you will have 14 days?
If so, use the tutorial below link. Use the three method...
http://www.Vistax64.com/tutorials/96092-password-expiration-Vista.htmlt-4-2
-
[AS] Help: Change the text in overflow <; text frame >;?
Hello again,
I am filling the blocks of text in my document with a randomtext in a table. Works fine now.
But not knowing how many characters compatible with, in the text box, which has space for only one line, about 10 words, I'll try not to repeat the random process until that theres no overflow the box.
The problem is this: when I edit text in the text block and it overflows, evil change the new text - but only the visible text gets crushed, leaving the rest overflowing in the box and keeps adding up and never ends the repeat loop.
if class of myPageItem as String = "text frame" then
set text of myPageItem to «"& my TextFill()»»
repeat until overflows of myPageItem = false
the value text of myPageItem to «"& my TextFill()»»
end Repeat
end if
Its the thing with the text in the text frame... How to crush each text visible and not visible in the box, any suggestions?
It does not work. What we have here is a failure to communicate. Here are the main points in javascript:
myTextFrame = app.selection [0]; I chose a block of text with the type tool, drag
myTextFrame.contents; the words that are part of the framework
myTextFrame.parentStory.contents; the entire contents of the story, including everything in excess
myTextFrame.overflows; true
Make sure myTextFrame is a reference to an object in the image text.
-
Help change the email address in my profile
I can't find the place to change my information? I accidentally typed my wrong email when setting up my account and I was not able to figure out how to change my email and update? Only managed to change the password and I do not need to do this? any suggestions
I looked for the answer to this question too. I came up with this:
The Adobe Forums do not store your email address. Your e-mail address is part of your Adobe ID on Adobe.com. To change your email address, you will need to change your account on Adobe.com.
1. go to https://www.adobe.com/account/account-information.html
2. sign in with your Adobe ID.
3. in the section my Adobe ID, make the necessary changes
4. click on save my changesThis will change the email address on your Adobe account. Don't forget to sign with the new e-mail address the next time you visit the forums.
-
Help: Change the color of the font of the text in a Table with the key
Hi all
I'm designing a website for a college project in Dreamweaver CS3. Currently, I am implementing accessibility for users, creating a background/font color changer. By making the transparent table, I can now change the background color together. However, I'm fighting to change the color of the font.
To see what I mean, here is so far the Web site: http://itsupport.comlu.com/index.html
At the top left, you will notice buttons. It's the color changer.
The problem of course, is that the text is unreadable when I change for say, a white background.
Here is my code for the buttons:
<! - color changer - > < form > "" < input type= "button" value= "White" style= 'background: white;" onClick= "document.body.style.backgroundColor ="#FFFFFF "; "Table1.FgColor = '#000000';" > "" < input type= "button" value= "Green" style= 'background: Green;" onClick= "document.body.style.backgroundColor = ' #008000 '; document.fgColor =' #FFFF00";">" "" < input type= "button" value= "Blue" style= 'background: Blue;" onClick= "document.body.style.backgroundColor = ' #0000CC '; document.fgColor ='#FFFFFF ';" > " "" < input type= "button" value= "Red" style= 'background: Red;" onClick= "document.body.style.backgroundColor = ' #FF0000 '; document.fgColor =' #FFFF00";">" < / make > The table is named "Table1". I guess I have to refer to this somehow, but I don't know how. You can see in the code of the white button I tried "Table1.fgColor" and similar variations.
I know many of you will say just "do not use tables. Yes, I learned that the hard way. Unfortunately, I have no time completion of this project, so I do not wish to recreate the entire site using DIV tags
Thanks in advance!
You can download the .js files on the example site you mentioned. Or, you could use a CDN service hosted and your page a link to there .js files.
You can link jquery.js from Google - http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
Code will be in your
Tags as follows:You can also download these files .js locally and bind them on your own server.
This is a jQuery CDN repository: http://code.jquery.com/
You can also use another CDN - http://docs.jquery.com/Downloading_jQuery#CDN_Hosted_jQuery
-
Change the PowerCLI Script to use the DRS and DRS storage
Hello
I have a PowerCLI script that specifies a host and a data store to create a new virtual machine, which has served us well. Now we have activated the DRS and DRS storage and I wonder what to change in order to take advantage of these features. Are there commands to specify a cluster and the cluster data store and let the DRS to decide the initial investment for a new virtual machine? At the moment we put all hosts and the warehouses of data as variables and use them in the line below.
Thank you.
$newVM = New-VM-name $NewVMname - VM $TemplateName Datastore - $datastore - VMHost $vHost - confirm: $false - location $myName
You set a Datastorecluster?
If Yes, then you can replace the value of parameter data with the datastorecluster object store.
Replacing a VMHost with a cluster is not taken in charge I'm afraid.
But you can use something like this
New-VM-name TestVM Datastore - DSC - ResourcePool (Get-Cluster-name mycluster |) Get - Resourcepool - name of resources)
This will automatically select the VMHost.
The virtual machine appears in the root of the cluster.
DSC is the name of a datastorecluster in the cluster mycluster
-
Hello
I have some related issues oppose executing this script to list physical NETWORK card speeds by NIC for each host. The error is:
The method call failed because http://System.Management.Automation.PSObject contains not one me
Taylor named "op_Addition.
Online: 12 char: 23
+ += $NicSpReportObj < < < < $NicSpReportObj
+ CategoryInfo: InvalidOperation: (op_Addition:String)], RuntimeException
+ FullyQualifiedErrorId: MethodNotFound
Hostname Teddy speed
esx14.domain.com pnic0 1000
It will list until I would be the last entry in the object but of course its not adding in the previous info (or deleting it may be).
If someone could take a look it would be great.
Thank you
Dan
Script (also attached):
$VMHosts = get-VMHost | Sort name | Get-View
$NicSpReport = @)
$NicSpReportObj = "" | Select-Object HostName, Teddy bear, speed
Foreach ($VMHost to $VMHosts)
{
$pnic = 0
{}
$Speed = $VMHost.Config.Network.Pnic [$pnic]. LinkSpeed.SpeedMb
$NicSpReportObj.HostName = $VMHost.Name
$NicSpReportObj.pNIC = ' teddy bear$ Teddy. "
$NicSpReportObj.Speed = $speed
$NicSpReportObj += $NicSpReportObj
{$pnic ++}
Until the ($pnic - eq ($VMHost.Config.Network.Pnic.Length))
}
$NicSpReport += $NicSpReportObj
$NicSpReport | FT - AutoSize
I have a little rewriting of your script. I hope it will do what you want now:
Get-VMHost | ForEach-Object { $VMHost = $_ $VMHost.Extensiondata.Config.Network.Pnic | ForEach-Object { $NicSpReportObj = "" | Select-Object HostName, pNIC, Speed $NicSpReportObj.HostName = $VMHost.Name $NicSpReportObj.pNIC = $_.Device $NicSpReportObj.Speed = $_.LinkSpeed.SpeedMb $NicSpReportObj } } | Sort-Object -property HostName,pNIC | Format-Table -AutoSize
Best regards, Robert
Update: moved the Sort-Object cmdlet at the end of the script to also perform a sort on the attribute of Teddy.
Post edited by: RvdNieuwendijk
-
Well, in my inexperience, I screwed up. Now, I'm screwed. I have a project that I shot on Super8 at 18 frames per second. I was given a PAL transfer, but ended up doing a lot of work in Premiere Pro... In NTSC.
I tried to start a new project with the PAL settings and then import the other project for I can have all my audio in various tracks, making it easy to change. But who gave me a single audio track that I can't change.
So, how can I go in my initial project and change sequence settings? Everything is grey. I can't touch or change anything. And I'm not crazy. I spent the last four days trying to understand this. Those of you who know me know that I only come here if I'm really lost and I didn't ask questions for awhile
So please, someone, save me!
Create a new sequence PAL and then copy and paste the mounting rails
your sequence NTSC in PAL sequence.
-
HP Compaq 6000 Pro SFF: Help change the chassis.
Nice day.
I have a HP Compaq 6000 Pro SFF PC, I want to upgrade in a mini tower, is it possible with this PC? The reason is because I want to install a new GFX card and a cooling system for best performance, however, @ 240 PSU will be not reduced, especially not when I already 2 SATA drives. Can someone tell me please on what to do? Thanks in advance.
PS: My PC is already out of warranty 3 months ago. If I can do pretty much anything I want with it without breach of the warranty.
Specifications of the PC:
HP Compaq 6000 Pro SFF
Intel Core 2 Duo E7500 2.93 Ghz
1 x DDR3 2 G of Ram
2 x SATA hard drives
1 x DVD player
Windows 7 SP1 (32-bit)
1 x PCI-E slot? (I do not currently know what type of housing is)
POWER SUPPLY 240
The motherboard so that the PC is listed as a BTX. The typical motherboard is ATX. HERE IS a PAGE that gives information of the two styles differences. What I see, the BTX is built around designs of air traffic, so be careful.
-
Please - need help changing the rules to exclude certain hosts/guests
I need to find a way to exclude certain hosts and invited only a few rules, and I can't seem to understand. Here is my example.
I have a guest who I want to disable monitoring of the 'Memory of Virtual Machine of VMW Swapping' State. The guest I want to exclude the rule is called "ucapmil1 (QAUCL).
So I in the field field of application of this particular rule rule:
"VMWVirtualMachineMemory where virtualMachine.name does not correspond to ' ucapmil1 (QAUCL)"
I also tried
VMWVirtualMachineMemory where monitoredHost.name! = 'ucapmil1 (QAUCL).
Neither seems to make a difference. Can someone point me in the right direction? Thanks in advance.
Try using esxServer.name
-
[HELP] Change the content on a page after it is loaded.
This is a very basic question, but for the life of me, I can't find the answer. I have a simple div "mainarea":
Right after, I use:
Essentially, who tries to run (in a .js file):
document.getElementById(divtouse).innerHTML = '
There are currently no directories saved.';I tried to put this line directly under my div to see if that would work, without going. I also tried using the element instead of document I've read somewhere that is what should be used, but it also did not work.
I think I'm going to this topic in the wrong process, if some tips would be great! I Googled it until my eyes hurt and come up with nothing, so my post here.
Thank you!
I solved this problem! I knew it was something basic and dumb. I had to put the function in the ondomready so he could deal with in the correct order.
-
help strengthen the existing script maps
So I tried initially comes to loop through all the files but could not understand so I made sure that I could pass the file as a parameter, but ideally, I want it to all virtual machines without having to enter all the settings. Any ideas on the best way to do this? I want to the csv files for each folder with all the attributes that are customized for each virtual machine contained in.
##Variables
Param ($param1)
$report = @)
$folders = get-file $Param1 # | name sort
############################################################################################
###########################
ForEach ($folder in $folders)
{
$vms = get-vm-location $folder
ForEach ($vm to $vms)
{
$ReportObj = "" | Select "File", "Virtual Machine", "POC", "Username", "Password",
$ReportObj. "" Folder "= $folder.name
$ReportObj. "' Virtual Machine ' = $vm.name
$ReportObj. "' POC ' = $vm. CustomFields
$ReportObj. "' Username ' = $vm. CustomFields
$ReportObj. "' Password ' = $vm. CustomFields
$Report += $ReportObj
$csvfile = "D:\". "$folder".csv ".
$report | Export-CSV $csvfile - NoTypeInformation
}
}
The Get-FolderPath filter returns anything you put in the $row.
Then if you add additional properties, they will be in the CSV files.
For example, the following version adds the Notes property and all of the custom attributes
filter Get-FolderPath { $vmImpl = $_ $_ | Get-View | % { $row = "" | select Name, Path, Notes $row.Name = $_.Name $current = Get-View $_.Parent $path = "" do { $parent = $current if($parent.Name -ne "vm"){$path = $parent.Name + "\" + $path} $current = Get-View $current.Parent } while ($current.Parent -ne $null) $row.Path = $path $row.Notes = $vmImpl.Description $vmImpl.CustomFields.GetEnumerator() | %{ $row | Add-Member -Name $_.Key -Value $_.Value -MemberType NoteProperty } $row } } Get-VM | Get-FolderPath | Group-Object -Property Path | %{$_.Group | Export-Csv ("C:\" + ($_.Name.TrimEnd("\")).Replace("\","-") + ".csv")}
This version also solves the problem with the file name of the CSV files which was leaking.
Maybe you are looking for
-
When I try to add a language through the screen of the Control Panel, it will not activate the OK button, so I can't complete the addition fact. Why is it so different from Windows XP and earlier versions?
-
The IPCC Outbound Option time zone setting
Hello Option out of the IPCC, how can I set time zone for each customer record? I might be able to set the GMTZone and GMTZoneWOrk fields in the DB Dialing_List to set the timezone for each customer record. However, if I want to import a list of cont
-
I try to turn on logging for NAT on my hub (v4.7.2k 3030). I connect several classes already. I've looked through each of the classes of events, but nothing seems to be for NAT. Ideas?
-
How can I use variable presentation logic SQL
Hi Experts,How can I use variable SQL logical presentation. I need the exact syntax. Kindly help me to achieve this goal."Time". "" Date "between the Date of 2014 '-1-17 'and Date' ' 2014-2-16Thanks in advanceAsim
-
The question is in the title already my user account is the only one on this PC is 100% certain that I am the administrator. Thanks for any help and responses!