Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

Button.onClick does not work when I renamed

$
0
0

Hello, I have a little Script, when I renowned "Ok" to "Aceptar" and does not work, I pressed click, Enter, Spacebar, and Does not work

I have Adobe Illustrator CC2015

 


var button = new Window('dialog', ''); 

btnName = button.add('button',undefined,'Ok');  //btnName = button.add('button',undefined,'Aceptar');  //
btnName.onClick = function() {
alert ("Works!")    }
button.show();

 

    Run Script:

01.jpg

when I click in "aceptar", Alert does not show and "aceptar" button shows an orange edge

02.jpg

 

Help me Pls , Sorry my bad english




Viewing all articles
Browse latest Browse all 12845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>