Skip to main content
May 28, 2015
Answered

Assign a user-script to a button

  • May 28, 2015
  • 1 reply
  • 736 views

How can I assign a button to a .jsx for quicker access? Currently I have to use 6 mouseclicks and 3 keyboard strokes!!

This topic has been closed for replies.
Correct answer

Well...

You actually *CAN* link a toolbar button to a script.

Right-click the toolbars and choose Customize... Then from the Customize dialog, click the Commands tab and find the Scripts item on the left side. Click the script you want and drag it from the dialog to the Toolbar.

If you want to see an image in the toolbar instead of the script name, right-click the new area in the toolbar and choose an image.

Cheers... Rick


Well... your description was not helpful at all.. but:

The user script has to be copied to the write protected folder "%programfiles%/abobe/.." where all the other scripts can also be found.

Honestly: this is not user friendly, but it works somehow at least.

1 reply

Captiv8r
Legend
May 28, 2015

Hi there

First off, I need to ask if you are using the Adobe RoboHelp application to author help files? If not, you are in the wrong forum.

If you are using Adobe RoboHelp, can you perhaps fill in some detail about exactly what you are doing?

Cheers... Rick

May 28, 2015

I am in the right forum.

Sorry for the confusion, but I do not know any other way to write a "user script" than Javascript. So I wrote a .jsx for RH and I want to assign it to a button now.

Captiv8r
Legend
May 28, 2015

Okay, cool.

Will the button be in the body of a topic? In the toolbar of WebHelp? Where will it be?

And what about the script? Is it just a block of code that is self contained? Or did you put it in a .JS file that you now want to include in the project?

And about the file itself. I'm not sure I know what a .JSX file is. Special form of JavaScript?

Cheers... Rick