Button runs twice

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

Moderators: Fahim, Distinct Sun, Víctor Paredes, erey, Belgarath, slowtiger

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

Button runs twice

Post by dkwroot » Sun May 13, 2018 8:24 pm

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: 7114
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Button runs twice

Post by synthsin75 » Sun May 13, 2018 8:39 pm

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: 659
Joined: Thu May 02, 2013 6:56 am
Location: USA
Contact:

Re: Button runs twice

Post by dkwroot » Mon May 14, 2018 1:39 am

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