Script needs fixing
Hello
I have this script that I have a problem.
When I fill out FieldA, with numbers, the cursor automatically advances to FieldD (when he should go to FieldB).
The file is here: http://www.mediafire.com/?c51pc67h0oxv997
As a note: I put it in place so that when you fill FieldA and FieldB, FieldC and FieldD fill automatically (but not vice versa)
Thank you.
Hello
Here's a quick fix, but as I don't know how the form should work it cannot be perfect.
http://www.mediafire.com/?265tp2ilo9dx82j
hope this helps
Malcolm
Tags: Acrobat
Similar Questions
-
Title: File Cure
Hello. I get a file icon priest saying: I have 14 things that need fixing, and I need you to register so that they are able to correct. It does not say if I have to pay for it, but I don't know if it's free or not, or if it is part of the microsoft services. can someone help me?Get a free scanner,
Don't worry all services called State that you need to register will get finally the part of :) credit card
-
Powershell scripts need to collect info ESX storage
Hello
I need three scripts to collect information from ESX storage as shown below
1. information on the hardware-storage & gt; to collect information on the SCSI controller and HBA cards.
ESX name | | SCSI controller HBA1 | HBA2
Expected results
ESX name | SCSI (model, Bios version, serial number, Raid config) | HBA1 (model, Firmware version, serial number, WWPN) | HBA2 (model, Firmware version, serial number, WWPN)
Note: Need info on all controllers SCSI and HBA in the ESX box, so additional columns may be added as required.
2. report on the use of storage - & gt; Usage report storage including local file system storage and SAN devices.
ESX name | | File system Size | Opportunity | DISP | Use% | Mount point | Scopes
Note: Need of all sizes in the UK. Extensions are applicable to data SAN storage and just the DiskID measure as vmhba1:1:1
3 San disk information - & gt; To collect information on San Disk
Disc ID | Lun ID | Size of the disk | Brand/model | Paths | Policy | Active HBA WWPN
Expected results
vmhba1:1:1 | 0110 | 130 G | EMCxxxx | 4 | Fixed | xxxxxxxxxxxxxxx
There was an error, you cannot delete items from a hash table by looping through the values.
Try this one (it works for me).
$nrMax = 10 $taskHash = @{} Get-Cluster
| Get-VM | %{ $spec = new-object VMware.Vim.VirtualMachineConfigSpec; $spec.cpuAllocation = New-Object VMware.Vim.ResourceAllocationInfo; $spec.cpuAllocation.Shares = New-Object VMware.Vim.SharesInfo; $spec.cpuAllocation.Shares.Level = "Normal"; $spec.cpuAllocation.Limit = -1; $spec.cpuAllocation.Reservation = 0; $task = Get-View ($_.Extensiondata.ReconfigVM_Task($spec)) $taskHash[$task.Info.Key] = $task while($taskHash.Count -eq $nrMax){ $toBeRemoved = @() foreach($task in $taskHash.Values){ $task.UpdateViewData() if("success","error" -contains $task.Info.State){ $toBeRemoved += $task.Info.Key } } $toBeRemoved | %{ $taskHash.Remove($_) } } } -
Modify the script to fix different MovieClips
I need to find a way to modify this code to be able to upload clips of different film instead of 100 of the same thing. The idea is to make a nav of this. Then I want to only load one, 'tree'... so I want to set a different clip to staging another fixed x, y, z value.
The script that I have is:
var numTrees:Number = 10;
var fl:Number = 250;
var gravity: Number =. 5;
var vx:Number = 0;
var vy:Number = 0;
var vz:Number = 0;
var friction: Number =. 98;
var vpX:Number = Stage.width / 2;
var vpY:Number = Stage.height / 2;
init();
function init() {}
for (var i: Number = 0; i < numTrees; i ++) {}
var tree: MovieClip = attachMovie ("tree", "tree" + I, i);
Tree.x = Math.Random () * 2000-1000;
Tree.y = 50;
Tree.z = Math.Random () * 10000;
}
}
function onEnterFrame (): Void {}
If (Key.isDown (Key.up))
{
VZ-= 1;
}
another if (Key.isDown (Key.DOWN))
{
VZ += 1;
}
If (Key.isDown (Key.Left))
{
VX += 1;
}
another if (Key.isDown (Key.RIGHT))
{
VX-= 1;
}
If (Key.isDown (Key.Space))
{
Vy += 1;
}
Vy = gravity;
VX * = friction;
Vy * = friction;
VZ * = friction;
for (var i: Number = 0; i < numTrees; i ++) {}
var tree: MovieClip = this ['tree' + i];
Tree.x += vx;
Tree.y += vy;
Tree.z += vz;
If (Tree.y < 50)
{
Tree.y = 50;
Vy = 0;
}
If (tree.z < = - fl) {}
Tree.z += 10000;
}
ElseIf (tree.z > 10000 - fl)
{
Tree.z-= 10000;
}
var scale: Number = fl / (fl + tree.z);
Tree._xscale = tree._yscale = scale * 100;
Tree._x = vpX + tree.x * scale;
Tree._y = vpY + tree.y * scale;
Tree._alpha = scale * 60 + 40;
tree.swapDepths(-tree.z);
}
}
You are welcome.
-
DNS query script - need a way to script to query the DNS settings of all the servers on a domain
Hi - I was wondering if anyone new a script or a simple way to query the DNS settings of all the servers on a domain? Basically, I need to know the primary and secondary, all our servers DNS settings and that discharge into a file. Any help is very appreciated
Thanks in advanceHello
As you try to run the DNS settings on the domain, I suggest you to post the same question on the Microsoft TechNet Forums
You can follow the link to your question:
Windows Small Business Server: http://social.technet.microsoft.com/Forums/en/category/windowsserver/
It will be useful.
-
Hi people, new user here.
Have a text field I want to be hidden until one of the two radio buttons in a group has been selected. Any help is greatly appreciated.
Rick S/San Antonio, TX
You can do this in different ways. Here is an example. Use the following the calculation script customized in your text field that must be hidden or shown:
var f1 = this.getField("Group1"); var shouldBeVisible = (f1.value != "Off"); event.target.display = shouldBeVisible ? display.visible : display.hidden;
This can be shortened a bit, but the shorter code is not necessarily more readable. If you have problems to understand what is happening here, please see the core JavaScript language syntax. What you need to know, is that a group of radio buttons with no selection will report 'Off' as its value. If the field should be visible when the Group of radio buttons is not set to 'Off '. In this case, we set the event.target.display property (you can find out what it means in the Acrobat JavaScript API documentation: Acrobat SDK Documentation DC: event.target ) display.visible or in the other case display.hidden (once again, it details in the documentation of the API).
-
Hello world
I hope someone can help me improve my javascript.
I currently have a script which (inserted below), when to run the selected text, the text of the excerpts, it splits and apply an object style. It works fine but leaves paragraph breaks and forced line break hanging out that I really do not have. See the images inserted to my start state, the current results and the result finally preferred.
Anyone know how I can achieve this? I'm not a scripter of experience at all, so I don't know where to start!
Many thanks in advance,
Lewis
if (app.selection.length == 1 && app.selection[0].hasOwnProperty("baseline") && app.selection[0].length > 1) { mObjSt = app.activeDocument.objectStyles.item("Colour Label Grey"); app.selection[0].insertionPoints[0].contents = "\r"; app.findGrepPreferences = app.changeGrepPreferences = null; app.findGrepPreferences.findWhat = " (\\u)(?=~s)"; app.changeGrepPreferences.changeTo = "\\r\$1"; app.selection[0].changeGrep(); app.findGrepPreferences.findWhat = "\\n\\n\\r"; app.changeGrepPreferences.changeTo = ""; app.selection[0].changeGrep(); app.findGrepPreferences.findWhat = ", "; app.changeGrepPreferences.changeTo = ""; app.selection[0].changeGrep(); p = app.selection[0].parentTextFrames[0]; lh = (p.lines[-1].baseline - p.lines[0].baseline) / (p.lines.length-1); top = app.selection[0].lines[0].baseline - lh; while (app.selection[0].length > 0) { f = app.activeDocument.layoutWindows[0].activePage.textFrames.add ({geometricBounds:[top, p.geometricBounds[3]+2*lh, top+lh, 2*(lh+p.geometricBounds[3])-p.geometricBounds[1] ]}); app.selection[0].lines[0].move (LocationOptions.AFTER, f.texts[0]); top += lh; f.appliedObjectStyle = mObjSt; } p.characters[-1].contents = ""; } else alert ("please select some text to shred"); if (f.lines[-1].contents.indexOf("\r") != -1) f.characters[-1].contents = "";
This should be a good start.
Note there is a problem with the style of the object and you need to lower the text frame General Medallion high / low the style options (I don't have your policy but this is what it looks like to me).
// By Trevor https://forums.adobe.com/message/8214750#8214750 // http://creative-scripts.com app.doScript(splitLines, undefined ,undefined, UndoModes.ENTIRE_SCRIPT); function splitLines(){ var mObjSt, t, lh, f, top, selct, pp, left, right, p1, tempFrame; selct = app.selection.length == 1 && app.selection[0]; if (selct && selct.hasOwnProperty("baseline") && selct.length > 1) { p = selct.parentTextFrames[0]; pp = p.parentPage; lh = (p.lines[-1].baseline - p.lines[0].baseline) / (p.lines.length-1); top = selct.characters[0].baseline - lh; left = p.geometricBounds[3]+2*lh; right = 2*(lh+p.geometricBounds[3])-p.geometricBounds[1]; tempFrame = pp.textFrames.add({geometricBounds: pp.bounds, textWrapPreferences:{textWrapMode:TextWrapModes.NONE}, textFramePreferences:{ignoreWrap: true}}); selct.move(LocationOptions.AFTER, tempFrame.texts[0]); t = tempFrame.parentStory; mObjSt = app.activeDocument.objectStyles.item("Colour Label Grey"); app.findGrepPreferences = app.changeGrepPreferences = null; app.findGrepPreferences.findWhat = " (\\u)(?=~s)"; app.changeGrepPreferences.changeTo = "\\r\$1"; t.changeGrep(); app.findGrepPreferences.findWhat = "\\n"; app.changeGrepPreferences.changeTo = "\r"; t.changeGrep(); app.findGrepPreferences.findWhat = ", "; app.changeGrepPreferences.changeTo = "\\r"; // change this as it looked like a mistake t.changeGrep(); app.findGrepPreferences.findWhat = "\\r"; app.changeGrepPreferences.changeTo = ""; while ((p1 = t.paragraphs[0]).isValid) { if (p1.characters[0].contents == "\r") { p1.remove(); continue; } p1.changeGrep(); f = pp.textFrames.add ({geometricBounds:[top, left, top+lh, right]}); p1.move (LocationOptions.AFTER, f.texts[0]); top += lh; f.appliedObjectStyle = mObjSt; } tempFrame.remove(); } else alert ("please select some text to shred"); }
HTH and don't forget to mark it as correct
Trevor
-
PowerCLI script needed to change the 9 network adapters to a virtual computer in a single operation
I got about 30 mV, and I need to change the 9 cards each virtual computer network. The script below takes a while to run, is there a way to speed it up, by changing all the interfaces of a VM in a single operation?
$VM = "MY_VM_".
1... 30 | % {
$VMS = $VM + $_
Get-vm-name $VMS | Get-NetworkAdapter-name '2 network adapter | Together-NetworkAdapter - NetworkName "blah1" - connected: $true - confirm: $false
Get-vm-name $VMS | Get-NetworkAdapter-name "Network adapter 3 | Together-NetworkAdapter - NetworkName "blah2" - connected: $true - confirm: $false
Get-vm-name $VMS | Get-NetworkAdapter-name "NIC 4 | Together-NetworkAdapter - NetworkName "blah3" - connected: $true - confirm: $false
Get-vm-name $VMS | Get-NetworkAdapter-name "adapter 5 network | Together-NetworkAdapter - NetworkName "blah4" - connected: $true - confirm: $false
Get-vm-name $VMS | Get-NetworkAdapter-name "NIC 6. Together-NetworkAdapter - NetworkName "blah" - connected: $true - confirm: $false
Get-vm-name $VMS | Get-NetworkAdapter-name 'network 7 adapter | Together-NetworkAdapter - NetworkName "blah" - connected: $true - confirm: $false
Get-vm-name $VMS | Get-NetworkAdapter-name '8 network adapter | Together-NetworkAdapter - NetworkName "blah7" - connected: $true - confirm: $false
Get-vm-name $VMS | Get-NetworkAdapter-name 'network 9 adapter | Together-NetworkAdapter - NetworkName "blah8" - connected: $true - confirm: $false
Get-vm-name $VMS | Get-NetworkAdapter-name '10 network adapter | Together-NetworkAdapter - NetworkName "blah9" - connected: $true - confirm: $false
}
Thank you very much!!. I was able to change the script of LucD work in DVS.
FINAL VERSION:
$hash = $null
$hash = @ {}
$dvs = get-view (get-VirtualSwitch-name "DVS5.1")
$dvs. PortGroup | % {Get-View-Id $_} | %{
$hash.add ($_.) Name, $_. Key)
}
# Loop below for all virtual machines
1... 90 | %{
$i = $_
write-host 'tenant = $i'
$convertTab = @ {}
"Network adapter 1" = "$1te I".
"Network adapter 2" = "$2te I".
'Network adapter 3' = ' $3te I ".
"Network adapter 4" = "$4te I".
'Network adapter 5' = ' $5th I ".
'Network adapter 6' = ' $6te I ".
'Network adapter 7' = ' $7te I ".
'Network adapter 8' = ' $8te I ".
'Network adapter 9' = ' $9te I ".
'Network adapter 10' = ' $10te I ".
}
Notice-EEG - ViewType VirtualMachine-property "Config.Hardware.Device" - filter @{' Name '=' VM-$i - 1 ""} | %{
$spec = new-Object VMware.Vim.VirtualMachineConfigSpec
$_. Config.Hardware.Device | where {$_-is [VMware.Vim.VirtualEthernetCard]} | %{
$dev = new-Object Vmware.Vim.VirtualDeviceConfigSpec
$dev. Operation = "├editer."
$dev. Device = $_
$dev.device.Backing = new-Object VMware.Vim.VirtualEthernetCardDistributedVirtualPortBackingInfo
$dev.device.backing.port = new-Object VMware.Vim.DistributedVirtualSwitchPortConnection
$dev.device.backing.port.switchUuid = $dvs. UUID
$dev.device.backing.port.portgroupKey = $hash [$convertTab [$_.]] DeviceInfo.Label]]
$spec. DeviceChange += $dev
}
$_. ReconfigVM ($spec)
}
}
-
I need a script for an Adobe form that I do, and I can't seem to understand. What I need is something that will say: If 'a' box is checked & 'b' box is not checked, then the 'c' field is hidden. I tried several, but I can't seem to get this to work.
OK, so the single script may be:
(function () {}
Get the values of checkboxes
var v1 = getField("cb_a").value;
var v2 = getField("cb_b").value;
This field value Visiblility
Event.Target.Display = v1! == 'Off' & v2 = "Off"? Display.Hidden: display.visible;
Set the value of this field
Event.Value = getField("Office#").valueAsString + ("". "") + getField("Office#1").valueAsString + ("". "") + getField("Office#2").valueAsString;
})();
-
Color select Script needs refining
Hello
I've been running this simple script (created by an end PS scripter) in action:
#target Photoshop
main() {} function
if(!documents.) Length) return;
app.activeDocument.colorSamplers.removeAll ();
var X = activeDocument.width.as('px')/2;
var sample = activeDocument.colorSamplers.add ([new UnitValue (X, 'px'), new UnitValue (1, 'px')]);
app.backgroundColor = sample.color;
app.activeDocument.colorSamplers.removeAll ();
}
main();
It selects the top center pixel color, sample, for the bottom point. Now I need to select a 5 x 5 moy. Second, is there a way to hide the INFORMATION pane, which opens by running the script? This appears not be called from an action, of course, and I'm not script.
Thanks for any help.
This should make an average...
#target Photoshop function main(){ if(!documents.length) return; var startRulerUnits = app.preferences.rulerUnits; app.preferences.rulerUnits = Units.PIXELS; try{ app.activeDocument.colorSamplers.removeAll(); var X = activeDocument.width/2; var LB=[]; LB[0] = X.value; LB[1] = 1; LB[2] = X.value +5; LB[3] = 6; var tmpColour = new SolidColor(); var savedState = activeDocument.activeHistoryState; activeDocument.selection.select([[LB[0],LB[1]], [LB[2],LB[1]], [LB[2],LB[3]], [LB[0], LB[3]]], SelectionType.REPLACE, 0, false); activeDocument.activeLayer.applyAverage(); var sample = activeDocument.colorSamplers.add( [ new UnitValue( X+1, 'px' ), new UnitValue( 2, 'px' ) ] ); tmpColour=sample.color; activeDocument.activeHistoryState = savedState; app.backgroundColor=tmpColour; app.preferences.rulerUnits = startRulerUnits; }catch(e){alert(e + " - " + e.line);} } main();
I was not able to stop the information panel so I add to my open panels is not intrusive.
-
Hello
I need prepare a script that needs to check and record the number of files in a folder.
This is to check the text objects in the document that it contains any color text (not black).
Problem with my script is that
1. it doesn't hollow loop all files in the folder, simply tick the first file and ends.
2. If a document consists of the number more colored text, she wrote each time until the length of the text in color. I want just the one instance of control for a single file.
#target illustrator var inputFolder = Folder.selectDialog ("Select a folder contains '*.eps' files ") var Loginfo = new File(inputFolder+"/ScriptLog.txt"); Loginfo.open("w", "TEXT", "????"); if (inputFolder != null){ var fileList = inputFolder.getFiles('*.eps'); for (var i = 0; i < fileList.length; i++){ if (fileList[i] instanceof File && fileList[i].hidden == false){ var docRef = open( fileList[i] ) writeLog() app.activeDocument.close(SaveOptions.DONOTSAVECHANGES) } } } Loginfo.close(); //This function is to check the text objects in the document whether it contains any color text (non black text). function writeLog(a){ var a = app.activeDocument if(a.textFrames.length>0){ for (i = 0; i < a.textFrames.length; i++ ){ var text = a.textFrames[i].textRange; var fiTxtColor = text.fillColor; var txtColorType = String (fiTxtColor) var txtColorGray = txtColorType.search ('Gray') if(txtColorGray != 1){ Loginfo.writeln("File: "+a.name+" Text not in Black") } } } }
Hope I clearly explained my need.
Help me on this guys... !!!Thanks in advance...
#target illustrator var inputFolder = Folder.selectDialog("Select a folder contains '*.eps' files "); var Loginfo = new File(inputFolder + "/ScriptLog.txt"); Loginfo.open("w", "TEXT", "????"); if (inputFolder) { var fileList = inputFolder.getFiles('*.eps'); for (var i = 0; i < fileList.length; i++) { if (fileList[i] instanceof File && fileList[i].hidden == false) { var doc = app.open(fileList[i]); doc.textFrames.length && writeLog(doc); doc.close(SaveOptions.DONOTSAVECHANGES); } } } Loginfo.close(); //This function is to check the text objects in the document whether it contains any color text (non black text). function writeLog(a) { var i = 0, text = a.textFrames, len = text.length; for (; i < len; i++) { if (String(text[i].textRange.fillColor).search("Gray") != 1) { Loginfo.writeln("File: " + a.name + " Text not in Black"); return } } }
But isn't a CMYKColor [0, 0, 0, 100] as black?
-
Script needed for radio button/date field
Hello
I am currently using Adobe Lifecycle Designer ES. I have a form that contains two radio buttons (each dependant on the other). One of the option buttons, if it is enabled, has a date field that I have needed to fill if this option button is selected. I suppose that this could be done with an "if" statement, but I'm not very good at the code and I was wondering if anyone can help? Thank you.
Hello
I have an example here: http://assure.ly/hxHupW.
You can change the required property using script.
To make a field required, you set the property to "error". Considering that, to make an optional field, you set the property to "disabled".
If one considers that the value of the radiobutton that you want to use to define the mandatory datefield is '1', then the code following JavaScript in the click event of the radiobutton exclusion group:
if (this.rawValue == 1) { datefield.mandatory = "error"; } else { datefield.mandatory = "disabled"; }
Hope that helps,
Niall
-
New to scripting - need help!
I have a purchase order of acrobat (pro 9.0) containing 4 fields called sub1, sub2, sub3 & sub4. Here is the subtotal fields that should contain the number 8 if the user entered numbers correctly. I have a field of total which should have the following code in it:
If sub1 = 8,Then, add 20 to the total.
If sub2 = 8,
Then add 20 to total.
If sub3 = 8,
Then add 20 to total.
If sub4 = 8,
Then add 20 to total.
I need to translate this in Javascript and need all the help I can get.
Thanks in advance
No. I assumed you wanted the result in a field of text called 'Total '.
Create a text field named "QtyBoxSetTotal" and put this code in the custom tab calculation script box calculate (found in the text field properties) to this text box. You also need that box 'Read only' so that nobody tries to enter a number in this area since its value will be calculated.
Then you'd have five areas of text in total. Four would not make any script (and would be named "Sub1", "Sub2", "Sub3',"Sub4"and the fifth area named 'QtyBoxSetTotal' would have the javascript code I gave you. The value of the event would be calculated by the script and displayed in this text box ("QtyBoxSetTotal"), and the other four boxes would display the number entered by the user.
In addition, you can put a verification code in the other four areas to prevent the entry of a number which is not equal to 8 If you do not want the user to enter a number that is not equal to 8. Do you need to set the text under the number format and then enter a valid numbers range from: 8 in: 8, in your example.
I hope it clears.
-
Random Image Script need with links
I need a script for random images on my home page. I need the image to have its own link depending on which image is displayed. I would like a script php (no database) if possibleI thought about it by doing a random include
<>
srand (Time ());
$random = (rand () %3);
require_once("./$random.php");
?> -
Hello technical
I have a HP Compaq desktop computer old and need to work with it
the problem is that WOOD protected by password I forget
I need to remove it in order to set the date and time
What am I, I guess what to do?
and if I can't spend it > > > is there is another method to correct the date of the bios and bios update?
MY PC IS...
HP Compaq dc5100 Small Form Factor
OS: Windows 7 Home Premium
PLEASE HELP ME SOON AS POSSIBLE YOU CAN...
I'm ready to give any other information necessary
Hi nancydextradeur
Before performing this procedure,
Make sure that your computer is disconnected from any power source
Put yourself in the Earth or wear an anti-static strap before touching your computer components
Open your computer and try to locate the rider of the Bios plastic that must be near the CMOS battery (battery size button small and flat).
Remove the jumper from pins 1 and 2 plastic, replace it on pins 2 and 3. Wait a minute, then put the jumper on pins 1 and 2.
If you can't find the rider plastic, try to remove battery CMOS completely. Leave for an hour, then replace the battery.
Hope this helps.
Best wishes
DP - K
Maybe you are looking for
-
My Touchsmart 310 computer keeps closing down again, every time I have a film/video or play a game. I noticed that on the back of the monitor (where the cpu is) becomes very hot when I watch videos or play games, and then will follow the closing. I t
-
Where can I get a new keyboard for an Acer aspire ES1-521-603V?
Where can I get a new keyboard for an Acer aspire ES1-521-603V?
-
HP DV7 - 3065dx notebook computer connect to Internet with crazy upgrade hardware!
Hello I want to know if I can upgrade my laptop to connect to Internet. My unit ~ DV7-3065dx I would like to add: 4G WiMAX chipset mobile broadband (and pay for the service contract to have internet service) My unit has been improved to 8 GB of Ram.
-
I have used this support of Microsoft, but I can't go any further after using "Fixit" or "regedit" edition http://support.Microsoft.com/kb/929461/en-us
-
Acrobat Adobe DC not enough memory
HelloI am a Subscriber monthly to adobe and just today, I combined my pdf portfolio files and tried to print. But acrobat gave me an error message saying not "enough memory to run this defense." I have no idea what is wrong. I was able to print the s