var win = new Window("dialog", "我要自學網(wǎng)")
win.location = [100, 100]
var txt = win.add("edittext", [0, 0, 70, 20], "")
var btn = win.add("button", undefined, "點擊我")
btn.onClick = test
function test() {
var docRef = app.activeDocument
var myText3 = docRef.textFrames.add()
myText3.contents = txt.text
myText3.left = 100
myText3.top = 100
}
win.show()
承擔因您的行為而導致的法律責任,
本站有權保留或刪除有爭議評論。
參與本評論即表明您已經(jīng)閱讀并接受
上述條款。