// Script: RButton // (c) 2001, Danilov O.V. aka DO // www: http://olegd.com // email: dosoft@yandex.ru var text = prompt("Что писать изволите:","Super-Puper Button"); var doc = fw.getDocumentDOM(); doc.pathAttributes.brush = { alphaRemap:"none", angle:0, antiAliased:false, aspect:100, blackness:0, category:"bc_Pencil", concentration:100, diameter:30, feedback:"none", flowRate:0, maxCount:15, minSize:1, name:"1-Pixel Soft", shape:"circle", softenMode:"bell curve", softness:5, spacing:15, textureBlend:0, textureEdge:0, tipColoringMode:"random", tipCount:1, tipSpacing:0, tipSpacingMode:"random", type:"simple" }; doc.pathAttributes.brushColor = "#ffffff"; doc.addNewLine({x:30, y:90}, {x:170, y:90}); doc.pathAttributes.brush = { alphaRemap:"none", angle:0, antiAliased:false, aspect:100, blackness:0, category:"bc_Pencil", concentration:100, diameter:26, feedback:"none", flowRate:0, maxCount:15, minSize:1, name:"1-Pixel Soft", shape:"circle", softenMode:"bell curve", softness:5, spacing:15, textureBlend:0, textureEdge:0, tipColoringMode:"random", tipCount:1, tipSpacing:0, tipSpacingMode:"random", type:"simple" }; doc.pathAttributes.brushColor = "#000000"; doc.addNewLine({x:30, y:90}, {x:170, y:90}); doc.addNewText({left:35, top:100, right:170, bottom:106}, true); doc.setFillEdgeMode("antialias", 0); doc.setTextAutoKern(true); doc.setTextAntiAliasing("smooth"); doc.setTextOrientation("horizontal left to right"); doc.setTextRuns({ initialAttrs:{ alignment:"center", baselineShift:0, bold:true, face:"Arial", fillColor:"#ffffff", horizontalScale:1, italic:false, leading:1, leadingMode:"percentage", rangeKerning:0, size:"14pt", underline:false }, textRuns:[ { changedAttrs:{ }, characters:text } ] }); doc.setTextRectangleAutoFromPoint({x:35, y:70}); doc.setTextRectangle({left:35, top:100, right:170, bottom:106}); doc.moveSelectionTo({x:35, y:83}, false, false);