Menu Script to Tool Script

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
teotoon
Posts: 133
Joined: Wed Aug 04, 2004 7:19 am
Location: Turkey

Menu Script to Tool Script

Post by teotoon »

Hello Folks,

I use some scripts frequently written by wonderful people in this community. I just want to assign a hot key to one of them, but it's a menu script. As far as I know, we cannot bind keys to menu scripts. So, I believe the only solution converting menu script to tool script.

Is it possible?

Thanks in advance...
Stan
Posts: 199
Joined: Sun Apr 19, 2009 3:22 pm

Re: Menu Script to Tool Script

Post by Stan »

If you move your menu script from the "menu" folder into the "tool" folder it will work as a button script. You're gonna need to create an icon for it though (.png 24x20 pixels), otherwise it will default to a crossed-out question mark.
________________________________________________________________________
https://mohoscripting.com/ - Unofficial Moho Lua scripting documentation
https://mohoscripts.com/ - The best place to publish and download scripts for Moho
teotoon
Posts: 133
Joined: Wed Aug 04, 2004 7:19 am
Location: Turkey

Re: Menu Script to Tool Script

Post by teotoon »

Oh, thanks Stan, it's all that simple.

Cheers
Post Reply