Double-Click Action

NeoBook tips, tricks, code samples and more...

Moderator: Neosoft Support

Locked
User avatar
Cuttlas
Posts: 60
Joined: Wed Dec 07, 2011 10:45 am

Double-Click Action

Post by Cuttlas »

Hi,

So many objects have "left click" action, but maybe you need to use a "Double-Click" action, for example you have a picture and you want to show its detail by double-clicking on it, Here is a piece of code which I\m using for such actions:

put it in pub's start-up section:

Code: Select all

SetVar "[LCount]" "0"
or you can put it in "Mouse Enter" section of target object.

and put the codes below on "left-lick" actions of your target object like a picture:

Code: Select all

SetVar "[LCount]" "[LCount]+1"
If "[LCount]-2" "=" "0"
MessageBox "" "" "OK" ""
SetVar "[LCount]" "0"
Else
Delay "200"
SetVar "[LCount]" "0"
EndIf
Instead of (MessageBox "" "" "OK" "") you can copy your own action

Hope It can help and be useful,
If you know a better way or trick, I'll be glad to learn it ;)
Last edited by Cuttlas on Fri Apr 04, 2014 11:54 am, edited 1 time in total.
Neosoft Support
NeoSoft Team
Posts: 5628
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA
Contact:

Re: Double-Click Action

Post by Neosoft Support »

That's great. Thanks for sharing this with us.
NeoSoft Support
Locked