terça-feira, 19 de junho de 2018

Comandos PCL

PCL Horizontal Column Spacing (HMI)

E&k#H

Set HMI = #/120"
PCL Vertical Line Spacing

E&l#C

Set VMI = #/48"

E&l1D

1 LPI

E&l2D

2 LPI

E&l3D

3 LPI

E&l4D

4 LPI

E&l6D

6 LPI

E&l8D

8 LPI

E&l0D

12 LPI

E&l#D

Set Line Spacing to # LPI

E=

Half Line Feed

E&u#D

Set # dpi dot resolution

E&a0N

Contains negative motion

E&a1N

No negative motion
HP PCL Deskjet print modes

E&k0W

Unidirectional printing

E&k1W

Bidirectional printing

E&k2W

Unidirectional right-to-left

E&k5W

66-line Text Scale mode

E&k6W

Text Scale mode off
HP PCL Deskjet raster graphics print modes

E*p1N

Bidirectional graphics

E*p2N

Graphics print mode left-to-right

E*p3N

Graphics print mode right-to-left

E*p4N

Smart bidirectional graphics

E*p#N

graphics print mode #
PCL Absolute positioning

E&a#R

Move to Row #

E*p#Y

Vert position = # Dots

E&a#V

Vert position # Decipoints

E&a#C

Move to Column #

E*p#X

Horiz position = # Dots

E&a#H

Horiz position # Decipoints
PCL Relative Positioning

E&a+#R

Move down # rows

E*p+#Y

Move down # Dots

E&a+#V

Move down # Decipoints

E&a+#C

Move right # cols

E*p+#X

Move right # Dots

E&a+#H

Move right # Decipoints

E&a-#R

Move up # rows

E*p-#Y

Move up # Dots

E&a-#V

Move up # Decipoints

E&a-#C

Move left # cols

E*p-#X

Move left # Dots

E&a-#H

Move left # Decipoints

E&f0S

Push Cursor Position

E&f1S

Pop Cursor Position
PCL Page Orientation

E&l0O

Portrait

E&l1O

Landscape

E&l#O

Orientation #

E&a0P

Rotation 0

E&a90P

Rotation 90 (portrait -> landscape)

E&a180P

Rotation 180

E&a270P

Rotation 270 (landscape -> portrait)

E&a#P

Rotation # degrees
PCL Font Selection

E(#a

see PCL font selection

E(8U

Roman-8 Symbol Set

E(11U

IBM Danish/Norwegian Symbol Set

E(10U

IBM-PC (USA) Symbol Set

E(9U

Windows 3.0 Symbol set

E(19U

Windows 3.1 Symbol set

E)8U

Roman-8 as Secondary Font Symbol Set

E)11U

IBM Danish/Norwegian as Secondary Font Symbol Set

E)10U

IBM-PC (USA) as Secondary Font Symbol Set

E)9U

Windows 3.0 Secondary Symbol set

E)19U

Windows 3.1 Secondary Symbol set
PCL Font Spacing

E(s1P

Proportional

E(s0P

Fixed Pitch

E(s#P

Unknown Font Spacing (#)!

E)s1P

Proportional Spacing for Secondary Font

E)s0P

Fixed Pitch Spacing for Secondary Font

E)s#P

Unknown Font Spacing (#)!

E(s#H

pitch # cpi

E)s#H

Secondary Font pitch # cpi

E(s#V

Point Size #

E)s#V

Secondary Font Point Size #
PCL Font Style

E(s0S

Upright

E(s1S

Italic

E(s#S

Font Style #

E)s0S

Secondary Font is Upright

E)s1S

Secondary Font is Italic

E)s#S

Secondary Font Style #
PCL Font Stroke Weight Selection

E(s-3B

Light Weight

E(s0B

Medium Weight

E(s3B

Bold

E(s#B

Weight #

E)s-3B

Secondary Font - Light Stroke Weight

E)s0B

Secondary Font - Medium Stroke Weight

E)s3B

Secondary Font - Bold Stroke Weight

E)s#B

Secondary Font - Weight #
PCL Font TypeFace Number Selection

E(s#T

Typeface #

E)s#T

Secondary Font - Typeface #
PCL Font Pitch Selection

E&k0S

Font Pitch 10.00 cpi

E&k2S

Font Pitch 16.66 cpi

E&k4S

Font Pitch 12.00 cpi

E(3@

Choose Default font as Primary Font

E(#@

Primary Font Requested Attribute Value #

E)3@

Choose Default font as Secondary Font

E(#@

Secondary Font Requested Attribute Value #
PCL Font Selection by identification

E(#X

Select Primary Font by ID (#)

E)#X

Select Secondary Font by ID (#)
PCL Font Management

E*c#D

Define Font Id #

E*c0F

Delete All Fonts

E*c1F

Delete All Temporary Fonts

E*c2F

Delete Last Font ID Specified

E*c3F

Delete LAst Font ID and Char Code

E*c4F

Make Font Temporary

E*c5F

Make Font Permanent

E*c6F

Copy/Assign

E*c#F

Unknown Font Manmagement Command (#F)!
PCL DownLoading Fonts

E*c#E...

ASCII Code # Decimal...

E)s#W...

Create Font Header of # Bytes...

E(s#W...

Download Character of # Bytes...

E*c#R

Define Symbol set ID #

E(f#W...

Define Symbol Set Characters (# Bytes)...

E*c5S

Make symbol set permanent

E*c#S

Symbol set control (#)

E&n#W...

Alphanumeric ID #...
PCL Double-byte text parsing

E&t0P

Single-byte chars

E&t1P

Single-byte chars

E&t#P

Double-byte mode #
PCL Rules

E*c#A

Rule Horizontal Size # Dots

E*c#H

Rule Horizontal Size # Decipoints

E*c#B

Rule Vertical Size # Dots

E*c#V

Rule Vertical Size # Decipoints

E*c0P

Print Black Rule

E*c1P

Print White Rule

E*c2P

Print Grey Scale

E*c3P

Print Cross-hatch Pattern

E*c4P

Print User-defined Pattern

E*c5P

Print Current Pattern
PCL patterns - same codes as for grey scale

E*c1G

HP Pattern 1 Horiz Line

E*c2G

HP Pattern 2 Vertical Line

E*c3G

HP Pattern 3 Diagonal Lines

E*c4G

HP Pattern 4 Diagonal Lines

E*c5G

HP Pattern 5 Square Grid

E*c6G

HP Pattern 6 Diagonal Grid

E*c#G

#% Grey Scale

E*p#R

pattern rotation #
PCL Raster Graphics

E*t#R

# DPI Graphics resolution

E*r0A

Start Graphics at Left Graphics Margin

E*r1A

Start Graphics at Current Cursor

E*r2A

Start Scaled Graphics at Left Graphics Margin

E*r3A

Start Scaled Graphics at Current Cursor

E*b#W...

# Graphics data bytes...

E*rB

End Graphics

E*rC

End Graphics with reset

E*r0F

Rotate image

E*r3F

LaserJet Landscape compatible

E*g#W...

Configure raster data # bytes

E*b#Y...

move vertically # raster lines...

E*r#T

raster height # pixels

E*r#S

raster width # pixels

E*t#V

scaled raster height #

E*t#H

scaled raster width #

E*b0M

uncompressed

E*b1M

run-length encodes

E*b2M

packbits (bytewise run-length)

E*b3M

delta row compression

E*b4M

block data

E*b5M

adaptive compression

E*b6M

CCITT3 1-D compression

E*b7M

CCITT3 2-D compression

E*b8M

CCITT4 compression
PCL Color DeskJet and PCL5 only

E*b9M

DeskJet compression

E*b#M

unknown row compression mode #

E*b#S

seed row # source

E*b#V...

# colour data bytes

E*r1Q

draft quality graphics

E*r2Q

NLQ graphics

E*r-3U

3-planes CYM

E*r-4U

4-planes CYMK

E*r1U

single plane palette

E*r3U

3-planes RGB

E*r#U

Unknown palette (#)

E*b#B

Gray Balance #

E*o#M

Print quality (#)

E*o#Q

raster graphics shingling (#)

E*o#D

raster graphics depletion (#)

E*c#W-

define pattern # bytes

E*p0R

rotate patterns

E*p1R

no pattern rotation

E*c#Q

temp/perm pattern mode #
PCL Obsolete functions

E*p#N

raster print mode #

E*r#Q

raster print quality #
PCL Color

E*v#S

foreground colour #

E&p#I

palette ID #

E&p0C

delete all palettes

E&p1C

clear palette stack

E&p2C

delete palette

E&p6C

copy palette to current ID

E&p#S

select palette ID #

E*v18W-

configure image data (RGB or CYM)

E*v30W-

configure image data (CIE L*a*b)

E*v86W-

configure image data (Colorimetric RGB)

E*v122W-

configure image data (Luminence-Chrominence)

E*v#W...

configure image data # bytes (RGB)

E&b0M

Mixed monochrome rendering

E&b1M

Gray equivalent

E*v#A

colour component 1=#

E*v#B

colour component 2=#

E*v#C

colour component 3=#

E*v#I

assign components to palette index #

E*p0P

push palette

E*p1P

pop palette

E*t#I

Gamma correction #

E*l#W...

Colour look-up table # bytes

E&b0F

Matte finish

E&b1F

Glossy finish

E&b#T

Dry time #

E*o#W...

Colour treatment
PCL Imaging

E*v0T

pattern = solid black

E*v1T

pattern = solid white

E*v2T

pattern = shading

E*v3T

pattern = cross-hatched

E*v4T

pattern = user-defined

E*v#T

Unknown shading pattern #

E*v0N

transparent source

E*v1N

opaque source

E*v0O

transparent pattern

E*v1O

opaque pattern

E*l#O

rasterOp #

E*t#J

halftone render algorithm #

E*m#W...

download dither matrix # bytes

E*l#R

Pixel placement #
PCL Macros

E&f#Y

Define Macro ID #

E&f0X

Start Macro Definition

E&f1X

End Macro Definition

E&f2X

Execute Macro

E&f3X

Call Macro

E&f4X

Enable Overlay

E&f5X

Disable Overlay

E&f6X

Delete Macros

E&f7X

Delete All Temporary Macros

E&f8X

Delete Macro ID

E&f9X

Make Temporary

E&f10X

Make Permanent
PCL diagnostics - Reset and Self Test

EE

Reset

Ez

Self_Test

EY

Display Functions On

EZ

Display Functions Off
PCL Underline

E&d0D

Single fixed Underline On

E&d2D

Double fixed Underline On

E&d3D

Single floating Underline On

E&d4D

Double floating Underline On

E&d#D

Underline (#) On

E&d@

Underline Off
PCL Line ending

E&s0C

Enable Line Wrap

E&s1C

Disable Line Wrap
PCL Paper Control (* only available on some printers)

E&l#X

Select # Copies

E&l#G

Select bin #

E&r#F

Flush pages #

E&l-1H

Feed Z-fold media

E&l0H

Eject Page

E&l0V

Conditional page feed

E&l1H

Feed from Tray 2

E&l2H

Manual Feed

E&l3H

Manual Envelope Feed

E&l4H

Feed from Tray 1

E&l5H

Feed from Tray 3

E&l6H

Optional envelope feeder

E&l7H

Auto select

E&l8H

Feed from tray 4*

E&l#H

Feed from external trays # (20-69)*

E&l#T

Job separation (#)

E&l0L

Disable Perf Skip

E&l1L

Enable Perf Skip

E&a0G

Next side

E&a1G

Front side

E&a2G

Back side

E&l0S

Simplex

E&l1S

Duplex Long-edge binding

E&l2S

Duplex Short-edge binding

E&l1T

Job separation - paper offset
PCL Paper Control - Obsolete

E&l1H

Feed from Tray 1 (upper)

E&l4H

Feed from Tray 2 (lower)

E&l5H

Feed from paper deck
PCL/HPGL

E*c#X

HP GL Picture frame width # decipoints

E*c#Y

HP GL Picture frame height # decipoints

E*c0T

HP GL Picture anchor point = current position

E*c#K

# inches HP GL plot width

E*c#L

# inches HP GL plot height
PCL Line Termination

E&k0G

CR=CR LF=LF FF=FF

E&k1G

CR=CR+LF Lf=LF FF=FF

E&k2G

CR=CR LF=CR+LF FF=CR+FF

E&k3G

CR=CR+LF LF=CR+LF FF=CR+FF

PCL Transparent Print data

E&p#X...

Transparent Print Data # Bytes...

Fonte : https://www.pclviewer.com/resources/reference/

terça-feira, 15 de maio de 2018

Comando para resgatar chave de produto da BIOS


Segue comando para executar no


CMD:


wmic path softwarelicensingservice get
oa3xoriginalproductkey

sexta-feira, 11 de maio de 2018

Script de pesquisa em lista Sharepoint

<script type="text/javascript">

    function RedirectUrl() {
        var tb = document.getElementById("tbSearch").value;
        var cs = document.getElementById("sfield").value;
        var url = "";

        if (tb != "") {
            if (cs == "Column2" || cs == "Column3" || cs == "Column4" || cs == "Column5") {
                url = "FilterField1=" + cs + "&FilterValue1=" + tb;
                window.location.href = "Lista%20Telefnica%20Completa.aspx?" + url;
            }
            else {
                url = "FilterName=" + cs + "&FilterMultiValue=*" + tb + "*";
                window.location.href = "Lista%20Telefnica%20Completa.aspx?" + url;
            }
        }
        else {
            return false;
        }

    }

function myFunction(event) {
var x = event.keyCode;
if (x == 13) {
event.preventDefault();
        return RedirectUrl();
}
}

</script>

<select id="sfield">
<option value="Title">Nome</option>
<option value="Matricula">Matrícula</option>
<option value="Empresa">Empresa</option>
<option value="Setor">Setor</option>       
</select>
<input id="tbSearch" type="text" onkeydown="myFunction(event)"/>
<input id="btnSearch" onclick="return RedirectUrl();" type="button" value="Procurar"/>

quarta-feira, 21 de fevereiro de 2018

segunda-feira, 12 de fevereiro de 2018

Instalar várias fontes via GPO





Crie uma pasta chamada Fontes no compartilhamento Netlogon de seu AD. Copie os arquivos TTF de fonte que você deseja que sejam instalados.

Parar criar o script, abra o notepad e insira o conteúdo abaixo:



‘************************************************************************************‘ SCRIPT PARA INSTALAR TODAS AS FONTES QUE ESTÃO EM UMA PASTA NO SERVIDOR

‘ FONTE: www.nvlan.com.br
‘************************************************************************************
Option Explicit
dim WinScriptHost
Dim objShell, objFSO, wshShell
Dim strFontSourcePath, objFolder, objFont, objNameSpace, objFile, CopiarFontesDe
Set objShell = CreateObject(“Shell.Application”)
Set wshShell = CreateObject(“WScript.Shell”)
Set objFSO = createobject(“Scripting.Filesystemobject”)
‘************************************************************************************
‘ VARIAVEIS (ALTERE CONFORME A NECESSIDADE)
‘************************************************************************************
CopiarFontesDe = “\\SEU_DOMINIO.COM.BR\Netlogon\Fontes“
‘************************************************************************************
‘ INICIO DO SCRIPT
‘************************************************************************************
strFontSourcePath = objFSO.GetAbsolutePathName(CopiarFontesDe)
Set objNameSpace = objShell.Namespace(strFontSourcePath)
Set objFolder = objFSO.getFolder(strFontSourcePath)
For Each objFile In objFolder.files
If LCase(right(objFile,4)) = “.ttf” OR LCase(right(objFile,4)) = “.otf” Then
Set objFont = objNameSpace.ParseName(objFile.Name)
If objFSO.FileExists(“C:\WINDOWS\Fonts\” & objFile.Name) = False Then
objFont.InvokeVerb(“Install”)
Set objFont = Nothing
End If
End If
Next 



Na hora de salvar o arquivo, mude o tipo de extensão para todo o tipo de arquivo e salve localmente em seu computador como fonts.vbs. Agora abra o mmc, insira e abra o gerenciador de políticas de domínio, vá na OU que você deseja criar a política, nesta OU crie e associe uma política chamada Instala Fontes.

Edite esta nova política e navegue até Computer Configuration -> Policies -> Windows Configuration -> Scripts e abra Startup. Clique em Add, na tela seguinte coloque o nome fonts.vbs e clique em OK.

De volta a tela anterior clique em Show Files, na tela do explorer que abrir mova o arquivo fonts.vbs criado para esta pasta.

Fonte: http://nvlan.com.br/comunidade/instalar-varias-fontes-via-gpo/