Button runs twice

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

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
dkwroot
Posts: 677
Joined: Thu May 02, 2013 6:56 am
Location: USA
Contact:

Button runs twice

Post by dkwroot »

I created a menu script as a button and I noticed that it runs twice when it's pressed. The button exports text to a file, but every time I press it, it exports twice. Does anyone know of a way to prevent this from happening? I've tried flagging it on the first run, but it ignores it. In fact, it seems to treat both executions as the first run.
User avatar
synthsin75
Posts: 9934
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Button runs twice

Post by synthsin75 »

I don't remember ever seeing that behavior from a button script. Does it run twice if you activate it with an assigned shortcut? If not, maybe it's a repeated mouse click from your system. If it still runs twice, I'd probably have to see the code to diagnose it further.
dkwroot
Posts: 677
Joined: Thu May 02, 2013 6:56 am
Location: USA
Contact:

Re: Button runs twice

Post by dkwroot »

Yeah, I think it's a mouse driver issue. Thanks Wes.
Post Reply