ASP11: tool script not working if there's no OnMouseDown

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

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
Stan
Posts: 199
Joined: Sun Apr 19, 2009 3:22 pm

ASP11: tool script not working if there's no OnMouseDown

Post by Stan »

Some of my tool scripts are stopped working in 11 without any visible error. The symptoms are simple: you click on the tool icon, and nothing happens. It took me a while to find the reason - the failing scripts didn't have the OnMouseDown method.

So, if your scripts are not working in ASP 11, try this workaround:

Code: Select all

function <yourScriptName>:OnMouseDown(moho, mouseEvent)
	-- do nothing
end
________________________________________________________________________
https://mohoscripting.com/ - Unofficial Moho Lua scripting documentation
https://mohoscripts.com/ - The best place to publish and download scripts for Moho
Post Reply